diff options
author | Damien Zammit <damien@zamaudio.com> | 2014-04-22 00:52:29 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2014-04-22 00:52:29 +1000 |
commit | 673d8b050f10bf18fdfe80311f3a0c3369bffb2a (patch) | |
tree | 0fbeba75989dc1ead5e3ad866aa974b4eed41412 | |
parent | a59bad182f67e496f977bf2d4e02995e58aa59b3 (diff) |
Fixed denormals in ZamComp
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r-- | plugins/ZamComp/ZamCompPlugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ZamComp/ZamCompPlugin.cpp b/plugins/ZamComp/ZamCompPlugin.cpp index 46b1ca5..9c5ec34 100644 --- a/plugins/ZamComp/ZamCompPlugin.cpp +++ b/plugins/ZamComp/ZamCompPlugin.cpp @@ -270,12 +270,12 @@ void ZamCompPlugin::d_run(float** inputs, float** outputs, uint32_t frames) outputs[0][i] = inputs[0][i]; outputs[0][i] *= gain * from_dB(makeup); - max = (fabsf(outputs[0][i]) > max) ? fabsf(outputs[0][i]) : max; + max = (fabsf(outputs[0][i]) > max) ? fabsf(outputs[0][i]) : sanitize_denormal(max); old_yl = yl; old_y1 = y1; } - outlevel = sanitize_denormal((max == 0.f) ? -45.f : to_dB(max)); + outlevel = (max == 0.f) ? -45.f : to_dB(max); } // ----------------------------------------------------------------------- |