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

◆ attach_quick_process() [2/2]

MAYAFLUX_API std::shared_ptr< Buffers::BufferProcessor > MayaFlux::attach_quick_process ( Buffers::BufferProcessingFunction  processor,
unsigned int  channel_id = 0 
)

Attaches a processing function to a specific channel.

Parameters
processorFunction to process the buffer
channel_idChannel index to process

The processor will be called during the default engine's audio processing cycle and will operate on the specified output channel buffer.

Definition at line 145 of file Graph.cpp.

146{
147 return get_buffer_manager()->attach_quick_process(std::move(processor), Buffers::ProcessingToken::AUDIO_BACKEND, channel_id);
148}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:81

References MayaFlux::Buffers::AUDIO_BACKEND, and get_buffer_manager().

+ Here is the call graph for this function: