[SCM] calf/master: + Compressor: switch active graphs when bypass is on
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:36 UTC 2013
The following commit has been merged in the master branch:
commit a83efdbe05e6f23c023db197fe1cb959254330f8
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Mon Nov 24 23:22:48 2008 +0000
+ Compressor: switch active graphs when bypass is on
diff --git a/src/modules_dsp.cpp b/src/modules_dsp.cpp
index c7f2fea..13fea21 100644
--- a/src/modules_dsp.cpp
+++ b/src/modules_dsp.cpp
@@ -388,7 +388,7 @@ bool compressor_audio_module::get_graph(int index, int subindex, float *data, in
else
data[i] = dB_grid(output);
}
- if (!subindex)
+ if (subindex == (*params[param_bypass] > 0.5f ? 1 : 0))
context->set_source_rgba(0.5, 0.5, 0.5, 0.5);
else {
context->set_source_rgba(0, 1, 0, 1);
@@ -404,8 +404,8 @@ bool compressor_audio_module::get_dot(int index, int subindex, float &x, float &
if (!subindex)
{
x = 0.5 + 0.5 * dB_grid(detected);
- y = dB_grid(output_level(detected));
- return true;
+ y = dB_grid(*params[param_bypass] > 0.5f ? detected : output_level(detected));
+ return *params[param_bypass] > 0.5f ? false : true;
}
return false;
}
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list