From: Clemens Ladisch Subject: Re: quit snd_pcm_readi, retrieve pending frames Date: Sun, 14 May 2006 15:07:21 +0200 Message-ID: <20060514130721.GA13623@turing.informatik.uni-halle.de> References: <4465BDCB.7010900@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <4465BDCB.7010900@gmx.net> Content-disposition: inline Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Gerald Grabner Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Gerald Grabner wrote: > Is there an easy way to stop snd_pcm_readi in a way that I can > retrieve the residual frames? snd_pcm_readi uses only the readiness state of the PCM device to determine when to unblock. If you want to wait for another event, use non-blocking mode and add another handle to poll(). Typically, a pipe is used for this. HTH Clemens ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642