From 1ed4a8da6c8c6c131cbaa5893ebb92e402120d3f Mon Sep 17 00:00:00 2001 From: Jay Vaughan Date: Tue, 21 Nov 2023 11:01:59 +0100 Subject: [PATCH] Continued fix of warnings: Delay override method, fir types --- JUCE | 2 +- resources/Delay.h | 7 +++---- source/PluginProcessor.cpp | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/JUCE b/JUCE index 5c8b7fe..4d098fa 160000 --- a/JUCE +++ b/JUCE @@ -1 +1 @@ -Subproject commit 5c8b7fe0e1136f87fc3ec3af128898d5b8454a9e +Subproject commit 4d098faaacc38c3633410a5236b793be6bb62dc9 diff --git a/resources/Delay.h b/resources/Delay.h index 6e3f44b..7daf224 100644 --- a/resources/Delay.h +++ b/resources/Delay.h @@ -47,10 +47,9 @@ class Delay : private ProcessorBase { public: - Delay() - { - } - ~Delay() {} ; + Delay() {}; + + ~Delay() override {} ; void setDelayTime (float delayTimeInSeconds) { diff --git a/source/PluginProcessor.cpp b/source/PluginProcessor.cpp index dac5b70..42a2202 100644 --- a/source/PluginProcessor.cpp +++ b/source/PluginProcessor.cpp @@ -863,7 +863,7 @@ void PolarDesignerAudioProcessor::computeFilterCoefficients(int crossoverNr) float* lp2hpCoeffs = lp2hp->getRawCoefficients(); for (int i=0; i::pi * (i - (firLen - 1) / 2)); + *(filterBufferPointer+i) = *(lp2hpCoeffs+i) * std::cosf(MathConstants::pi * (i - (firLen - 1.0f) / 2.0f)); } }