corrected comments to Int24_To_Int16_Dither
This commit is contained in:
parent
bd2bfe985e
commit
6421f964d7
1 changed files with 2 additions and 2 deletions
|
|
@ -1179,8 +1179,8 @@ static void Int24_To_Int16_Dither(
|
||||||
{
|
{
|
||||||
dither = PaUtil_GenerateFloatTriangularDither( ditherGenerator );
|
dither = PaUtil_GenerateFloatTriangularDither( ditherGenerator );
|
||||||
|
|
||||||
/* upscale 24-bit int to 16-bit float, decrease scaler by 2 to leave space for dither
|
/* downscale 24-bit int to 16-bit int placed into 32-bit float container,
|
||||||
in order to not overflow
|
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;
|
dithered = _PA_INT24_TO_FLOAT(src, -2.0f) + dither;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue