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

◆ get_buffer_size()

MAYAFLUX_API uint32_t MayaFlux::Config::get_buffer_size ( )

Gets the buffer size from the default engine.

Returns
Current buffer size in frames

Definition at line 72 of file Config.cpp.

73{
74 if (!is_engine_configured()) {
75 MF_WARN(Journal::Component::API, Journal::Context::Configuration, "Engine is not running. Returning default buffer size");
76 return 512;
77 }
79}
#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 buffer_size
Number of samples per processing block.

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

Referenced by MayaFlux::create_sampler(), MayaFlux::create_sampler_from_stream(), and MayaFlux::prepare_audio_buffers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: