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

◆ connect_node_to_buffer()

MAYAFLUX_API void MayaFlux::connect_node_to_buffer ( const std::shared_ptr< Nodes::Node > &  node,
const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
float  mix = 0.5F,
bool  clear_before = true 
)

Connects a node to a specific buffer.

Parameters
nodeNode to connect
bufferBuffer to connect to
mixMix level (0.0 to 1.0) for blending node output with existing buffer content
clear_beforeWhether to clear the buffer before adding node output

Uses the default engine's node graph manager.

Definition at line 117 of file Graph.cpp.

118{
119 get_buffer_manager()->connect_node_to_buffer(node, buffer, mix, clear_before);
120}
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 mix().

+ Here is the call graph for this function: