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

◆ supply_buffer_to_channels()

MAYAFLUX_API void MayaFlux::supply_buffer_to_channels ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
const std::vector< uint32_t > &  channels,
double  mix = 1.0 
)

Supplies a buffer to multiple channels with mixing.

Parameters
bufferSource buffer to supply
channelsVector of channel indices to supply to
mixMix level for each channel (default: 1.0)

Efficiently routes a single buffer's output to multiple channels using the MixProcessor system. This is ideal for sending the same signal to multiple outputs without duplicating processing.

Definition at line 297 of file Graph.cpp.

300{
301 for (const auto& channel : channels) {
302 supply_buffer_to_channel(buffer, channel, mix);
303 }
304}
uint32_t channel
void supply_buffer_to_channel(const std::shared_ptr< Buffers::AudioBuffer > &buffer, uint32_t channel, double mix)
Supplies a buffer to a single channel with mixing.
Definition Graph.cpp:283

References channel, mix(), and supply_buffer_to_channel().

+ Here is the call graph for this function: