AUDIO: Fix UB shift of negative integer in AdLib driver
This commit is contained in:
parent
02614f2f1a
commit
1871c7dfea
1 changed files with 1 additions and 1 deletions
|
@ -1796,7 +1796,7 @@ void MidiDriver_ADLIB::adlibSetParam(int channel, byte param, int value, bool pr
|
|||
value -= 15;
|
||||
else
|
||||
value -= 383;
|
||||
value <<= 4;
|
||||
value *= 16;
|
||||
_channelTable2[channel] = value;
|
||||
adlibPlayNote(channel, _curNotTable[channel] + value);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue