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

◆ operator>>() [4/4]

void MayaFlux::Kriya::operator>> ( std::shared_ptr< Nodes::Node node,
DAC terminal 
)

Connects a processing node to the system output.

Parameters
nodeThe processing node to connect
terminalThe OutputTerminal instance representing the system output

This operator overload implements the node >> OutputTerminal syntax, which connects a processing node to the system's output. It's a more expressive way of representing data flow compared to traditional function calls.

Example usage:

// Connect a processing node to the system output
process_node >> OutputTerminal::instance();

This is part of a broader pattern of using operator overloading to create a domain-specific language for computational flow programming within C++.

Definition at line 24 of file Operators.cpp.

25{
26 MayaFlux::register_audio_node(node, dac.channel);
27}
void register_audio_node(const std::shared_ptr< Nodes::Node > &node, uint32_t channel)
Adds a node to the root node of a specific channel.
Definition Graph.cpp:23

References MayaFlux::Kriya::DAC::channel, and MayaFlux::register_audio_node().

+ Here is the call graph for this function: