diff options
Diffstat (limited to 'engines/director/sound.cpp')
-rw-r--r-- | engines/director/sound.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/director/sound.cpp b/engines/director/sound.cpp index ea8b78e1a4..5e32972248 100644 --- a/engines/director/sound.cpp +++ b/engines/director/sound.cpp @@ -67,8 +67,10 @@ void DirectorSound::playAIFF(Common::String filename, uint8 soundChannel) { _mixer->playStream(Audio::Mixer::kSFXSoundType, _sound2, sound); } -void DirectorSound::playMCI(Audio::AudioStream &stream) { - _mixer->playStream(Audio::Mixer::kSFXSoundType, _scriptSound, &stream); +void DirectorSound::playMCI(Audio::AudioStream &stream, uint32 from, uint32 to) { + Audio::SeekableAudioStream *seekStream = dynamic_cast<Audio::SeekableAudioStream *>(&stream); + Audio::SubSeekableAudioStream *subSeekStream = new Audio::SubSeekableAudioStream(seekStream, Audio::Timestamp(from, seekStream->getRate()), Audio::Timestamp(to, seekStream->getRate())); + _mixer->playStream(Audio::Mixer::kSFXSoundType, _scriptSound, subSeekStream); } bool DirectorSound::isChannelActive(uint8 channelID) { |