From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: XRUN handling Date: Tue, 06 Jul 2010 08:29:03 +0200 Message-ID: <4C32CD2F.2010100@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by alsa0.perex.cz (Postfix) with ESMTP id 5D7EB244CD for ; Tue, 6 Jul 2010 08:29:14 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: melwyn lobo Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org melwyn lobo wrote: > In case snd_pcm_playback_avail() is less than stop threshold but > greater than 0, then these bytes are missing after Xrun prepare and > start stage. Preparing a stream resets it, i.e., any data currently in the buffer is discarded. If you want to have data in the buffer after preparing, you have to write it again. Regards, Clemens