[Scummvm-cvs-logs] SF.net SVN: scummvm:[53256] scummvm/trunk/engines/sword25/fmv/ theora_decoder.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Oct 13 00:51:06 CEST 2010


Revision: 53256
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53256&view=rev
Author:   sev
Date:     2010-10-12 22:51:06 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
SWORD25: Added implementation of rint method

Windows doesn't seem to implement this method; even examples for FMOD I saw had WIN32 defines that manually provided the method.

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/fmv/theora_decoder.cpp

Modified: scummvm/trunk/engines/sword25/fmv/theora_decoder.cpp
===================================================================
--- scummvm/trunk/engines/sword25/fmv/theora_decoder.cpp	2010-10-12 22:50:47 UTC (rev 53255)
+++ scummvm/trunk/engines/sword25/fmv/theora_decoder.cpp	2010-10-12 22:51:06 UTC (rev 53256)
@@ -45,6 +45,10 @@
 
 #define AUDIOFD_FRAGSIZE 10240
 
+static double rint(double v) {
+	return floor(v + 0.5);
+}
+
 TheoraDecoder::TheoraDecoder(Audio::Mixer *mixer, Audio::Mixer::SoundType soundType) : _mixer(mixer) {
 	_fileStream = 0;
 	_surface = 0;


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