diff options
| author | Michael Maltese <michaeljosephmaltese@gmail.com> | 2016-10-09 19:18:16 -0700 |
|---|---|---|
| committer | Michael Maltese <michaeljosephmaltese@gmail.com> | 2016-10-09 19:18:16 -0700 |
| commit | 45903b7b4de4a0e6f64eebde0fdedd648b1be87a (patch) | |
| tree | 091f5b68c8e45472418e01bae8b17fd83ad28d50 /Source/Core/DolphinWX/Config/AudioConfigPane.cpp | |
| parent | 4834a90e63c3b173784f1e93ff6d21a065499047 (diff) | |
AudioCommon: SupportsDPL2Decoder, SupportsLatencyControl, SupportsVolumeChanges
Diffstat (limited to 'Source/Core/DolphinWX/Config/AudioConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/AudioConfigPane.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Source/Core/DolphinWX/Config/AudioConfigPane.cpp b/Source/Core/DolphinWX/Config/AudioConfigPane.cpp index bd626e437c..ceb344cf0c 100644 --- a/Source/Core/DolphinWX/Config/AudioConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/AudioConfigPane.cpp @@ -55,14 +55,9 @@ void AudioConfigPane::InitializeGUI() m_audio_backend_choice->SetToolTip( _("Changing this will have no effect while the emulator is running.")); m_audio_latency_spinctrl->SetToolTip(_( - "Sets the latency (in ms). Higher values may reduce audio crackling. OpenAL backend only.")); -#if defined(__APPLE__) + "Sets the latency (in ms). Higher values may reduce audio crackling. Certain backends only.")); m_dpl2_decoder_checkbox->SetToolTip( - _("Enables Dolby Pro Logic II emulation using 5.1 surround. Not available on OS X.")); -#else - m_dpl2_decoder_checkbox->SetToolTip( - _("Enables Dolby Pro Logic II emulation using 5.1 surround. OpenAL or Pulse backends only.")); -#endif + _("Enables Dolby Pro Logic II emulation using 5.1 surround. Certain backends only.")); const int space5 = FromDIP(5); @@ -133,14 +128,9 @@ void AudioConfigPane::LoadGUIValues() void AudioConfigPane::ToggleBackendSpecificControls(const std::string& backend) { - m_dpl2_decoder_checkbox->Enable(backend == BACKEND_OPENAL || backend == BACKEND_PULSEAUDIO); - m_audio_latency_spinctrl->Enable(backend == BACKEND_OPENAL); - - // FIXME: this one should ask the backend whether it supports it. - // but getting the backend from string etc. is probably - // too much just to enable/disable a stupid slider... - m_volume_slider->Enable(backend == BACKEND_COREAUDIO || backend == BACKEND_OPENAL || - backend == BACKEND_XAUDIO2); + m_dpl2_decoder_checkbox->Enable(AudioCommon::SupportsDPL2Decoder(backend)); + m_audio_latency_spinctrl->Enable(AudioCommon::SupportsLatencyControl(backend)); + m_volume_slider->Enable(AudioCommon::SupportsVolumeChanges(backend)); } void AudioConfigPane::RefreshGUI() |
