OSDN Git Service

Minor change in interface release for starting a DirectSound sound
authorAlaskanEmily <emily@alaskanemily.net>
Sun, 9 Sep 2018 00:49:23 +0000 (17:49 -0700)
committerAlaskanEmily <emily@alaskanemily.net>
Sun, 9 Sep 2018 00:49:23 +0000 (17:49 -0700)
dsound/cin_sound_dsound.cpp

index 5bab2d5..bfecd03 100755 (executable)
@@ -86,15 +86,14 @@ void Cin_Sound::setEvents(){
             notes[i].hEventNotify = m_event;
         }
         notify->SetNotificationPositions(CIN_DSOUND_NOTIFY_COUNT, notes);
-        notify->Release();
     }
     else{
         DSBPOSITIONNOTIFY note;
         note.dwOffset = 0;
         note.hEventNotify = m_event;
         notify->SetNotificationPositions(1, &note);
-        notify->Release();
     }
+    notify->Release();
 }
 
 Cin_Sound::Cin_Sound(struct Cin_Driver *drv,