mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
CINE: FW: Fix Roland MT-32 sample playing.
Fix bug #11547 ("CINE: FW: Game crashes during intro with MT-32 music"). Future Wars PC disassembly passes 256 to writeInstrument and writeInstrument overwrites it with value 246 here. So the value becomes 246 in the end.
This commit is contained in:
parent
24928ed258
commit
8c34f865e8
@ -768,7 +768,7 @@ void MidiSoundDriverH32::playSample(const byte *data, int size, int channel, int
|
||||
if (data[0] < 0x80) {
|
||||
selectInstrument(channel, data[0] / 0x40, data[0] % 0x40, volume);
|
||||
} else {
|
||||
writeInstrument(channel * 512 + 0x80000, data + 1, size - 1);
|
||||
writeInstrument(channel * 512 + 0x80000, data + 1, 256);
|
||||
selectInstrument(channel, 2, channel, volume);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user