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

◆ add_processor() [3/3]

MAYAFLUX_API void MayaFlux::add_processor ( const std::shared_ptr< Buffers::BufferProcessor > &  processor,
const std::shared_ptr< Buffers::Buffer > &  buffer,
Buffers::ProcessingToken  token = Buffers::ProcessingToken::AUDIO_BACKEND 
)

Adds a processor to a specific buffer.

Parameters
processorProcessor to add
bufferBuffer to add the processor to

Adds the processor to the specified buffer's processing chain. Uses the default engine's buffer manager.

Definition at line 138 of file Graph.cpp.

139{
140 get_buffer_manager()->add_processor(processor, buffer, token);
141}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:133

References get_buffer_manager().

Referenced by create_processor(), create_processor(), MayaFlux::Kakshya::DataProcessingChain::DataProcessingChain(), and MayaFlux::Buffers::BufferProcessingControl::~BufferProcessingControl().

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