aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c3
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);
}