Mercurial > mplayer.hg
diff libao2/ao_nas.c @ 34564:96019b1174b8
Workaround a bug in Pulse Audio (http://pulseaudio.org/ticket/866)
that causes 2 second delay while trying to drain the current stream.
It seems that if we wait for the data to be played before calling
the pa_stream_drain function, it would not block for the whole
duration of its internal buffer, thus avoid the 2 seconds delay.
The code of this workaround is already used in ao_jack and ao_sdl.
Special thanks to Rune Heggtveit <pblc heggtveit n>
who did all the heavy lifting in finding a working solution.
author | iive |
---|---|
date | Fri, 03 Feb 2012 23:11:48 +0000 |
parents | 0f1b5b68af32 |
children |