From 1f4487b836c05972661640a8d262c395d9d5b68e Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Wed, 26 Dec 2018 05:33:19 -0800 Subject: [PATCH] faudio: add gui code for selecting driver Add code to swtich to faudio api when the option is selected in the config dialog in guiinit.cpp. --- src/wx/guiinit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 15d6f806..4c7d80ee 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -3441,6 +3441,10 @@ bool MainFrame::BindControls() audapi_rb("XAudio2", AUD_XAUDIO2); #if !defined(__WXMSW__) || defined(NO_XAUDIO2) rb->Hide(); +#endif + audapi_rb("Faudio", AUD_FAUDIO); +#ifdef NO_FAUDIO + rb->Hide(); #endif sound_config_handler.dev = SafeXRCCTRL(d, "Device"); sound_config_handler.dev->SetValidator(SoundConfigLoad());