diff options
author | Sven Hesse | 2010-08-08 00:58:29 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 00:58:29 +0000 |
commit | 74bec1696b60ebe881972af24066fa34f37b9957 (patch) | |
tree | da84a4afcb3e0544ac7c1df87c284d00ea737f79 /graphics/video/coktel_decoder.cpp | |
parent | f447ddb36a2bf8b923083e96b51279d72306d22a (diff) | |
download | scummvm-rg350-74bec1696b60ebe881972af24066fa34f37b9957.tar.gz scummvm-rg350-74bec1696b60ebe881972af24066fa34f37b9957.tar.bz2 scummvm-rg350-74bec1696b60ebe881972af24066fa34f37b9957.zip |
VIDEO: Implement VMDDecoder::seek()
svn-id: r51901
Diffstat (limited to 'graphics/video/coktel_decoder.cpp')
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 10 |
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; } |