JUCE  v5.1.1-3-g1a0b28c73
JUCE API
ProcessorDuplicator< MonoProcessorType, StateType > Struct Template Reference

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>

Collaboration diagram for ProcessorDuplicator< MonoProcessorType, StateType >:

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
 

Detailed Description

template<typename MonoProcessorType, typename StateType>
struct ProcessorDuplicator< MonoProcessorType, StateType >

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.

Constructor & Destructor Documentation

◆ ProcessorDuplicator() [1/4]

template<typename MonoProcessorType , typename StateType >
ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator ( )
inline

◆ ProcessorDuplicator() [2/4]

template<typename MonoProcessorType , typename StateType >
ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator ( StateType *  stateToUse)
inline

◆ ProcessorDuplicator() [3/4]

template<typename MonoProcessorType , typename StateType >
ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator ( const ProcessorDuplicator< MonoProcessorType, StateType > &  )
default

◆ ProcessorDuplicator() [4/4]

template<typename MonoProcessorType , typename StateType >
ProcessorDuplicator< MonoProcessorType, StateType >::ProcessorDuplicator ( ProcessorDuplicator< MonoProcessorType, StateType > &&  )
default

Member Function Documentation

◆ prepare()

◆ process()

template<typename MonoProcessorType , typename StateType >
template<typename ProcessContext >
void ProcessorDuplicator< MonoProcessorType, StateType >::process ( const ProcessContext context)
inlinenoexcept

◆ reset()

template<typename MonoProcessorType , typename StateType >
void ProcessorDuplicator< MonoProcessorType, StateType >::reset ( )
inlinenoexcept

Member Data Documentation

◆ processors

template<typename MonoProcessorType , typename StateType >
juce::OwnedArray<MonoProcessorType> ProcessorDuplicator< MonoProcessorType, StateType >::processors
private

◆ state

template<typename MonoProcessorType , typename StateType >
StateType::Ptr ProcessorDuplicator< MonoProcessorType, StateType >::state

The documentation for this struct was generated from the following file: