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

◆ get_num_out_channels()

MAYAFLUX_API uint32_t MayaFlux::Config::get_num_out_channels ( )

Gets the number of output channels from the default engine.

Returns
Current number of output channels

Definition at line 81 of file Config.cpp.

82{
83 if (!is_engine_configured()) {
84 MF_WARN(Journal::Component::API, Journal::Context::Configuration, "Engine is not running. Returning default number of output channels");
85 return 2;
86 }
88}
#define MF_WARN(comp, ctx,...)
GlobalStreamInfo & get_stream_info()
Gets the current stream configuration.
Definition Engine.hpp:224
bool is_engine_configured()
Checks if the default engine has currently accepted all configurations and initialized all managers.
Definition Config.cpp:10
Core::Engine & get_context()
Gets the default engine instance.
Definition Core.cpp:68
uint32_t channels
Number of discrete channels in this set.
ChannelConfig output
Configuration for output signal channels.

References MayaFlux::Journal::API, MayaFlux::Core::GlobalStreamInfo::ChannelConfig::channels, MayaFlux::Journal::Configuration, MayaFlux::get_context(), MayaFlux::Core::Engine::get_stream_info(), MayaFlux::is_engine_configured(), MF_WARN, and MayaFlux::Core::GlobalStreamInfo::output.

+ Here is the call graph for this function: