Add volume control for the pulse audio backend. Unfortunately that can not be done...
[dolphin.git] / Source / Plugins / Plugin_DSP_LLE / Src / DSPConfigDlgLLE.h
blobfd774052390072113cf37ced606aee45145975fe
1 // Copyright (C) 2003 Dolphin Project.
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, version 2.0.
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU General Public License 2.0 for more details.
12 // A copy of the GPL 2.0 should have been included with the program.
13 // If not, see http://www.gnu.org/licenses/
15 // Official SVN repository and contact information can be found at
16 // http://code.google.com/p/dolphin-emu/
18 #ifndef __DSP_LLE_CONFIGDIALOG_h__
19 #define __DSP_LLE_CONFIGDIALOG_h__
21 #include <wx/wx.h>
22 #include <wx/dialog.h>
23 #include <wx/button.h>
24 #include <wx/statbox.h>
25 #include "AudioCommon.h"
27 class DSPConfigDialogLLE : public wxDialog
29 public:
30 DSPConfigDialogLLE(wxWindow *parent,
31 wxWindowID id = wxID_ANY,
32 const wxString &title = wxT("Dolphin DSP-LLE Plugin Settings"),
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = wxDEFAULT_DIALOG_STYLE);
36 virtual ~DSPConfigDialogLLE();
37 void AddBackend(const char *backend);
38 void ClearBackends();
40 private:
41 DECLARE_EVENT_TABLE();
43 wxSlider *m_volumeSlider;
44 wxStaticText *m_volumeText;
45 wxButton *m_OK;
46 wxCheckBox *m_buttonEnableDTKMusic;
47 wxCheckBox *m_buttonEnableThrottle;
48 wxCheckBox *m_buttonEnableJIT;
49 wxArrayString wxArrayBackends;
50 wxChoice *m_BackendSelection;
52 enum
54 ID_ENABLE_DTK_MUSIC,
55 ID_ENABLE_THROTTLE,
56 ID_ENABLE_JIT,
57 ID_BACKEND,
58 ID_VOLUME
61 void OnOK(wxCommandEvent& event);
62 void SettingsChanged(wxCommandEvent& event);
63 void VolumeChanged(wxScrollEvent& event);
64 bool SupportsVolumeChanges(std::string backend);
65 void BackendChanged(wxCommandEvent& event);
68 #endif //__DSP_LLE_CONFIGDIALOG_h__