MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ attach_quick_process() [1/5]

std::shared_ptr< BufferProcessor > MayaFlux::Buffers::BufferProcessingControl::attach_quick_process ( AudioProcessingFunction  processor,
const std::shared_ptr< Buffer > &  buffer,
ProcessingToken  token = ProcessingToken::AUDIO_BACKEND 
)

Creates and attaches a quick processing function to buffer.

Parameters
processorProcessing function
bufferTarget buffer
Returns
Shared pointer to the created processor

Quick processes are simple lambda-based processors for one-off transformations.

Definition at line 229 of file BufferProcessingControl.cpp.

233{
234 auto quick_process = std::make_shared<QuickProcess<AudioProcessingFunction>>(std::move(processor));
235 add_processor(quick_process, buffer, token);
236 return quick_process;
237}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void add_processor(const std::shared_ptr< BufferProcessor > &processor, const std::shared_ptr< Buffer > &buffer, ProcessingToken token=ProcessingToken::AUDIO_BACKEND)
Adds a processor to a buffer (dispatches based on buffer/token)

References add_processor(), and token.

+ Here is the call graph for this function: