MayaFlux 0.1.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 86 of file Graph.cpp.

87{
88 get_buffer_manager()->add_processor(processor, buffer, token);
89}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:81

References get_buffer_manager(), and token.

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: