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

◆ remove_supplied_buffer_from_channel()

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

Removes a supplied buffer from multiple channels.

Parameters
bufferBuffer to remove from supply chains
channelschannel index to remove from

Efficiently removes a buffer from channel mix processor.

Definition at line 221 of file Graph.cpp.

223{
224 auto manager = get_buffer_manager();
225
226 if (channel < manager->get_num_channels(Buffers::ProcessingToken::AUDIO_BACKEND)) {
227 manager->remove_supplied_buffer(buffer, Buffers::ProcessingToken::AUDIO_BACKEND, channel);
228 }
229}
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().

Referenced by remove_supplied_buffer_from_channels().

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