On Tue, 8 Oct 2002, Takashi Iwai wrote:

> At Wed, 09 Oct 2002 02:25:40 +1000,
> James Courtier-Dutton wrote:
> > 
> > Hello
> > 
> > Can someone please explain to me the use of snd_pcm_status_get_delay()
> > 
> > If a buffer size is 16384, and avail=6384, should delay therefore equil 
> > 10000 ? In all cases ?
> 
> no, the current implementation is the state-sensitive, as you
> mentioned below :
> 
> > I have found that in  SND_PCM_STATE_RUNNING, delay = buffer_size - avail.
> > I have found that in  SND_PCM_STATE_PREPARED, delay = 0
> 
> delay=0 gets back at all states except RUNNING (and DRAINING on
> playback).

Delay functions should return error when the state is not correct. Fixed 
now.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to