aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-07 10:56:02 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-07 10:56:02 -0500
commite5863a09dfeef942da8b9459d39badeba3d0620c (patch)
treef4f7daa83808da2782cc46028bbb065eff778fc4 /qmidiplayer-desktop
parent9981f1d60352c01ae4373b84acd05460e2aa49d5 (diff)
downloadQMidiPlayer-e5863a09dfeef942da8b9459d39badeba3d0620c.tar.xz
Set device id of fluidsynth to 16, as used by most GS synths.
(This should really be a new option...) Also strip the marker bytes of sysex messages before sending to Fluidsynth. Someone didn't read the docs before coding.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index 1198559..6132234 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -441,6 +441,7 @@ void qmpMainWindow::playerSetup(IFluidSettings *fs)
});
}
fs->setOptStr("synth.midi-bank-select", bsmode.c_str());
+ fs->setOptInt("synth.device-id", 0x10);
player->sendSysX(settings->getOptionBool("Midi/SendSysEx"));
}
void qmpMainWindow::loadSoundFont(IFluidSettings *fs)