[Scummvm-cvs-logs] SF.net SVN: scummvm: [28377] scummvm/trunk/engines/gob/coktelvideo.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Wed Aug 1 03:20:02 CEST 2007


Revision: 28377
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28377&view=rev
Author:   drmccoy
Date:     2007-07-31 18:20:02 -0700 (Tue, 31 Jul 2007)

Log Message:
-----------
Some GK2 VMDs now load and play, too. The sound is borked, though (probably 16 bit).

Modified Paths:
--------------
    scummvm/trunk/engines/gob/coktelvideo.cpp

Modified: scummvm/trunk/engines/gob/coktelvideo.cpp
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.cpp	2007-08-01 00:57:51 UTC (rev 28376)
+++ scummvm/trunk/engines/gob/coktelvideo.cpp	2007-08-01 01:20:02 UTC (rev 28377)
@@ -868,7 +868,7 @@
 	if (_hasVideo) {
 		if (_frameDataSize == 0)
 			_frameDataSize = _width * _height + 500;
-		if (_vidBufferSize)
+		if (_vidBufferSize == 0)
 			_vidBufferSize = _frameDataSize;
 
 		_frameData = new byte[_frameDataSize];
@@ -888,7 +888,7 @@
 	if (_hasSound) {
 		_features |= kFeaturesSound;
 
-		_soundSliceLength = 1000 / (_soundFreq / _soundSliceSize);
+		_soundSliceLength = (uint16) (1000.0 / ((double) _soundFreq / (double) _soundSliceSize));
 		_frameLength = _soundSliceLength;
 
 		_soundStage = 1;


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