diff options
Diffstat (limited to 'engines/mohawk/riven_sound.cpp')
-rw-r--r-- | engines/mohawk/riven_sound.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/riven_sound.cpp b/engines/mohawk/riven_sound.cpp index 569bbb478a..354ba2dcce 100644 --- a/engines/mohawk/riven_sound.cpp +++ b/engines/mohawk/riven_sound.cpp @@ -68,6 +68,11 @@ void RivenSoundManager::playSound(uint16 id, uint16 volume, bool playOnDraw) { } } +void RivenSoundManager::playSound(const Common::String &name, uint16 volume, bool playOnDraw) { + uint16 id =_vm->findResourceID(ID_TWAV, name); + playSound(id, volume, playOnDraw); +} + void RivenSoundManager::playSLST(const SLSTRecord &slstRecord) { if (slstRecord.soundIds.empty()) { return; @@ -298,6 +303,10 @@ bool RivenSoundManager::fadeBalance(RivenSoundManager::AmbientSound &ambientSoun } } +bool RivenSoundManager::isEffectPlaying() const { + return _effect != nullptr && _effect->isPlaying(); +} + RivenSound::RivenSound(MohawkEngine *vm, Audio::RewindableAudioStream *rewindStream) : _vm(vm), _volume(Audio::Mixer::kMaxChannelVolume), |