diff options
author | Torbjörn Andersson | 2005-10-10 09:31:27 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-10-10 09:31:27 +0000 |
commit | abb9ee416f46ce514b9977b4ca255deec8da15b5 (patch) | |
tree | 24357b38f6fccd03d0c552097006c704cd5a6dfe | |
parent | 5b92d1e9fa2af8d371144a18c319215bc92b6bdf (diff) | |
download | scummvm-rg350-abb9ee416f46ce514b9977b4ca255deec8da15b5.tar.gz scummvm-rg350-abb9ee416f46ce514b9977b4ca255deec8da15b5.tar.bz2 scummvm-rg350-abb9ee416f46ce514b9977b4ca255deec8da15b5.zip |
Removed the "reset all controllers" message. It currently breaks on Adlib,
and I don't want to have to worry about it. Centering the pitch wheel is
the change that I primarily wanted to make, and that should be supported by
every MIDI driver we have.
svn-id: r18999
-rw-r--r-- | sound/midiparser.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/midiparser.cpp b/sound/midiparser.cpp index 43fd7091ae..d394d5310e 100644 --- a/sound/midiparser.cpp +++ b/sound/midiparser.cpp @@ -257,13 +257,12 @@ void MidiParser::allNotesOff() { _hanging_notes_count = 0; // To be sure, send an "All Note Off" event (but not all MIDI devices - // support this...). We also reset all controllers and, but in case - // that isn't supported either we manually center the pitch wheel. This - // should ensure that the next piece of music isn't played off-key. + // support this...). We also center the pitch wheel. Perhaps we should + // reset all controllers, but at the time of writing that isn't + // supported on all our MIDI drivers. for (i = 0; i < 16; ++i) { _driver->send(0x007BB0 | i); // All notes off - _driver->send(0x0079B0 | i); // All controllers off _driver->send(0x4000E0 | i); // Center the pitch wheel } |