diff options
author | Alyssa Milburn | 2011-01-03 22:53:34 +0000 |
---|---|---|
committer | Alyssa Milburn | 2011-01-03 22:53:34 +0000 |
commit | e59eb31ba94cf80cd905fe954970c1b926d1c3a4 (patch) | |
tree | 5db7ff7675412f0d916f1e10d0bedf3065dd0abe /engines | |
parent | 4fe73d47fd07cbb6b6c01f565a2b7a9f459aa836 (diff) | |
download | scummvm-rg350-e59eb31ba94cf80cd905fe954970c1b926d1c3a4.tar.gz scummvm-rg350-e59eb31ba94cf80cd905fe954970c1b926d1c3a4.tar.bz2 scummvm-rg350-e59eb31ba94cf80cd905fe954970c1b926d1c3a4.zip |
MOHAWK: Add stopMidi() function.
svn-id: r55113
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/sound.cpp | 4 | ||||
-rw-r--r-- | engines/mohawk/sound.h | 1 |
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(); |