Re: xmms_remote_get_output_time messed up?

Haavard Kvaalen <[email protected]>
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
On Thu, 22 May 2003, Ryan Barrett wrote:

> however, i'm having problems with the xmms_remote_get_output_time function. it 
> seems to be returning values at way less than millisecond granularity - if i 
> poll it often, it gets as bad as whole-second granularity. i've observed this 
> with both the eSound and OSS output plugins, but the null and disk writer 
> plugins don't have the problem.

This is probably somewhat dependant on hardware/soundcard driver.  I did a
little test here, and I roughly 10ms granulaty.  I've got a Soundblaster
Live and use Alsa.  I don't think you can expect it get much more accurate
numbers than that.

One second granularity sounds really bad though.  I can't think of any 
reason for it to get worse if you poll more often that the driver is doing 
some kind of trick.  If you want to dig more into this, the implementation 
of the SNDCTL_DSP_GETOSPACE ioctl is probably the interesting bit.

-- 
Håvard Kvålen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.