mmlibs/mmfw/src/utils/audioutils/rateconvert.cpp
changeset 31 ae0addfe117e
parent 0 40261b775718
child 32 ae690a8c4a18
--- 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;	
 	}