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

◆ set_mix_normalization_for_channel()

MAYAFLUX_API void MayaFlux::set_mix_normalization_for_channel ( uint32_t  channel,
bool  enabled 
)

Sets whether a channel's mix is averaged over its sources.

Parameters
channelChannel index
enabledTrue (the default) divides every source by the number of sources on the channel, so adding one makes the others quieter. False sums the sources at their own levels.

Definition at line 334 of file Graph.cpp.

335{
336 auto manager = get_buffer_manager();
337
338 if (channel < manager->get_num_channels(Buffers::ProcessingToken::AUDIO_BACKEND)) {
339 manager->get_root_audio_buffer(Buffers::ProcessingToken::AUDIO_BACKEND, channel)
340 ->set_mix_normalization(enabled);
341 }
342}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

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

Referenced by set_mix_normalization_for_channels().

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