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

◆ route_buffer() [1/2]

MAYAFLUX_API void MayaFlux::route_buffer ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
uint32_t  target_channel,
double  seconds_to_fade = 1.0,
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
seconds_to_fadeCrossfade duration in seconds
tokenProcessing domain

Definition at line 309 of file Graph.cpp.

314{
315 get_buffer_manager()->route_buffer_to_channel(
316 buffer, target_channel, seconds_to_blocks(seconds_to_fade), token);
317}
uint64_t seconds_to_blocks(double seconds)
Converts a time duration in seconds to the equivalent number of processing blocks.
Definition Chronie.cpp:253
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:133

References get_buffer_manager(), and seconds_to_blocks().

+ Here is the call graph for this function: