aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/sound.cpp4
-rw-r--r--engines/mohawk/sound.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp
index fd56d922c8..fea240c6fb 100644
--- a/engines/mohawk/sound.cpp
+++ b/engines/mohawk/sound.cpp
@@ -198,6 +198,10 @@ void Sound::playMidi(uint16 id) {
_midiDriver->setTimerCallback(_midiParser, MidiParser::timerCallback);
}
+void Sound::stopMidi() {
+ _midiParser->unloadMusic();
+}
+
byte Sound::convertRivenVolume(uint16 volume) {
return (volume == 256) ? 255 : volume;
}
diff --git a/engines/mohawk/sound.h b/engines/mohawk/sound.h
index 6c1fd5aa0b..795b94275e 100644
--- a/engines/mohawk/sound.h
+++ b/engines/mohawk/sound.h
@@ -124,6 +124,7 @@ public:
Audio::SoundHandle *replaceSound(uint16 id, byte volume = Audio::Mixer::kMaxChannelVolume, bool loop = false);
void playSoundBlocking(uint16 id, byte volume = Audio::Mixer::kMaxChannelVolume);
void playMidi(uint16 id);
+ void stopMidi();
void stopSound();
void stopSound(uint16 id);
void pauseSound();