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

◆ supply_buffer_to_channel()

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

Supplies a buffer to a single channel with mixing.

Parameters
bufferSource buffer to supply
channelTarget channel index
mixMix level (default: 1.0)

Convenience wrapper for single-channel buffer supply operations.

Definition at line 203 of file Graph.cpp.

205{
206 auto manager = get_buffer_manager();
207 if (channel < manager->get_num_channels(Buffers::ProcessingToken::AUDIO_BACKEND)) {
208 manager->supply_buffer_to(buffer, Buffers::ProcessingToken::AUDIO_BACKEND, channel, mix);
209 }
210}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:81

References MayaFlux::Buffers::AUDIO_BACKEND, get_buffer_manager(), and mix().

Referenced by supply_buffer_to_channels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: