mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
support immed flag
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12147 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
504270e549
commit
134d571014
@ -169,8 +169,8 @@ static int init(int rate,int channels,int format,int flags)
|
||||
// close audio device
|
||||
static void uninit(int immed)
|
||||
{
|
||||
while (buffered_bytes > 0)
|
||||
usec_sleep(50000);
|
||||
if(!immed)while(buffered_bytes > 0)usec_sleep(50000);
|
||||
else buffered_bytes=0;
|
||||
waveOutReset(hWaveOut);
|
||||
waveOutClose(hWaveOut);
|
||||
mp_msg(MSGT_AO, MSGL_V,"waveOut device closed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user