Browse Source

Fix for dsp::ProcessorChain when used with a non-replacing context

tags/2021-05-28
jules 7 years ago
parent
commit
81a76efcd3
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      modules/juce_dsp/processors/juce_ProcessorChain.h

+ 11
- 1
modules/juce_dsp/processors/juce_ProcessorChain.h View File

@@ -72,7 +72,17 @@ namespace ProcessorHelpers // Internal helper classes used in building the Proc
void process (ProcessContext& context) noexcept
{
Base::processor.process (context);
processors.process (context);
if (context.usesSeparateInputAndOutputBlocks())
{
jassert (context.getOutputBlock().getNumChannels() == context.getInputBlock().getNumChannels());
ProcessContextReplacing<typename ProcessContext::SampleType> replacingContext (context.getOutputBlock());
processors.process (replacingContext);
}
else
{
processors.process (context);
}
}
void reset()


Loading…
Cancel
Save