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:
NMIError 2020-07-17 22:45:54 +02:00 committed by Thierry Crozat
parent ffcf4976b7
commit 4720253031

View File

@ -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 {