diff -r ae0addfe117e -r ae690a8c4a18 mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp --- a/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Fri Jul 09 12:53:09 2010 +0100 +++ b/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Fri Jul 09 13:09:11 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 buffer extra buffer + rawValue = TInt(rawValue * TReal(iToRate) / TReal(iFromRate) + 0.5) + 4*sizeof(TInt16); // add some fudge factor just in case rawValue = NextPowerUp(rawValue); // when upscaling always give nice power return rawValue; }