aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/coktel_decoder.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index ed2ee2a46a..67eea5ac4d 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -1405,7 +1405,15 @@ bool VMDDecoder::seek(int32 frame, int whence, bool restart) {
// Nothing to do
return true;
- // TODO
+ // Restart sound
+ if (_hasSound && (frame == 0) && (_soundStage == kSoundNone) && !_audioStream) {
+ _soundStage = kSoundLoaded;
+ _audioStream = Audio::makeQueuingAudioStream(_soundFreq, _soundStereo != 0);
+ }
+
+ // Seek
+ _stream->seek(_frames[frame].offset);
+ _curFrame = frame;
return true;
}