diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-10 22:26:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-10 22:26:20 +0100 |
commit | add8b1df6802cba4b27599eb9920fb552949c38c (patch) | |
tree | f101566b580e5424ede52e06b53d6643a395e6a3 /src/audio_core/cubeb_sink.cpp | |
parent | Merge pull request #2217 from ReinUsesLisp/rasterizer-logger (diff) | |
parent | audio_core/cubeb_sink: Convert _MSC_VER ifdefs to _WIN32 (diff) | |
download | yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar.gz yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar.bz2 yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar.lz yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar.xz yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.tar.zst yuzu-add8b1df6802cba4b27599eb9920fb552949c38c.zip |
Diffstat (limited to 'src/audio_core/cubeb_sink.cpp')
-rw-r--r-- | src/audio_core/cubeb_sink.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 1da0b9f2a..7047ed9cf 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -12,7 +12,7 @@ #include "common/ring_buffer.h" #include "core/settings.h" -#ifdef _MSC_VER +#ifdef _WIN32 #include <objbase.h> #endif @@ -113,7 +113,7 @@ private: CubebSink::CubebSink(std::string_view target_device_name) { // Cubeb requires COM to be initialized on the thread calling cubeb_init on Windows -#ifdef _MSC_VER +#ifdef _WIN32 com_init_result = CoInitializeEx(nullptr, COINIT_MULTITHREADED); #endif @@ -152,7 +152,7 @@ CubebSink::~CubebSink() { cubeb_destroy(ctx); -#ifdef _MSC_VER +#ifdef _WIN32 if (SUCCEEDED(com_init_result)) { CoUninitialize(); } |