From 583da7f6cfa9f2908f786ee393447ce0e872723a Mon Sep 17 00:00:00 2001 From: Hisymak Date: Wed, 2 May 2018 20:11:58 +0200 Subject: [PATCH] OPL Synth fix: Double-voice instruments randomly don't play second voice --- src/sound/oplsynth/musicblock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/oplsynth/musicblock.cpp b/src/sound/oplsynth/musicblock.cpp index bbbf6f075..66c6b15a6 100644 --- a/src/sound/oplsynth/musicblock.cpp +++ b/src/sound/oplsynth/musicblock.cpp @@ -225,7 +225,7 @@ void musicBlock::noteOn(uint32_t channel, uint8_t key, int volume) if (double_voice) { i = findFreeVoice(); - if (i > 0) + if (i >= 0) { voiceKeyOn(i, channel, instrument, 1, key, volume); }