diff options
Diffstat (limited to 'engines/kyra/sound_digital.cpp')
-rw-r--r-- | engines/kyra/sound_digital.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp index ab36423df6..6ec57b64db 100644 --- a/engines/kyra/sound_digital.cpp +++ b/engines/kyra/sound_digital.cpp @@ -380,6 +380,13 @@ void SoundDigital::stopSound(int channel) { _sounds[channel].stream = 0; } +void SoundDigital::stopAllSounds() { + for (int i = 0; i < SOUND_STREAMS; ++i) { + if (isPlaying(i)) + stopSound(i); + } +} + void SoundDigital::beginFadeOut(int channel, int ticks) { if (isPlaying(channel)) _sounds[channel].stream->beginFadeOut(ticks * _vm->tickLength()); |