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

◆ get_active_channels() [1/2]

std::vector< uint32_t > MayaFlux::Nodes::get_active_channels ( const std::shared_ptr< Nodes::Node > &  node,
uint32_t  fallback_channel = 0 
)

Extracts active channel list from a node's channel mask.

Parameters
nodeNode to inspect (can be null)
fallback_channelChannel to use if node has no active channels (default: 0)
Returns
Vector of active channel indices

Definition at line 140 of file NodeUtils.cpp.

141{
142 uint32_t channel_mask = node ? node->get_channel_mask().load() : 0;
143 return get_active_channels(channel_mask, fallback_channel);
144}
std::vector< uint32_t > get_active_channels(const std::shared_ptr< Nodes::Node > &node, uint32_t fallback_channel)
Extracts active channel list from a node's channel mask.

References get_active_channels().

Referenced by get_active_channels(), MayaFlux::Nodes::ChainNode::initialize(), MayaFlux::Nodes::BinaryOpNode::initialize(), MayaFlux::Kriya::NodeTimer::play_for(), and MayaFlux::Kriya::NodeTimer::play_with_processing().

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