mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Fix for dsp::ProcessorChain when used with a non-replacing context
This commit is contained in:
parent
d6667e31a4
commit
81a76efcd3
1 changed files with 11 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue