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

◆ Init() [4/4]

MAYAFLUX_API void MayaFlux::Init ( uint32_t  sample_rate,
uint32_t  buffer_size = 512,
uint32_t  num_out_channels = 2,
uint32_t  num_in_channels = 0 
)

Initializes the default engine with specified parameters.

Parameters
sample_rateAudio sample rate in Hz
buffer_sizeSize of audio processing buffer in frames
num_out_channelsNumber of output channels
num_in_channelsNumber of input channels

Convenience wrapper for Engine::Init() on the default engine.

Definition at line 92 of file Core.cpp.

93{
94 auto& engine = internal::get_or_create_engine();
95 auto& stream_info = engine.get_stream_info();
96
97 stream_info.sample_rate = sample_rate;
98 stream_info.buffer_size = buffer_size;
99 stream_info.output.channels = num_out_channels;
100 stream_info.input.channels = num_in_channels;
101 engine.Init();
102}

References MayaFlux::internal::get_or_create_engine().

+ Here is the call graph for this function: