mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
DSi power button and volume switch support (#1630)
* Add proper BPTWL interrupts * Added DSi power button and volume switch hotkeys * Added hardware reset workaround * Adjusted syntax to follow guidelines * Added DSi output volume synchronization * Fix trivial member function error
This commit is contained in:
@ -30,11 +30,11 @@ class AudioSettingsDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AudioSettingsDialog(QWidget* parent);
|
||||
explicit AudioSettingsDialog(QWidget* parent, bool emuActive);
|
||||
~AudioSettingsDialog();
|
||||
|
||||
static AudioSettingsDialog* currentDlg;
|
||||
static AudioSettingsDialog* openDlg(QWidget* parent)
|
||||
static AudioSettingsDialog* openDlg(QWidget* parent, bool emuActive)
|
||||
{
|
||||
if (currentDlg)
|
||||
{
|
||||
@ -42,7 +42,7 @@ public:
|
||||
return currentDlg;
|
||||
}
|
||||
|
||||
currentDlg = new AudioSettingsDialog(parent);
|
||||
currentDlg = new AudioSettingsDialog(parent, emuActive);
|
||||
currentDlg->show();
|
||||
return currentDlg;
|
||||
}
|
||||
@ -51,6 +51,9 @@ public:
|
||||
currentDlg = nullptr;
|
||||
}
|
||||
|
||||
void onSyncVolumeLevel();
|
||||
void onConsoleReset();
|
||||
|
||||
signals:
|
||||
void updateAudioSettings();
|
||||
|
||||
@ -61,6 +64,7 @@ private slots:
|
||||
void on_cbInterpolation_currentIndexChanged(int idx);
|
||||
void on_cbBitrate_currentIndexChanged(int idx);
|
||||
void on_slVolume_valueChanged(int val);
|
||||
void on_chkSyncDSiVolume_clicked(bool checked);
|
||||
void onChangeMicMode(int mode);
|
||||
void on_btnMicWavBrowse_clicked();
|
||||
|
||||
@ -70,6 +74,7 @@ private:
|
||||
int oldInterp;
|
||||
int oldBitrate;
|
||||
int oldVolume;
|
||||
bool oldDSiSync;
|
||||
QButtonGroup* grpMicMode;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user