From 3254981cbeb568adfca7991700e92984e0b92f12 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Thu, 25 Sep 2025 20:40:18 +0200 Subject: Implement basic CombFilter --- src/PluginProcessor.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/PluginProcessor.cpp') diff --git a/src/PluginProcessor.cpp b/src/PluginProcessor.cpp index 825d31a..1b4ada7 100644 --- a/src/PluginProcessor.cpp +++ b/src/PluginProcessor.cpp @@ -88,7 +88,7 @@ void SchroederReverbAudioProcessor::prepareToPlay (double sampleRate, int sample { // Use this method as the place to do any pre-playback // initialisation that you need.. - juce::ignoreUnused (sampleRate, samplesPerBlock); + combFilter.prepare(sampleRate, samplesPerBlock); } void SchroederReverbAudioProcessor::releaseResources() @@ -147,8 +147,10 @@ void SchroederReverbAudioProcessor::processBlock (juce::AudioBuffer& buff // interleaved by keeping the same state. for (int channel = 0; channel < totalNumInputChannels; ++channel) { - auto* channelData = buffer.getWritePointer (channel); - juce::ignoreUnused (channelData); + auto *channelData = buffer.getWritePointer(channel); + for (int i = 0; i < buffer.getNumSamples(); ++i) { + combFilter.process(&channelData[i]); + } // ..do something to the data... } } -- cgit v1.2.3