diff options
author | Chris Robinson <[email protected]> | 2011-07-21 17:04:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-21 17:04:33 -0700 |
commit | 3d2812bd3588dec06ea4544373d870db51b2ec8f (patch) | |
tree | 6449a822fb1d6ce51fa9a68e4fc8c349d2f03cce /Alc/mmdevapi.c | |
parent | a0e5cbc47fa95b57398af7b0454e2809bba1874b (diff) |
Reset the MMDevAPI and DSound events before starting playback
Diffstat (limited to 'Alc/mmdevapi.c')
-rw-r--r-- | Alc/mmdevapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mmdevapi.c b/Alc/mmdevapi.c index d4840de6..b0c0b289 100644 --- a/Alc/mmdevapi.c +++ b/Alc/mmdevapi.c @@ -530,6 +530,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) ERR("Audio client returned buffer_len < period*2; expect break up\n"); } + ResetEvent(data->hNotifyEvent); hr = IAudioClient_SetEventHandle(data->client, data->hNotifyEvent); if(SUCCEEDED(hr)) hr = IAudioClient_Start(data->client); @@ -564,7 +565,6 @@ static void MMDevApiStopPlayback(ALCdevice *device) data->killNow = 0; IAudioClient_Stop(data->client); - ResetEvent(data->hNotifyEvent); } |