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

◆ connect_node_to_channel()

MAYAFLUX_API void MayaFlux::connect_node_to_channel ( const std::shared_ptr< Nodes::Node > &  node,
uint32_t  channel_index = 0,
float  mix = 0.5F,
bool  clear_before = false 
)

Connects a node to a specific output channel.

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

Uses the default engine's buffer manager and node graph manager.

Definition at line 111 of file Graph.cpp.

112{
113 auto token = get_buffer_manager()->get_default_audio_token();
114 get_buffer_manager()->connect_node_to_channel(node, token, channel_index, mix, clear_before);
115}
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(), mix(), and token.

+ Here is the call graph for this function: