Re: [Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-11 Thread Jaroslav Kysela
On Fri, 11 Oct 2002, James Courtier-Dutton wrote: > >>Thankyou, I will use snd_pcm_drop(), but as a side note, what actually > >>does "snd_pcm_reset()" do. > >>Just resetting delay to 0 does not make much sense to me. > >> > >> > > > >It drops all samples in the ring buffer (thus reseting de

Re: [Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-11 Thread James Courtier-Dutton
Thankyou, I will use snd_pcm_drop(), but as a side note, what actually does "snd_pcm_reset()" do. Just resetting delay to 0 does not make much sense to me. It drops all samples in the ring buffer (thus reseting delay to 0). Note that everybody are welcome to improve the current do

Re: [Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-11 Thread Jaroslav Kysela
On Fri, 11 Oct 2002, James Courtier-Dutton wrote: > Takashi Iwai wrote: > > >At Fri, 11 Oct 2002 01:25:19 +1000, > >James Courtier-Dutton wrote: > > > > > >>Hello > >>I have an application that has many different threads. > >>The sound card's PCM buffer is full during playback, and one thread i

Re: [Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-11 Thread James Courtier-Dutton
Takashi Iwai wrote: At Fri, 11 Oct 2002 01:25:19 +1000, James Courtier-Dutton wrote: Hello I have an application that has many different threads. The sound card's PCM buffer is full during playback, and one thread is currently in snd_pcm_wait() waiting for enough space to appear in the buffe

Re: [Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-11 Thread Takashi Iwai
At Fri, 11 Oct 2002 01:25:19 +1000, James Courtier-Dutton wrote: > > Hello > I have an application that has many different threads. > The sound card's PCM buffer is full during playback, and one thread is > currently in snd_pcm_wait() waiting for enough space to appear in the > buffer before doi

[Alsa-devel] problems: flushing during snd_pcm_wait()

2002-10-10 Thread James Courtier-Dutton
Hello I have an application that has many different threads. The sound card's PCM buffer is full during playback, and one thread is currently in snd_pcm_wait() waiting for enough space to appear in the buffer before doing the next snd_pcm_write(). A different thread wants to flush the buffer. Th