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

◆ attach_quick_process() [2/5]

std::shared_ptr< BufferProcessor > MayaFlux::Buffers::BufferProcessingControl::attach_quick_process ( AudioProcessingFunction  processor,
ProcessingToken  token 
)

Creates and attaches a quick processing function to all channels in a token.

Parameters
processorProcessing function
tokenProcessing domain
Returns
Shared pointer to the created processor

Definition at line 259 of file BufferProcessingControl.cpp.

262{
263 auto quick_process = std::make_shared<QuickProcess<AudioProcessingFunction>>(std::move(processor));
264 add_processor(quick_process, token);
265 return quick_process;
266}
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: