diff -r 9707f1c07383 -r ae0addfe117e mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp --- a/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Fri Jul 09 12:37:42 2010 +0100 +++ b/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Fri Jul 09 12:53:09 2010 +0100 @@ -219,7 +219,7 @@ TInt rawValue = aBufferLength; ASSERT(iFromRate < iToRate); // should not be called otherwise // upsample - will generate more data. use floats to avoid extra round error - rawValue = TInt(rawValue * TReal(iToRate) / TReal(iFromRate) + 0.5) + 4*sizeof(TInt16); // add some fudge factor just in case + rawValue = TInt(rawValue * TReal(iToRate) / TReal(iFromRate) + 0.5) + 4*sizeof(TInt16); // add some buffer extra buffer rawValue = NextPowerUp(rawValue); // when upscaling always give nice power return rawValue; }