2015-03-18 22:00:27 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2015-03-18 22:00:27 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <wx/arrstr.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
|
2016-08-02 06:22:37 +00:00
|
|
|
class DolphinSlider;
|
2015-03-18 22:00:27 +00:00
|
|
|
class wxCheckBox;
|
|
|
|
class wxChoice;
|
|
|
|
class wxRadioBox;
|
|
|
|
class wxSpinCtrl;
|
|
|
|
class wxStaticText;
|
|
|
|
|
|
|
|
class AudioConfigPane final : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
AudioConfigPane(wxWindow* parent, wxWindowID id);
|
2015-03-18 22:00:27 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
void InitializeGUI();
|
|
|
|
void LoadGUIValues();
|
2016-11-05 12:29:29 +00:00
|
|
|
void BindEvents();
|
2016-06-24 08:43:46 +00:00
|
|
|
|
|
|
|
void PopulateBackendChoiceBox();
|
2016-10-10 02:10:16 +00:00
|
|
|
void ToggleBackendSpecificControls(const std::string& backend);
|
2016-06-24 08:43:46 +00:00
|
|
|
|
|
|
|
void OnDSPEngineRadioBoxChanged(wxCommandEvent&);
|
|
|
|
void OnDPL2DecoderCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnVolumeSliderChanged(wxCommandEvent&);
|
|
|
|
void OnAudioBackendChanged(wxCommandEvent&);
|
|
|
|
void OnLatencySpinCtrlChanged(wxCommandEvent&);
|
|
|
|
|
|
|
|
wxArrayString m_dsp_engine_strings;
|
|
|
|
wxArrayString m_audio_backend_strings;
|
|
|
|
|
|
|
|
wxRadioBox* m_dsp_engine_radiobox;
|
|
|
|
wxCheckBox* m_dpl2_decoder_checkbox;
|
2016-08-02 06:22:37 +00:00
|
|
|
DolphinSlider* m_volume_slider;
|
2016-06-24 08:43:46 +00:00
|
|
|
wxStaticText* m_volume_text;
|
|
|
|
wxChoice* m_audio_backend_choice;
|
|
|
|
wxSpinCtrl* m_audio_latency_spinctrl;
|
2016-10-10 02:28:50 +00:00
|
|
|
wxStaticText* m_audio_latency_label;
|
2015-03-18 22:00:27 +00:00
|
|
|
};
|