diff options
Diffstat (limited to 'engines/sci/sound/drivers/mididriver.h')
-rw-r--r-- | engines/sci/sound/drivers/mididriver.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/sound/drivers/mididriver.h b/engines/sci/sound/drivers/mididriver.h index 710bd98c97..dabe869a8f 100644 --- a/engines/sci/sound/drivers/mididriver.h +++ b/engines/sci/sound/drivers/mididriver.h @@ -79,10 +79,10 @@ enum { class MidiPlayer : public MidiDriver { protected: MidiDriver *_driver; - byte _reverb; + int8 _reverb; public: - MidiPlayer(SciVersion version) : _driver(0), _reverb(0), _version(version) { } + MidiPlayer(SciVersion version) : _driver(0), _reverb(-1), _version(version) { } int open() { ResourceManager *resMan = g_sci->getResMan(); // HACK @@ -111,10 +111,10 @@ public: return _driver ? _driver->property(MIDI_PROP_MASTER_VOLUME, 0xffff) : 0; } - // Returns the current reverb - byte getReverb() const { return _reverb; } + // 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 - virtual void setReverb(byte reverb) { _reverb = reverb; } + virtual void setReverb(int8 reverb) { _reverb = reverb; } virtual void playSwitch(bool play) { if (!play) { |