MayaFlux 0.1.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 90 of file Core.cpp.

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

References MayaFlux::internal::get_or_create_engine().

+ Here is the call graph for this function: