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

◆ Init() [3/3]

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 102 of file Core.cpp.

103{
104 auto& engine = internal::get_or_create_engine();
105 auto& stream_info = engine.get_stream_info();
106
107 stream_info.sample_rate = sample_rate;
108 stream_info.buffer_size = buffer_size;
109 stream_info.output.channels = num_out_channels;
110 stream_info.input.channels = num_in_channels;
111 engine.Init();
112}

References MayaFlux::internal::get_or_create_engine().

+ Here is the call graph for this function: