aboutsummaryrefslogtreecommitdiff
path: root/qmpsettingswindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-02-28 11:09:54 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-02-28 11:09:54 +0800
commit60f306607ead64f329a4c1f875af3b7ff5ad1149 (patch)
treec43f4904460bc07e9c1635d10d0a11be41bcd1b4 /qmpsettingswindow.cpp
parent20283f4c5629f659d05ba18475492c43163bb16e (diff)
downloadQMidiPlayer-60f306607ead64f329a4c1f875af3b7ff5ad1149.tar.xz
Forbidden Magic.
Diffstat (limited to 'qmpsettingswindow.cpp')
-rw-r--r--qmpsettingswindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmpsettingswindow.cpp b/qmpsettingswindow.cpp
index 5058496..b1f620c 100644
--- a/qmpsettingswindow.cpp
+++ b/qmpsettingswindow.cpp
@@ -78,7 +78,7 @@ void qmpSettingsWindow::settingsInit()
if(~selected)ui->cbAudioDrv->setCurrentIndex(selected);
settings->setValue("Audio/Driver",ui->cbAudioDrv->currentText());
-#ifdef WIN32
+#ifdef _WIN32
#define DefBufSize 8192
#else
#define DefBufSize 128
@@ -136,6 +136,7 @@ void qmpSettingsWindow::settingsInit()
{selected=i;break;}
if(~selected)ui->cbBSMode->setCurrentIndex(selected);
settings->setValue("Audio/BankSelect",ui->cbBSMode->currentText());
+ settings->setValue("Audio/Gain",settings->value("Audio/Gain",50));
int sfc=settings->value("SoundFonts/SFCount",0).toInt();
ui->lwSoundfont->clear();for(int i=1;i<=sfc;++i)