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

◆ get_total_channels()

uint32_t MayaFlux::Core::GlobalStreamInfo::get_total_channels ( ) const
inline

Calculates the total number of active channels across all directions.

Returns
Sum of all enabled input and output channels

Definition at line 171 of file GlobalStreamInfo.hpp.

172 {
173 return (output.enabled ? output.channels : 0) + (input.enabled ? input.channels : 0);
174 }
uint32_t channels
Number of discrete channels in this set.
bool enabled
Whether this channel set is active in the stream.
ChannelConfig input
Configuration for input signal channels (disabled by default)
ChannelConfig output
Configuration for output signal channels.

References MayaFlux::Core::GlobalStreamInfo::ChannelConfig::channels, MayaFlux::Core::GlobalStreamInfo::ChannelConfig::enabled, input, and output.