mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
XAudio2Stream: Remove redundant check
This commit is contained in:
parent
fad7d68ec5
commit
bdde3ce07b
|
@ -6,10 +6,6 @@
|
|||
#include <xaudio2.h>
|
||||
Log_SetChannel(XAudio2AudioStream);
|
||||
|
||||
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
#pragma comment(lib, "xaudio2.lib")
|
||||
#endif
|
||||
|
||||
XAudio2AudioStream::XAudio2AudioStream(u32 sample_rate, u32 channels, u32 buffer_ms, AudioStretchMode stretch)
|
||||
: AudioStream(sample_rate, channels, buffer_ms, stretch)
|
||||
{
|
||||
|
@ -20,13 +16,11 @@ XAudio2AudioStream::~XAudio2AudioStream()
|
|||
if (IsOpen())
|
||||
CloseDevice();
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
if (m_xaudio2_library)
|
||||
FreeLibrary(m_xaudio2_library);
|
||||
|
||||
if (m_com_initialized_by_us)
|
||||
CoUninitialize();
|
||||
#endif
|
||||
}
|
||||
|
||||
std::unique_ptr<AudioStream> CommonHost::CreateXAudio2Stream(u32 sample_rate, u32 channels, u32 buffer_ms,
|
||||
|
|
Loading…
Reference in a new issue