From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: problems: flushing during snd_pcm_wait() Date: Fri, 11 Oct 2002 13:52:59 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3DA59BDF.7030904@superbug.demon.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3DA59BDF.7030904@superbug.demon.co.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James Courtier-Dutton Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 doing the next snd_pcm_write(). > A different thread wants to flush the buffer. There are two types of > flush: - > 1) Immeadiately empty the buffer. snd_pcm_drop() ? > 2) Stop accepting snd_pcm_write() commands until the current buffer has > drained. snd_pcm_drain() ? Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf