From 2678ac638288b04664b1079b85a81c266709abe4 Mon Sep 17 00:00:00 2001 From: Zion Nimchuk Date: Mon, 16 Mar 2020 22:31:41 -0700 Subject: [PATCH] Change default audio backend on non-windows FAudio is preferred, but if we didn't build with FAudio, we default to OpenAL Also changed it to explicitly use xaudio backend on windows, rather than the static cast we had before. --- rpcs3/Emu/system_config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/system_config.h b/rpcs3/Emu/system_config.h index 32c7bedec4..a439c6ab8b 100644 --- a/rpcs3/Emu/system_config.h +++ b/rpcs3/Emu/system_config.h @@ -194,7 +194,14 @@ struct cfg_root : cfg::node { node_audio(cfg::node* _this) : cfg::node(_this, "Audio") {} - cfg::_enum renderer{ this, "Renderer", static_cast(1) }; + cfg::_enum renderer{ this, "Renderer", +#ifdef _WIN32 + audio_renderer::xaudio }; +#elif HAVE_FAUDIO + audio_renderer::faudio }; +#else + audio_renderer::openal }; +#endif cfg::_bool dump_to_file{ this, "Dump to file" }; cfg::_bool convert_to_u16{ this, "Convert to 16 bit" };