From: Takashi Iwai Subject: Re: snd_pcm_drain() always fails Date: Mon, 01 Aug 2005 20:45:14 +0200 Message-ID: References: <20050801172719.GB10144@brailcom.cz> <20050801181015.GE10144@brailcom.cz> <20050801183637.GF10144@brailcom.cz> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 9A71A176 for ; Mon, 1 Aug 2005 20:45:18 +0200 (MEST) In-Reply-To: <20050801183637.GF10144@brailcom.cz> 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: Hynek Hanke Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 1 Aug 2005 20:36:37 +0200, Hynek Hanke wrote: > > > Set avail_min swparams to the buffer size so that poll() won't return > > unless the full buffer size becomes free (i.e. all samples are > > played). > > This would mean, if I understand correctly, that I always send more data only > after the buffer is already empty. Won't that cause unwanted effects > (underrruns etc.)? No, you can change avail_min on the fly, at the moment you want "draining". Reset avail_min to a certain value again if you want to re-feed the data. Takashi ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click