MayaFlux 0.1.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 212 of file Graph.cpp.

215{
216 for (const auto& channel : channels) {
217 supply_buffer_to_channel(buffer, channel, mix);
218 }
219}
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:203

References mix(), and supply_buffer_to_channel().

+ Here is the call graph for this function: