aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/fmv
diff options
context:
space:
mode:
authorPaul Gilbert2010-08-17 09:52:50 +0000
committerEugene Sandulenko2010-10-12 22:51:06 +0000
commit596684101e3431e61dbeabeb81eee66322e15042 (patch)
treebaa36d1ce546fd915f6671e7a492224adc1ef25a /engines/sword25/fmv
parent0a7cdd7128fa440150511ae046a899f4ff3e459b (diff)
downloadscummvm-rg350-596684101e3431e61dbeabeb81eee66322e15042.tar.gz
scummvm-rg350-596684101e3431e61dbeabeb81eee66322e15042.tar.bz2
scummvm-rg350-596684101e3431e61dbeabeb81eee66322e15042.zip
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
Diffstat (limited to 'engines/sword25/fmv')
-rw-r--r--engines/sword25/fmv/theora_decoder.cpp4
1 files changed, 4 insertions, 0 deletions
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;