mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
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.
This commit is contained in:
parent
c9b5ba4a5c
commit
2678ac6382
1 changed files with 8 additions and 1 deletions
|
@ -194,7 +194,14 @@ 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 _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" };
|
||||
|
|
Loading…
Add table
Reference in a new issue