aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/drivers/midi.cpp
diff options
context:
space:
mode:
authormd52011-05-13 16:12:52 +0300
committermd52011-05-13 16:44:16 +0300
commitcb8460e92669da540eb54b80c249a7ba1f7df45a (patch)
treeea67b6d934e5e07bd022def64d963e0f48f13991 /engines/sci/sound/drivers/midi.cpp
parent40b63320e5898f4634a794ea35005b77591ca420 (diff)
downloadscummvm-rg350-cb8460e92669da540eb54b80c249a7ba1f7df45a.tar.gz
scummvm-rg350-cb8460e92669da540eb54b80c249a7ba1f7df45a.tar.bz2
scummvm-rg350-cb8460e92669da540eb54b80c249a7ba1f7df45a.zip
SCI: Don't include several debug tables when REDUCE_MEMORY_USAGE is defined
Diffstat (limited to 'engines/sci/sound/drivers/midi.cpp')
-rw-r--r--engines/sci/sound/drivers/midi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index f36aac3a2a..e1bc23cec9 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -819,11 +819,13 @@ void MidiPlayer_Midi::mapMt32ToGm(byte *data, size_t size) {
if (_patchMap[i] == MIDI_UNMAPPED) {
debugC(kDebugLevelSound, "[Unmapped]");
} else {
+#ifndef REDUCE_MEMORY_USAGE
if (_patchMap[i] >= 128) {
debugC(kDebugLevelSound, "%s [Rhythm]", GmPercussionNames[_patchMap[i] - 128]);
} else {
debugC(kDebugLevelSound, "%s", GmInstrumentNames[_patchMap[i]]);
}
+#endif
}
_keyShift[i] = CLIP<uint8>(keyshift, 0, 48) - 24;
@@ -855,10 +857,12 @@ void MidiPlayer_Midi::mapMt32ToGm(byte *data, size_t size) {
}
}
+#ifndef REDUCE_MEMORY_USAGE
if (_percussionMap[ins] == MIDI_UNMAPPED)
debugC(kDebugLevelSound, "[Unmapped]");
else
debugC(kDebugLevelSound, "%s", GmPercussionNames[_percussionMap[ins]]);
+#endif
_percussionVelocityScale[ins] = *(data + pos + 4 * i + 3) * 127 / 100;
}