Put XAudio and OpenAL files in separate projects.

This commit is contained in:
Vincent Lejeune 2015-12-30 02:12:18 +01:00
parent ed68e864c2
commit 02473324f4
14 changed files with 393 additions and 39 deletions

View file

@ -32,8 +32,11 @@
#include "Emu/RSX/Null/NullGSRender.h"
#include "Emu/RSX/GL/GLGSRender.h"
#include "Emu/Audio/Null/NullAudioThread.h"
#include "Emu/Audio/AL/OpenALThread.h"
#ifdef _MSC_VER
#include "Emu/RSX/D3D12/D3D12GSRender.h"
#include "Emu/Audio/XAudio2/XAudio2Thread.h"
#endif
#ifdef _WIN32
@ -144,6 +147,19 @@ bool Rpcs3App::OnInit()
}
};
callbacks.get_audio = []() -> std::shared_ptr<AudioThread>
{
switch (rpcs3::state.config.audio.out.value())
{
default:
case audio_output_type::Null: return std::make_shared<NullAudioThread>();
case audio_output_type::OpenAL: return std::make_shared<OpenALThread>();
#ifdef _MSC_VER
case audio_output_type::XAudio2: return std::make_shared<XAudio2Thread>();
#endif
}
};
callbacks.get_msg_dialog = []() -> std::shared_ptr<MsgDialogBase>
{
return std::make_shared<MsgDialogFrame>();