[Scummvm-cvs-logs] SF.net SVN: scummvm:[51901] scummvm/trunk/graphics/video/coktel_decoder.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sun Aug 8 02:58:30 CEST 2010
Revision: 51901
http://scummvm.svn.sourceforge.net/scummvm/?rev=51901&view=rev
Author: drmccoy
Date: 2010-08-08 00:58:29 +0000 (Sun, 08 Aug 2010)
Log Message:
-----------
VIDEO: Implement VMDDecoder::seek()
Modified Paths:
--------------
scummvm/trunk/graphics/video/coktel_decoder.cpp
Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp 2010-08-08 00:58:00 UTC (rev 51900)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp 2010-08-08 00:58:29 UTC (rev 51901)
@@ -1405,8 +1405,16 @@
// 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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list