mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 16:40:56 +00:00
OPL Synth fix: Double-voice instruments randomly don't play second voice
This commit is contained in:
parent
e87cdd3658
commit
583da7f6cf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue