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

◆ clone_buffer_to_channels() [1/2]

MAYAFLUX_API std::vector< std::shared_ptr< Buffers::AudioBuffer > > MayaFlux::clone_buffer_to_channels ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
const std::vector< uint32_t > &  channels 
)

Clones a buffer to multiple channels.

Parameters
bufferBuffer to clone
channelsVector of channel indices to clone to

Creates independent copies of the buffer for each specified channel. Each clone maintains the same data, processors, and processing chain, but operates independently on its assigned channel. Uses the default engine's buffer manager.

Definition at line 192 of file Graph.cpp.

194{
195 return get_buffer_manager()->clone_buffer_for_channels(buffer, channels, Buffers::ProcessingToken::AUDIO_BACKEND);
196}
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 register_buffer().

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