From 044c36f5bb962ffa74d2e6f3f12ec8e08cf3ce26 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 10 Sep 2018 23:05:22 +0100 Subject: [PATCH] DSP: Fixed some errors in the previous commit --- modules/juce_dsp/processors/juce_Oversampling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_dsp/processors/juce_Oversampling.cpp b/modules/juce_dsp/processors/juce_Oversampling.cpp index 8a71c1ecd6..87af068b96 100644 --- a/modules/juce_dsp/processors/juce_Oversampling.cpp +++ b/modules/juce_dsp/processors/juce_Oversampling.cpp @@ -291,16 +291,16 @@ public: latency += static_cast (-(coeffsDown.getPhaseForFrequency (0.0001, 1.0)) / (0.0001 * MathConstants::twoPi)); for (auto i = 0; i < structureUp.directPath.size(); ++i) - coefficientsUp.add (structureUp.delayedPath.getObjectPointer (i)->coefficients[0]); + coefficientsUp.add (structureUp.directPath.getObjectPointer (i)->coefficients[0]); for (auto i = 1; i < structureUp.delayedPath.size(); ++i) coefficientsUp.add (structureUp.delayedPath.getObjectPointer (i)->coefficients[0]); for (auto i = 0; i < structureDown.directPath.size(); ++i) - coefficientsDown.add (structureUp.delayedPath.getObjectPointer (i)->coefficients[0]); + coefficientsDown.add (structureDown.directPath.getObjectPointer (i)->coefficients[0]); for (auto i = 1; i < structureDown.delayedPath.size(); ++i) - coefficientsDown.add (structureUp.delayedPath.getObjectPointer (i)->coefficients[0]); + coefficientsDown.add (structureDown.delayedPath.getObjectPointer (i)->coefficients[0]); v1Up.setSize (static_cast (this->numChannels), coefficientsUp.size()); v1Down.setSize (static_cast (this->numChannels), coefficientsDown.size());