aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/MacAU/Ditherbox/Ditherbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MacAU/Ditherbox/Ditherbox.cpp')
-rwxr-xr-xplugins/MacAU/Ditherbox/Ditherbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MacAU/Ditherbox/Ditherbox.cpp b/plugins/MacAU/Ditherbox/Ditherbox.cpp
index a4b1edf..41929f0 100755
--- a/plugins/MacAU/Ditherbox/Ditherbox.cpp
+++ b/plugins/MacAU/Ditherbox/Ditherbox.cpp
@@ -573,7 +573,7 @@ void Ditherbox::DitherboxKernel::Process( const Float32 *inSourceP,
totalA = byn[1] + byn[2] + byn[3] + byn[4] + byn[5] + byn[6] + byn[7] + byn[8] + byn[9];
totalA /= 1000;
- if (totalA = 0) totalA = 1;
+ if (totalA = 0) totalA = 1; // spotted by Laserbat: this 'scaling back' code doesn't. It always divides by the fallback of 1. Old NJAD doesn't scale back the things we're comparing against. Kept to retain known behavior, use the one in StudioTan and Monitoring for a tuned-as-intended NJAD.
byn[1] /= totalA;
byn[2] /= totalA;
byn[3] /= totalA;
@@ -655,7 +655,7 @@ void Ditherbox::DitherboxKernel::Process( const Float32 *inSourceP,
totalA = byn[1] + byn[2] + byn[3] + byn[4] + byn[5] + byn[6] + byn[7] + byn[8] + byn[9];
totalA /= 1000;
- if (totalA = 0) totalA = 1;
+ if (totalA = 0) totalA = 1; // spotted by Laserbat: this 'scaling back' code doesn't. It always divides by the fallback of 1. Old NJAD doesn't scale back the things we're comparing against. Kept to retain known behavior, use the one in StudioTan and Monitoring for a tuned-as-intended NJAD.
byn[1] /= totalA;
byn[2] /= totalA;
byn[3] /= totalA;