--- a/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Tue Aug 31 16:43:06 2010 +0300
+++ b/mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp Wed Sep 01 12:38:50 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;
}