Converts a mono processor class into a multi-channel version by duplicating it and applying multichannel buffers across an array of instances. More...
#include <juce_ProcessorDuplicator.h>
Public Member Functions | |
ProcessorDuplicator () | |
ProcessorDuplicator (StateType *stateToUse) | |
ProcessorDuplicator (typename StateType::Ptr stateToUse) | |
ProcessorDuplicator (const ProcessorDuplicator &)=default | |
ProcessorDuplicator (ProcessorDuplicator &&)=default | |
void | prepare (const ProcessSpec &spec) |
void | reset () noexcept |
template<typename ProcessContext > | |
void | process (const ProcessContext &context) noexcept |
Public Attributes | |
StateType::Ptr | state |
Converts a mono processor class into a multi-channel version by duplicating it and applying multichannel buffers across an array of instances.
When the prepare method is called, it uses the specified number of channels to instantiate the appropriate number of instances, which it then uses in its process() method.
dsp::ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator | ( | ) |
dsp::ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator | ( | StateType * | stateToUse | ) |
dsp::ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator | ( | typename StateType::Ptr | stateToUse | ) |
|
default |
|
default |
void dsp::ProcessorDuplicator< MonoProcessorType, StateType >::prepare | ( | const ProcessSpec & | spec | ) |
|
noexcept |
|
noexcept |
StateType::Ptr dsp::ProcessorDuplicator< MonoProcessorType, StateType >::state |