From 1ff97d3688dbdb67a61c7de1cafc58f3f48a24af Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 20 Nov 2017 18:01:18 +0000 Subject: [PATCH] DSP: Fixed a bug when oversampling multiple channels --- modules/juce_dsp/processors/juce_Oversampling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_dsp/processors/juce_Oversampling.cpp b/modules/juce_dsp/processors/juce_Oversampling.cpp index 2ce6ea6cb9..88589fd400 100644 --- a/modules/juce_dsp/processors/juce_Oversampling.cpp +++ b/modules/juce_dsp/processors/juce_Oversampling.cpp @@ -282,7 +282,7 @@ public: SampleType normalizedTransitionWidthUp, SampleType stopbandAttenuationdBUp, SampleType normalizedTransitionWidthDown, - SampleType stopbandAttenuationdBDown) : OversamplingEngine (2, numChannels) + SampleType stopbandAttenuationdBDown) : OversamplingEngine (numChannels, 2) { auto structureUp = dsp::FilterDesign::designIIRLowpassHalfBandPolyphaseAllpassMethod (normalizedTransitionWidthUp, stopbandAttenuationdBUp); dsp::IIR::Coefficients coeffsUp = getCoefficients (structureUp);