From: Takashi Iwai Subject: Re: underun problems Date: Thu, 30 Mar 2006 16:27:43 +0200 Message-ID: References: <442A54E9.5050303@tiger.com.pl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <442A54E9.5050303@tiger.com.pl> 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: Maciek Kaminski Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 29 Mar 2006 11:35:37 +0200, Maciek Kaminski wrote: > > I get voice data over network, at the moment I can't implement jitter > buffer so I have to play exactly what I get. The problem is how to > manage underuns that happen when data arrives late. I tried to use > silence threshold but that does not seem to help. Question is: what to > do to make silence substitution work? I was suggested to set the > silence size to boundary value that also does not seem to work... > Are the any other strategies to silence underruns? The silence_* stuff has basically nothing to do with underrun conditions. They are for automatic silencing the data area that have been played. The underrun condition is set up via stop_threshold parameter. Setting it to boundary means that the sound keeps running even if underrun occurs. It's what dmix is doing. This free-run mode is, though, a bit tricky. Since it never reports XRUN, you have to check and compare hwptr and applptr, reset reset the applptr appropriately by yourself. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642