aboutsummaryrefslogtreecommitdiff
path: root/src/PluginProcessor.cpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-09-25 20:40:18 +0200
committerDominik Kaiser2025-09-25 20:40:18 +0200
commit3254981cbeb568adfca7991700e92984e0b92f12 (patch)
tree1eefc18f682e4ee0ca461647e5fe4b1e3fc533bf /src/PluginProcessor.cpp
parentd034708ad60f8fc3c9db9481e424d6eca5e2450d (diff)
downloadSchroederReverb-3254981cbeb568adfca7991700e92984e0b92f12.tar.gz
SchroederReverb-3254981cbeb568adfca7991700e92984e0b92f12.zip
Implement basic CombFilter
Diffstat (limited to 'src/PluginProcessor.cpp')
-rw-r--r--src/PluginProcessor.cpp8
1 files changed, 5 insertions, 3 deletions
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<float>& 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...
}
}