We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74943ea commit 07db1daCopy full SHA for 07db1da
src/output/audio/AudioOutputDSound.cpp
@@ -193,6 +193,12 @@ bool AudioOutputDSound::close()
193
available = false;
194
destroy();
195
CloseHandle(notify_event); // FIXME: is it ok if thread is still waiting?
196
+
197
+ // Wait for the PositionWatcher thread to stop.
198
+ while (watcher.isRunning()) {
199
+ watcher.wait(500);
200
+ }
201
202
return true;
203
}
204
0 commit comments