[Scummvm-cvs-logs] SF.net SVN: scummvm:[47635] scummvm/trunk/sound/decoders/vorbis.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jan 28 10:44:21 CET 2010


Revision: 47635
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47635&view=rev
Author:   lordhoto
Date:     2010-01-28 09:44:21 +0000 (Thu, 28 Jan 2010)

Log Message:
-----------
Fix seek implementation of our Vorbis stream.

Modified Paths:
--------------
    scummvm/trunk/sound/decoders/vorbis.cpp

Modified: scummvm/trunk/sound/decoders/vorbis.cpp
===================================================================
--- scummvm/trunk/sound/decoders/vorbis.cpp	2010-01-28 09:38:21 UTC (rev 47634)
+++ scummvm/trunk/sound/decoders/vorbis.cpp	2010-01-28 09:44:21 UTC (rev 47635)
@@ -169,7 +169,9 @@
 }
 
 bool VorbisInputStream::seek(const Timestamp &where) {
-	int res = ov_pcm_seek(&_ovFile, convertTimeToStreamPos(where, getRate(), isStereo()).totalNumberOfFrames());
+	// Vorbisfile uses the sample pair number, thus we always use "false" for the isStereo parameter
+	// of the convertTimeToStreamPos helper.
+	int res = ov_pcm_seek(&_ovFile, convertTimeToStreamPos(where, getRate(), false).totalNumberOfFrames());
 	if (res) {
 		warning("Error seeking in Vorbis stream (%d)", res);
 		_pos = _bufferEnd;


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