diff options
author | Paul Gilbert | 2010-08-17 09:52:50 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:51:06 +0000 |
commit | 596684101e3431e61dbeabeb81eee66322e15042 (patch) | |
tree | baa36d1ce546fd915f6671e7a492224adc1ef25a /engines/sword25/fmv | |
parent | 0a7cdd7128fa440150511ae046a899f4ff3e459b (diff) | |
download | scummvm-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.cpp | 4 |
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; |