[MPlayer-dev-eng] [PATCH] win32 or sdl audio end doesn't play

Nehal nehalmistry at gmx.net
Sun Mar 28 06:51:25 CEST 2004


the end of audio doesn't play for -ao win32 and -ao sdl. it works for -ao oss because close()ing the sound device returns after the output buffers have been played. for sdl and win32, uninit() just closes it right away. i've added a while loop with a sleep so the audio threads can play the remaining data (this seems like the right way?!?!).

i've also attached a tiny test case. if you play with '-ao sdl' w/o this patch, mplayer will exit before any of the sound data gets played.

not sure about other output devices, i tried OSS, can someone please test the alsa output devices.

Nehal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: endsound.diff
Type: application/octet-stream
Size: 1230 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040327/cd09fb67/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quack.ogg
Type: application/octet-stream
Size: 4207 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040327/cd09fb67/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list