diff --git a/src/util/cubeb_audio_stream.cpp b/src/util/cubeb_audio_stream.cpp index eb16c9240..754c8a3d7 100644 --- a/src/util/cubeb_audio_stream.cpp +++ b/src/util/cubeb_audio_stream.cpp @@ -15,11 +15,6 @@ #include "cubeb/cubeb.h" #include "fmt/format.h" -#ifdef _WIN32 -#include "common/windows_headers.h" -#include -#endif - Log_SetChannel(CubebAudioStream); namespace { @@ -44,10 +39,6 @@ private: cubeb* m_context = nullptr; cubeb_stream* stream = nullptr; - -#ifdef _WIN32 - bool m_com_initialized_by_us = false; -#endif }; } // namespace @@ -111,14 +102,6 @@ void CubebAudioStream::DestroyContextAndStream() cubeb_destroy(m_context); m_context = nullptr; } - -#ifdef _WIN32 - if (m_com_initialized_by_us) - { - CoUninitialize(); - m_com_initialized_by_us = false; - } -#endif } bool CubebAudioStream::Initialize(const char* driver_name, const char* device_name, Error* error)