Do the first CoInitializeEx on the main thread instead of the EmuThread (WASAPI). Fixes #7334

This commit is contained in:
Henrik Rydgard committed 2015-01-15 22:33:20 +01:00
1 parent c8c80c0ced
commit 8a574e5cd2
4 files changed
+4 -5

No files matched your search

-2
View File
@@ -275,11 +275,9 @@ private:
#define REFTIMES_PER_MILLISEC (REFTIMES_PER_SEC / 1000)
WASAPIAudioBackend::WASAPIAudioBackend() : hThread_(NULL), sampleRate_(0), callback_(nullptr), threadData_(0) {
CoInitializeEx(NULL, COINIT_MULTITHREADED);
}
WASAPIAudioBackend::~WASAPIAudioBackend() {
CoUninitialize();
if (threadData_ == 0) {
threadData_ = 1;
}