Re: [ecasound] obviously wrong ALSA underruns reported by ecasound-2.6.0

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Wed Nov 25 2009 - 19:41:50 EET

Hi,

On Mon, 23 Nov 2009, Sergei Steshenko wrote:

> " WARNING: ALSA playback underrun, glitches in audio playback possible!
> Break was at least 566281884.09 ms long. "
[...]
> In reality the drop was like 1 second, maybe less.
[...]
> Is it a known issue ?
>
> Which of the two - ecasound or ALSA - reports underruns ?

ok, tis is quite interesting? The warning is printed by ecasound, but the
code has remained the same for who now how many years, and is virtually
identical to the warning printed by the most recent aplay (of alsa-utils).
Only thing that's different that ecasound does not use the monotonic
timestamps even if they are available (reason: these are a later addition
and were not available when ecasound's ALSA code was written).

What version of alsa-lib and kernel (cat /proc/asound/version for the latter)
do you have...? Also what soundcard/chip do you have (cat
/proc/asound/cards)...?

> I'd say, I've never seen a reasonable number since upgrade to both
> SUSE-11.1 (i.e. newer ALSA) and ecasound-2.6.0 - from ecasound-2.5.2
>
> Both versions of ecasound are self-built using the same tool of mine.

So I'm 99+% sure it's caused by the ALSA upgrade (the xrun reporting code
is exactly the same in 2.5.2 as in 2.6.0).

Now the actual bug might still be in ecasound (and possibly in aplay as
well), but it's just been hidden with older ALSA versions. Hmm, I wonder
how I could reproduce this myself... :P

> WARNING: ALSA playback underrun, glitches in audio playback possible! Break was at least 566281807.81 ms long.
> WARNING: ALSA playback underrun, glitches in audio playback possible! Break was at least 566281802.92 ms long.

Btw, in any case the XRUN is real in these cases (this warning is only
printed when the stream goes to XRUN state and the length estimation is
done as a separate step). I.e. the break length is not used to decide
whether there was a XRUN or not... (this would be a fairly bad bug).

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Wed Nov 25 20:15:06 2009

This archive was generated by hypermail 2.1.8 : Wed Nov 25 2009 - 20:15:06 EET