diff options
author | Be <be@mixxx.org> | 2018-05-20 14:53:24 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2018-05-29 10:27:59 -0500 |
commit | 2b72491ee2a0bd761e0d68600b62ebbb3b89dc6c (patch) | |
tree | 0b36e6a327d35622b2a81dff48871bbf79cf3a9f /lib/reverb/Reverb.cc | |
parent | 4a073e979eff5b7b2753cf6f2645072f0930d271 (diff) |
pass EffectChainInsertionType to effects
so Echo and Reverb do not add the dry signal to their output in "Send"
mode
Diffstat (limited to 'lib/reverb/Reverb.cc')
-rw-r--r-- | lib/reverb/Reverb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/reverb/Reverb.cc b/lib/reverb/Reverb.cc index e9d5ddbba6..e2c0714246 100644 --- a/lib/reverb/Reverb.cc +++ b/lib/reverb/Reverb.cc @@ -434,7 +434,7 @@ Descriptor<PlateX2>::setup() // (timrae) we have our left / right samples interleaved in the same array, so use slightly modified version of PlateX2::cycle void MixxxPlateX2::processBuffer(const sample_t* in, sample_t* out, const uint frames, const sample_t bandwidthParam, - const sample_t decayParam, const sample_t dampingParam, const sample_t blendParam) { + const sample_t decayParam, const sample_t dampingParam, const sample_t blendParam, bool addDry) { // set bandwidth input.bandwidth.set(exp(-M_PI * (1. - (.005 + .994*bandwidthParam)))); // set decay @@ -454,7 +454,7 @@ void MixxxPlateX2::processBuffer(const sample_t* in, sample_t* out, const uint f sample_t mono_sample = blend * (in[i] + in[i + 1]) / 2; sample_t xl, xr; PlateStub::process(mono_sample, decay, &xl, &xr); - out[i] = xl + in[i]; - out[i + 1] = xr + in[i + 1]; + out[i] = xl + (addDry ? in[i] : 0); + out[i + 1] = xr + (addDry ? in[i + 1] : 0); } } |