MayaFlux 1.0.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 351 of file Graph.cpp.

356{
357 get_buffer_manager()->route_buffer_to_channel(
358 buffer, target_channel, seconds_to_blocks(seconds_to_fade), token);
359}
std::shared_ptr< NetworkGeometryBuffer > buffer
uint64_t seconds_to_blocks(double seconds)
Converts a time duration in seconds to the equivalent number of processing blocks.
Definition Chronie.cpp:294
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

References buffer, get_buffer_manager(), and seconds_to_blocks().

+ Here is the call graph for this function: