1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

Revert "Audio : allow XAudio2 to run its own thread" (#1988)

This commit is contained in:
raven02 2016-07-25 09:09:14 +08:00 committed by GitHub
parent 2a3029a62c
commit 1672c93a2d
2 changed files with 0 additions and 14 deletions

View File

@ -62,7 +62,6 @@ void XAudio2Thread::xa27_destroy()
{
s_tls_xaudio2_instance->StopEngine();
s_tls_xaudio2_instance->Release();
CoUninitialize();
}
CoUninitialize();
@ -118,8 +117,6 @@ void XAudio2Thread::xa27_open()
if (FAILED(hr))
{
LOG_ERROR(GENERAL, "XAudio2Thread : CreateSourceVoice() failed(0x%08x)", (u32)hr);
s_tls_xaudio2_instance->Release();
CoUninitialize();
Emu.Pause();
return;
}

View File

@ -20,14 +20,6 @@ void XAudio2Thread::xa28_init(void* module)
HRESULT hr = S_OK;
hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED); // allow Xaudio2 run in its own thread
if (FAILED(hr))
{
LOG_ERROR(GENERAL, "XAudio2Thread : CoInitializeEx() failed(0x%08x)", (u32)hr);
Emu.Pause();
return;
}
hr = create(&s_tls_xaudio2_instance, 0, XAUDIO2_DEFAULT_PROCESSOR);
if (FAILED(hr))
{
@ -64,7 +56,6 @@ void XAudio2Thread::xa28_destroy()
{
s_tls_xaudio2_instance->StopEngine();
s_tls_xaudio2_instance->Release();
CoUninitialize();
}
}
@ -118,8 +109,6 @@ void XAudio2Thread::xa28_open()
if (FAILED(hr))
{
LOG_ERROR(GENERAL, "XAudio2Thread : CreateSourceVoice() failed(0x%08x)", (u32)hr);
s_tls_xaudio2_instance->Release();
CoUninitialize();
Emu.Pause();
return;
}