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
This commit is contained in:
Paul Gilbert 2010-08-17 09:52:50 +00:00 committed by Eugene Sandulenko
parent 0a7cdd7128
commit 596684101e

View File

@ -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;