2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2008-12-08 04:46:09 +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-01-17 21:42:43 +00:00
|
|
|
#ifndef __DSP_HLE_CONFIGDIALOG_h__
|
|
|
|
#define __DSP_HLE_CONFIGDIALOG_h__
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-01-17 21:42:43 +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"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-07-02 19:00:27 +00:00
|
|
|
class DSPConfigDialogHLE : public wxDialog
|
2009-01-17 21:42:43 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-07-02 19:00:27 +00:00
|
|
|
DSPConfigDialogHLE(wxWindow *parent,
|
2010-06-05 01:38:22 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxString &title = wxT("Dolphin DSP-HLE Plugin Settings"),
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
|
|
|
virtual ~DSPConfigDialogHLE();
|
|
|
|
void AddBackend(const char *backend);
|
2009-07-13 13:37:52 +00:00
|
|
|
void ClearBackends();
|
2010-06-05 01:38:22 +00:00
|
|
|
|
2009-01-17 21:42:43 +00:00
|
|
|
private:
|
2010-06-05 01:38:22 +00:00
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
wxSlider* m_volumeSlider;
|
|
|
|
wxStaticText* m_volumeText;
|
|
|
|
wxButton* m_OK;
|
|
|
|
wxCheckBox* m_buttonEnableHLEAudio;
|
|
|
|
wxCheckBox* m_buttonEnableDTKMusic;
|
|
|
|
wxCheckBox* m_buttonEnableThrottle;
|
2009-11-28 11:40:04 +00:00
|
|
|
wxArrayString wxArrayBackends;
|
2010-06-05 01:38:22 +00:00
|
|
|
wxChoice* m_BackendSelection;
|
2009-01-29 00:57:55 +00:00
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
enum
|
2009-01-17 21:42:43 +00:00
|
|
|
{
|
2010-06-05 01:38:22 +00:00
|
|
|
ID_ENABLE_HLE_AUDIO,
|
|
|
|
ID_ENABLE_DTK_MUSIC,
|
|
|
|
ID_ENABLE_THROTTLE,
|
|
|
|
ID_BACKEND,
|
2009-05-18 19:24:46 +00:00
|
|
|
ID_VOLUME
|
2009-01-17 21:42:43 +00:00
|
|
|
};
|
2010-06-05 01:38:22 +00:00
|
|
|
|
|
|
|
void OnOK(wxCommandEvent& event);
|
|
|
|
void SettingsChanged(wxCommandEvent& event);
|
2009-05-18 19:24:46 +00:00
|
|
|
void VolumeChanged(wxScrollEvent& event);
|
2010-02-07 14:51:12 +00:00
|
|
|
bool SupportsVolumeChanges(std::string backend);
|
|
|
|
void BackendChanged(wxCommandEvent& event);
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|
2009-01-17 21:42:43 +00:00
|
|
|
|
|
|
|
#endif //__DSP_HLE_CONFIGDIALOG_h__
|