diff options
author | Johannes Schickel | 2010-09-15 22:00:20 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-09-15 22:00:20 +0000 |
commit | 6588398ce6fab85e287b10c2781d3797d7639cb9 (patch) | |
tree | 68bb65c1d3363aff0d66313661822a9040090236 /sound/mididrv.h | |
parent | bb5db4aa3b67c7270b208fe43d829906f7409b63 (diff) | |
download | scummvm-rg350-6588398ce6fab85e287b10c2781d3797d7639cb9.tar.gz scummvm-rg350-6588398ce6fab85e287b10c2781d3797d7639cb9.tar.bz2 scummvm-rg350-6588398ce6fab85e287b10c2781d3797d7639cb9.zip |
MIDI: Send a reset MIDI device signal on startup.
This is currently done in the engine code. I adapted AGI, AGOS, DRACI,
GROOVIE, LURE, MADE, QUEEN, SAGA, SKY, TINSEL and TOUCHE to send a reset
device on startup. The sound output still works fine (started up a game
from every engine), so this should hopefully not introduce any regressions.
As far as I can tell it seems that SCUMM does send a proper device reset, so
I did not touch it. KYRA only sends a proper reset for MT-32 currently. I am
not sure about SCI though.
This fixes bug #3066826 "SIMON: MIDI notes off when using RTL after SCI".
svn-id: r52736
Diffstat (limited to 'sound/mididrv.h')
-rw-r--r-- | sound/mididrv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/mididrv.h b/sound/mididrv.h index 7ba1fe19f7..9e649cba3d 100644 --- a/sound/mididrv.h +++ b/sound/mididrv.h @@ -216,6 +216,16 @@ public: } /** + * Send a Roland MT-32 reset sysEx to the midi device. + */ + void sendMT32Reset(); + + /** + * Send a General MIDI reset sysEx to the midi device. + */ + void sendGMReset(); + + /** * Transmit a sysEx to the midi device. * * The given msg MUST NOT contain the usual SysEx frame, i.e. |