aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-01-25 22:44:17 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-01-25 22:44:17 +0800
commit4d9b1e98f4f3cd7387491ba1cc883230302a9022 (patch)
tree7147e208bdab4356e317cb46ea4958de23f6800f /qmidiplayer-desktop/qmpmainwindow.cpp
parent003c637ef40e1826b7c829afbfba82ea028e21a5 (diff)
downloadQMidiPlayer-4d9b1e98f4f3cd7387491ba1cc883230302a9022.tar.xz
Fixed a crash caused by improper preset probing.
Further ensure CC#8 is initialized correctly. Minor string table update.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index c83152c..adbd6d5 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -309,7 +309,7 @@ void qmpMainWindow::playerSetup(IFluidSettings* fs)
fs->setOptInt("audio.period-size",settings->value("Audio/BufSize","").toInt());
fs->setOptInt("audio.periods",settings->value("Audio/BufCnt","").toInt());
fs->setOptStr("audio.sample-format",settings->value("Audio/Format","").toString().toStdString().c_str());
- fs->setOptInt("synth.sample-rate",settings->value("Audio/Frequency","").toInt());
+ fs->setOptNum("synth.sample-rate",settings->value("Audio/Frequency","").toInt());
fs->setOptInt("synth.polyphony",settings->value("Audio/Polyphony","").toInt());
fs->setOptInt("synth.cpu-cores",settings->value("Audio/Threads","").toInt());
char bsmode[4];