Wrapper for JUCE AudioProcessor that forwards all calls to a wrapped instance.
More...
Wrapper for JUCE AudioProcessor that forwards all calls to a wrapped instance.
AudioProcessorWrapper provides a complete pass-through wrapper for any JUCE AudioProcessor. All virtual methods are forwarded to the wrapped processor, allowing for interception, monitoring, or modification of processor behavior without modifying the original processor code.
Key Features:
- Complete forwarding of all AudioProcessor methods
- Ownership management of wrapped processor
- No overhead when not overriding methods
- Useful for debugging, testing, or adding cross-cutting concerns
- VST2/VST3 extension support
Use Cases:
- Adding logging/debugging to existing processors
- Implementing cross-cutting features (metering, analysis)
- Testing and validation wrappers
- Plugin format adapter patterns
Usage:
auto myProcessor = std::make_unique<MyAudioProcessor>();
{
void processBlock(juce::AudioBuffer<float>& buffer,
juce::MidiBuffer&
midi)
override
{
DBG(
"Processing " +
String(buffer.getNumSamples()) +
" samples");
}
};
Wrapper for JUCE AudioProcessor that forwards all calls to a wrapped instance.
Definition gin_audioprocessorwrapper.h:47
void processBlock(juce::AudioBuffer< float > &buffer, juce::MidiBuffer &midiMessages) override
Definition gin_audioprocessorwrapper.h:76
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
- See also
- juce::AudioProcessor