Browse Source

DSP: Fixed a bug when oversampling multiple channels

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
af9526a1c3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_dsp/processors/juce_Oversampling.cpp

+ 1
- 1
modules/juce_dsp/processors/juce_Oversampling.cpp View File

@@ -282,7 +282,7 @@ public:
SampleType normalizedTransitionWidthUp,
SampleType stopbandAttenuationdBUp,
SampleType normalizedTransitionWidthDown,
SampleType stopbandAttenuationdBDown) : OversamplingEngine<SampleType> (2, numChannels)
SampleType stopbandAttenuationdBDown) : OversamplingEngine<SampleType> (numChannels, 2)
{
auto structureUp = dsp::FilterDesign<SampleType>::designIIRLowpassHalfBandPolyphaseAllpassMethod (normalizedTransitionWidthUp, stopbandAttenuationdBUp);
dsp::IIR::Coefficients<SampleType> coeffsUp = getCoefficients (structureUp);


Loading…
Cancel
Save