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

◆ unregister_audio_buffer()

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

Unregisters an AudioBuffer from the default engine's buffer manager.

Parameters
bufferAudioBuffer to unregister
channelChannel index the buffer was associated with (default: 0)

Removes the buffer from the default engine's buffer management system. The buffer will no longer participate in audio processing cycles. This is essential for clean shutdown and preventing processing of destroyed or invalid buffers.

Definition at line 155 of file Graph.cpp.

156{
157 get_buffer_manager()->remove_buffer(buffer, Buffers::ProcessingToken::AUDIO_BACKEND, channel);
158}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:81

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

+ Here is the call graph for this function: