From: dmitrykos Date: Sat, 17 Apr 2010 07:43:00 +0000 (+0000) Subject: corrected comments to Int24_To_Int16_Dither X-Git-Tag: pa_stable_v19_20110326_r1647~134 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=6421f964d7c95fd4449cd3d6c88c8dfffcee5ecd;p=portaudio corrected comments to Int24_To_Int16_Dither --- diff --git a/src/common/pa_converters.c b/src/common/pa_converters.c index abbc080..dbdb14c 100644 --- a/src/common/pa_converters.c +++ b/src/common/pa_converters.c @@ -1179,8 +1179,8 @@ static void Int24_To_Int16_Dither( { dither = PaUtil_GenerateFloatTriangularDither( ditherGenerator ); - /* upscale 24-bit int to 16-bit float, decrease scaler by 2 to leave space for dither - in order to not overflow + /* downscale 24-bit int to 16-bit int placed into 32-bit float container, + 16-bit scaler is decreased by 2 to leave space for dither in order not to overflow */ dithered = _PA_INT24_TO_FLOAT(src, -2.0f) + dither;