CubebAudioStream: Remove leftover field

This commit is contained in:
Stenzek 2024-08-10 13:15:32 +10:00
parent 34df233a95
commit b72e622ae0
No known key found for this signature in database
1 changed files with 0 additions and 17 deletions

View File

@ -15,11 +15,6 @@
#include "cubeb/cubeb.h"
#include "fmt/format.h"
#ifdef _WIN32
#include "common/windows_headers.h"
#include <objbase.h>
#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)