diff --git a/src/audio/XAudio2API.cpp b/src/audio/XAudio2API.cpp index 795a0ebe..fd0a305b 100644 --- a/src/audio/XAudio2API.cpp +++ b/src/audio/XAudio2API.cpp @@ -187,7 +187,8 @@ const std::vector& XAudio2API::RefreshDevices( // this function must be called from the same thread as we called CoInitializeEx s_devices.clear(); - if (FAILED(CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE))) + HRESULT r = CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE); + if (r != RPC_E_CHANGED_MODE && FAILED(r)) return s_devices; try