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/dsound.c | |
parent | a0e5cbc47fa95b57398af7b0454e2809bba1874b (diff) |
Reset the MMDevAPI and DSound events before starting playback
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index 8d2834c2..b1312373 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -513,6 +513,7 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device) if(SUCCEEDED(hr)) { + ResetEvent(pData->hNotifyEvent); SetDefaultWFXChannelOrder(device); pData->thread = StartThread(DSoundProc, device); if(pData->thread == NULL) @@ -556,8 +557,6 @@ static void DSoundStopPlayback(ALCdevice *device) if(pData->DSpbuffer != NULL) IDirectSoundBuffer_Release(pData->DSpbuffer); pData->DSpbuffer = NULL; - - ResetEvent(pData->hNotifyEvent); } |