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

◆ register_audio_buffer()

MAYAFLUX_API void MayaFlux::register_audio_buffer ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
uint32_t  channel = 0 
)

Registers an AudioBuffer with the default engine's buffer manager.

Parameters
bufferAudioBuffer to register
channelChannel index to associate with the buffer (default: 0)

Adds the buffer to the default engine's buffer management system, enabling it to participate in the audio processing pipeline. The buffer will be processed during each audio cycle according to its configuration. Multiple buffers can be registered to the same channel for layered processing.

Definition at line 240 of file Graph.cpp.

241{
242 get_buffer_manager()->add_buffer(buffer, Buffers::ProcessingToken::AUDIO_BACKEND, channel);
243}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

References MayaFlux::Buffers::AUDIO_BACKEND, buffer, and get_buffer_manager().

Referenced by create_buffer(), create_input_listener_buffer(), and register_buffer().

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