2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2009-03-23 20:55:32 +00:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
2009-03-29 21:00:26 +00:00
|
|
|
#ifndef __DSP_LLE_CONFIGDIALOG_h__
|
|
|
|
#define __DSP_LLE_CONFIGDIALOG_h__
|
2009-03-23 20:55:32 +00:00
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/statbox.h>
|
2009-03-30 09:55:50 +00:00
|
|
|
#include "AudioCommon.h"
|
2009-03-23 20:55:32 +00:00
|
|
|
|
2009-03-29 21:00:26 +00:00
|
|
|
class DSPConfigDialogLLE : public wxDialog
|
2009-03-23 20:55:32 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-03-29 21:00:26 +00:00
|
|
|
DSPConfigDialogLLE(wxWindow *parent,
|
2010-02-25 06:12:35 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
2011-01-14 15:09:30 +00:00
|
|
|
const wxString &title = _("Dolphin DSP-LLE Plugin Settings"),
|
2009-03-23 20:55:32 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
2009-03-29 21:00:26 +00:00
|
|
|
virtual ~DSPConfigDialogLLE();
|
2009-03-23 20:55:32 +00:00
|
|
|
void AddBackend(const char *backend);
|
2009-12-22 07:26:30 +00:00
|
|
|
void ClearBackends();
|
2009-03-29 21:00:26 +00:00
|
|
|
|
2009-03-23 20:55:32 +00:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE();
|
2009-05-20 09:13:28 +00:00
|
|
|
|
|
|
|
wxSlider *m_volumeSlider;
|
|
|
|
wxStaticText *m_volumeText;
|
2009-03-23 20:55:32 +00:00
|
|
|
wxButton *m_OK;
|
2009-03-30 09:55:50 +00:00
|
|
|
wxCheckBox *m_buttonEnableDTKMusic;
|
2009-03-23 20:55:32 +00:00
|
|
|
wxCheckBox *m_buttonEnableThrottle;
|
2010-04-07 15:04:45 +00:00
|
|
|
wxCheckBox *m_buttonEnableJIT;
|
2009-03-23 20:55:32 +00:00
|
|
|
wxArrayString wxArrayBackends;
|
2010-02-19 22:56:37 +00:00
|
|
|
wxChoice *m_BackendSelection;
|
2009-03-23 20:55:32 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2009-03-30 09:55:50 +00:00
|
|
|
ID_ENABLE_DTK_MUSIC,
|
2009-03-23 20:55:32 +00:00
|
|
|
ID_ENABLE_THROTTLE,
|
2010-04-07 15:04:45 +00:00
|
|
|
ID_ENABLE_JIT,
|
2009-05-20 09:13:28 +00:00
|
|
|
ID_BACKEND,
|
|
|
|
ID_VOLUME
|
2009-03-23 20:55:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void OnOK(wxCommandEvent& event);
|
|
|
|
void SettingsChanged(wxCommandEvent& event);
|
2009-05-20 09:13:28 +00:00
|
|
|
void VolumeChanged(wxScrollEvent& event);
|
2010-02-07 14:51:12 +00:00
|
|
|
bool SupportsVolumeChanges(std::string backend);
|
|
|
|
void BackendChanged(wxCommandEvent& event);
|
2009-03-23 20:55:32 +00:00
|
|
|
};
|
|
|
|
|
2009-03-29 21:00:26 +00:00
|
|
|
#endif //__DSP_LLE_CONFIGDIALOG_h__
|