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>
Classes | |
struct | MonoProcessContext |
Public Member Functions | |
ProcessorDuplicator () | |
ProcessorDuplicator (StateType *stateToUse) | |
ProcessorDuplicator (const ProcessorDuplicator &)=default | |
ProcessorDuplicator (ProcessorDuplicator &&)=default | |
void | prepare (const ProcessSpec &spec) |
template<typename ProcessContext > | |
void | process (const ProcessContext &context) noexcept |
void | reset () noexcept |
Public Attributes | |
StateType::Ptr | state |
Private Attributes | |
juce::OwnedArray< MonoProcessorType > | processors |
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.
|
inline |
|
inline |
|
default |
|
default |
|
inline |
References juce::OwnedArray< ObjectClass, TypeOfCriticalSectionToUse >::add(), ProcessSpec::numChannels, ProcessorDuplicator< MonoProcessorType, StateType >::processors, juce::OwnedArray< ObjectClass, TypeOfCriticalSectionToUse >::removeRange(), juce::OwnedArray< ObjectClass, TypeOfCriticalSectionToUse >::size(), and ProcessorDuplicator< MonoProcessorType, StateType >::state.
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
StateType::Ptr ProcessorDuplicator< MonoProcessorType, StateType >::state |