DescriptionAssume pending buffered bytes is zero when ALSA has underrun.
According to docs, snd_pcm_delay() may not reach zero when ALSA has underrun. Furthermore it may return negative numbers when underrun, leading to an underflow when converted to uint32. Previously none of this was an issue however as of r43546 we now wait for pending buffered bytes to reach zero before notifying that the audio stream has finished.
This doesn't completely fix the Linux ended event issue, but is a required fix regardless.
BUG=30452
TEST=media_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43914
Patch Set 1 #Patch Set 2 : Copyright years #
Total comments: 8
Patch Set 3 : Revert impl #Patch Set 4 : Tiny fix #
Messages
Total messages: 5 (0 generated)
|