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

◆ route_buffer() [2/2]

MAYAFLUX_API void MayaFlux::route_buffer ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
uint32_t  target_channel,
uint32_t  num_blocks,
const Buffers::ProcessingToken token = Buffers::ProcessingToken::AUDIO_BACKEND 
)

Routes a buffer from its current channel to a target channel with fade.

Parameters
bufferBuffer to route
target_channelDestination channel
num_blocksCrossfade duration in processing blocks
tokenProcessing domain

NOTE: num_blocks is in processing blocks, not samples. The actual time duration will depend on the block size and sample rate.

Definition at line 319 of file Graph.cpp.

324{
325 get_buffer_manager()->route_buffer_to_channel(buffer, target_channel, num_blocks, token);
326}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:133

References get_buffer_manager().

+ Here is the call graph for this function: