|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Buffers::BufferSupplyMixing::supply_audio_buffer_to | ( | const std::shared_ptr< AudioBuffer > & | buffer, |
| ProcessingToken | token, | ||
| uint32_t | channel, | ||
| double | mix = 1.0 |
||
| ) |
Supplies an external audio buffer to a specific token and channel.
| buffer | Buffer to supply |
| token | Processing domain |
| channel | Channel index |
| mix | Mix level (default: 1.0) |
The buffer data is added, mixed, and normalized at the end of the processing chain of the channel's root buffer, but before final processing. This is useful when one AudioBuffer needs to be supplied to multiple channels.
Definition at line 24 of file BufferSupplyMixing.cpp.
References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Core, MayaFlux::Buffers::TokenUnitManager::get_audio_channel_count(), MayaFlux::Buffers::TokenUnitManager::get_audio_unit_mutable(), MayaFlux::Buffers::RootAudioUnit::get_buffer(), MayaFlux::Buffers::TokenUnitManager::has_audio_unit(), m_unit_manager, MF_ERROR, MF_WARN, MayaFlux::mix(), and token.
Here is the call graph for this function: