From 596684101e3431e61dbeabeb81eee66322e15042 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 17 Aug 2010 09:52:50 +0000 Subject: 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. svn-id: r53256 --- engines/sword25/fmv/theora_decoder.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/sword25/fmv') diff --git a/engines/sword25/fmv/theora_decoder.cpp b/engines/sword25/fmv/theora_decoder.cpp index 133adb3007..ef9f904f77 100644 --- a/engines/sword25/fmv/theora_decoder.cpp +++ b/engines/sword25/fmv/theora_decoder.cpp @@ -45,6 +45,10 @@ namespace Sword25 { #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; -- cgit v1.2.3