diff options
author | Jamieson Christian | 2003-09-15 21:35:30 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-09-15 21:35:30 +0000 |
commit | e0129c34e7124a3b544fa4e5700e83a20d8d66bd (patch) | |
tree | 0f6cd73663a808e928c9b90a9abc41b12d71b476 /scumm | |
parent | 8f26c43b49453e599736b9e48b27620775284b03 (diff) | |
download | scummvm-rg350-e0129c34e7124a3b544fa4e5700e83a20d8d66bd.tar.gz scummvm-rg350-e0129c34e7124a3b544fa4e5700e83a20d8d66bd.tar.bz2 scummvm-rg350-e0129c34e7124a3b544fa4e5700e83a20d8d66bd.zip |
Feature Request [806641] Increase MIDI
performance by omitting redundancies
Removed the use of the _bank member for iMuse Parts.
The member is still being saved/loaded, and a
warning will display if a non-zero _bank value is
set. If it turns out some musical passage is actually
using the _bank, we'll need to reinstate it.
Otherwise, after sufficient testing we can obsolete
it in the savegames.
svn-id: r10261
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp index 29a5232921..57cf12b1e4 100644 --- a/scumm/imuse.cpp +++ b/scumm/imuse.cpp @@ -1534,7 +1534,7 @@ void Part::key_on(byte note, byte velocity) { if (!mc) return; mc->volume(_vol_eff); - mc->programChange(_bank); +// mc->programChange(_bank); mc->noteOn(note, velocity); } } @@ -1658,6 +1658,8 @@ void Part::set_program(byte program) { void Part::set_instrument(uint b) { _bank = (byte)(b >> 8); + if (_bank) + warning ("Non-zero instrument bank selection. Please report this"); _instrument.program((byte) b, _player->isMT32()); if (clearToTransmit()) _instrument.send(_mc); |