diff options
author | Damien Zammit <damien@zamaudio.com> | 2019-06-29 11:43:13 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2019-06-29 11:43:13 +1000 |
commit | 551903a38ad69268dfcfcd33da0127de57410aa9 (patch) | |
tree | c0de12f35ba55dd0b874cbbe91c3374119792f8e | |
parent | ce45995ad180289bd03ddcc55798e29b74ec4f02 (diff) |
ZamCompX2: Fix bug with left channel using right side as gain detection
-rw-r--r-- | plugins/ZamCompX2/ZamCompX2Plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ZamCompX2/ZamCompX2Plugin.cpp b/plugins/ZamCompX2/ZamCompX2Plugin.cpp index 856d719..3be916d 100644 --- a/plugins/ZamCompX2/ZamCompX2Plugin.cpp +++ b/plugins/ZamCompX2/ZamCompX2Plugin.cpp @@ -340,7 +340,7 @@ void ZamCompX2Plugin::run(const float** inputs, float** outputs, uint32_t frames Lxg = (ingain==0.f) ? -160.f : to_dB(fabs(ingain)); Rxg = Lxg; } else { - Lxg = (in0==0.f) ? -160.f : to_dB(fabs(in1)); + Lxg = (in0==0.f) ? -160.f : to_dB(fabs(in0)); Rxg = (in1==0.f) ? -160.f : to_dB(fabs(in1)); } Lxg = sanitize_denormal(Lxg); |