Skip to content

Commit

Permalink
Change default audio backend on Linux
Browse files Browse the repository at this point in the history
FAudio is preferred, but if we didn't build with FAudio, we default to OpenAL on Linux
  • Loading branch information
hcorion committed Mar 17, 2020
1 parent f3877d1 commit f50c9ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rpcs3/Emu/system_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,16 @@ struct cfg_root : cfg::node
{
node_audio(cfg::node* _this) : cfg::node(_this, "Audio") {}

cfg::_enum<audio_renderer> renderer{ this, "Renderer", static_cast<audio_renderer>(1) };
cfg::_enum<audio_renderer> renderer{ this, "Renderer",
#ifdef __linux__
#ifdef HAVE_FAUDIO
audio_renderer::faudio };
#else
audio_renderer::openal };
#endif
#else
static_cast<audio_renderer>(1) };
#endif

cfg::_bool dump_to_file{ this, "Dump to file" };
cfg::_bool convert_to_u16{ this, "Convert to 16 bit" };
Expand Down

0 comments on commit f50c9ec

Please sign in to comment.