OPL Synth fix: Double-voice instruments randomly don't play second voice

This commit is contained in:
Hisymak 2018-05-02 20:11:58 +02:00 committed by Christoph Oelckers
parent e87cdd3658
commit 583da7f6cf

View file

@ -225,7 +225,7 @@ void musicBlock::noteOn(uint32_t channel, uint8_t key, int volume)
if (double_voice) if (double_voice)
{ {
i = findFreeVoice(); i = findFreeVoice();
if (i > 0) if (i >= 0)
{ {
voiceKeyOn(i, channel, instrument, 1, key, volume); voiceKeyOn(i, channel, instrument, 1, key, volume);
} }