mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
LURE: Running water sound effect workaround
The sound effects for running water have 2 channels listed for MT-32 in their sound resource, but the MIDI data actually uses 3 channels. Added a patch to this sound resource in lure.dat so the sound effects can play without channel 3 overriding channel 1.
This commit is contained in:
parent
ffcf4976b7
commit
4720253031
@ -1408,6 +1408,13 @@ void save_sound_desc_data(byte *&data, uint16 &totalSize) {
|
||||
totalSize = SOUND_DESCS_SIZE;
|
||||
data = (byte *) malloc(totalSize);
|
||||
lureExe.read(data, totalSize);
|
||||
|
||||
// WORKAROUND Sounds 0 and 12 (running water) use 3 channels
|
||||
// on MT-32, but sound resource lists 2.
|
||||
if ((data[2] & 3) == 2) {
|
||||
data[2] |= 3;
|
||||
data[(12 * 5) + 2] |= 3;
|
||||
}
|
||||
}
|
||||
|
||||
struct DecoderEntry {
|
||||
|
Loading…
Reference in New Issue
Block a user