Bug w/ juce_OggVorbisAudioFormaton in latest JUCE tip


#1

Issues with latest JUCE tip on Windows 7 using MSVC2010:

1>c:\users\jahburnit\documents\stagger\jucelibrarycode\modules\juce_audio_formats\codecs/juce_OggVorbisAudioFormat.cpp(504): error C2668: 'fabs' : ambiguous call to overloaded function
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(118): could be 'double fabs(double)'
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(517): or       'float fabs(float)'
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(565): or       'long double fabs(long double)'
1>          while trying to match the argument list '(const int)'

You can by replacing:

                const int diff = std::fabs (qualities[i].getIntValue() - approxBitsPerSecond);

with this:

                const int diff = std::abs (qualities[i].getIntValue() - approxBitsPerSecond);

#2

Yeah, woke up to about a dozen emails about this one! Fixed now, thanks!