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

◆ attach_quick_process() [1/3]

MAYAFLUX_API std::shared_ptr< Buffers::BufferProcessor > MayaFlux::attach_quick_process ( Buffers::AudioProcessingFunction  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 170 of file Graph.cpp.

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

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

Referenced by MayaFlux::Buffers::BufferProcessingControl::~BufferProcessingControl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: