diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-04-20 00:05:06 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-04-20 00:05:06 +0800 |
commit | 04841abbe8d397452782add39f0a6115a29056ce (patch) | |
tree | c8240c4526d7e8aee9c2d25e1cbc46efc508aa78 | |
parent | 20d25423952b4bb2f54b695cefce509d895d89b2 (diff) | |
download | QMidiPlayer-04841abbe8d397452782add39f0a6115a29056ce.tar.xz |
Move Gain to the FluidSynth section.
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index d2a0e6b..50c92b4 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -150,7 +150,7 @@ void qmpMainWindow::init() } chnlw->selectDefaultDevice(); - ui->vsMasterVol->setValue(settings->getOptionRaw("Audio/Gain",50).toInt()); + ui->vsMasterVol->setValue(settings->getOptionRaw("FluidSynth/Gain",50).toInt()); connect(timer,&QTimer::timeout,this,&qmpMainWindow::updateWidgets); connect(timer,&QTimer::timeout,infow,&qmpInfoWindow::updateInfo); ui->pbNext->setIcon(QIcon(getThemedIcon(":/img/next.svg"))); @@ -499,7 +499,7 @@ void qmpMainWindow::playerSeek(uint32_t percentage) void qmpMainWindow::on_vsMasterVol_valueChanged() { if(!stopped)player->fluid()->setGain(ui->vsMasterVol->value()/250.); - settings->setOptionRaw("Audio/Gain",ui->vsMasterVol->value()); + settings->setOptionRaw("FluidSynth/Gain",ui->vsMasterVol->value()); } void qmpMainWindow::on_pbStop_clicked() |