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.
This commit is contained in:
Rafael Kitover 2018-12-26 05:33:19 -08:00
parent 396227661e
commit 1f4487b836
1 changed files with 4 additions and 0 deletions

View File

@ -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<wxChoice>(d, "Device");
sound_config_handler.dev->SetValidator(SoundConfigLoad());