summaryrefslogtreecommitdiffstats
path: root/Alc/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-21 17:04:33 -0700
committerChris Robinson <[email protected]>2011-07-21 17:04:33 -0700
commit3d2812bd3588dec06ea4544373d870db51b2ec8f (patch)
tree6449a822fb1d6ce51fa9a68e4fc8c349d2f03cce /Alc/mmdevapi.c
parenta0e5cbc47fa95b57398af7b0454e2809bba1874b (diff)
Reset the MMDevAPI and DSound events before starting playback
Diffstat (limited to 'Alc/mmdevapi.c')
-rw-r--r--Alc/mmdevapi.c2
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);
}