mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Do the first CoInitializeEx on the main thread instead of the EmuThread (WASAPI). Fixes #7334
This commit is contained in:
1 parent
c8c80c0ced
commit
8a574e5cd2
4 files changed
+4
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user