diff options
Diffstat (limited to 'engines/sci/sound/drivers/mididriver.h')
-rw-r--r-- | engines/sci/sound/drivers/mididriver.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/sound/drivers/mididriver.h b/engines/sci/sound/drivers/mididriver.h index f51851bde6..73c2fd5737 100644 --- a/engines/sci/sound/drivers/mididriver.h +++ b/engines/sci/sound/drivers/mididriver.h @@ -24,6 +24,7 @@ #define SCI_SFX_SOFTSEQ_MIDIDRIVER_H #include "sci/sci.h" +#include "sci/util.h" #include "audio/mididrv.h" #include "common/error.h" @@ -106,8 +107,6 @@ public: return _driver ? _driver->property(MIDI_PROP_MASTER_VOLUME, 0xffff) : 0; } - virtual void onNewSound() {} - // Returns the current reverb, or -1 when no reverb is active int8 getReverb() const { return _reverb; } // Sets the current reverb, used mainly in MT-32 @@ -121,6 +120,12 @@ public: } } + // Prepares the driver for the playback of SCI0 midi tracks. + // The main purpose is the assignment of voices ("hardware" sound channels) to the 16 midi parts. + // This is basically the predecessor of the 0x4B midi event. + // Some drivers also do other things in here. + virtual void initTrack(SciSpan<const byte> &) {} + protected: SciVersion _version; }; |