From c83fb2863e3659ba6c8a972878bc9954e5ff668d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 29 May 2022 14:43:01 +0200 Subject: [PATCH] Clear the main output in Crossover --- plugins/crossover/src/lib.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/crossover/src/lib.rs b/plugins/crossover/src/lib.rs index ec13b6dc..812475e2 100644 --- a/plugins/crossover/src/lib.rs +++ b/plugins/crossover/src/lib.rs @@ -140,16 +140,17 @@ impl Plugin for Crossover { fn process( &mut self, - _buffer: &mut Buffer, + buffer: &mut Buffer, _aux: &mut AuxiliaryBuffers, _context: &mut impl ProcessContext, ) -> ProcessStatus { - // // TODO - // let main = _buffer.as_slice(); - // let outputs = _aux.outputs[0].as_slice(); - // for (m, o) in main.iter_mut().zip(outputs.iter_mut()) { - // o.copy_from_slice(m); - // } + // TODO: Do the splitty thing + + // The main output should be silent as the signal is already evenly split over the other + // bands + for channel_slice in buffer.as_slice() { + channel_slice.fill(0.0); + } ProcessStatus::Normal }