|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::BufferSupplyMixing::route_buffer_to_channel | ( | const std::shared_ptr< AudioBuffer > & | buffer, |
| uint32_t | target_channel, | ||
| uint32_t | fade_cycles, | ||
| ProcessingToken | token | ||
| ) |
Routes a buffer's processing from one channel to another with fade.
| buffer | Buffer to route |
| target_channel | Destination channel |
| fade_cycles | Number of processing cycles to fade over |
| token | Processing domain |
Transitions the buffer's channel_id from its current channel to the target channel with smooth crossfade. During transition, buffer continues processing in its original channel while fading in via supply to the target channel.
Definition at line 186 of file BufferSupplyMixing.cpp.
References MayaFlux::Buffers::BufferRoutingState::ACTIVE, MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, MayaFlux::Buffers::BufferRoutingState::cycles_elapsed, MayaFlux::Buffers::BufferRoutingState::fade_cycles, MayaFlux::Buffers::BufferRoutingState::from_amount, MayaFlux::Buffers::BufferRoutingState::from_channel, MayaFlux::Buffers::TokenUnitManager::get_audio_unit_mutable(), MayaFlux::Buffers::TokenUnitManager::has_audio_unit(), m_unit_manager, MF_ERROR, MF_WARN, supply_audio_buffer_to(), MayaFlux::Buffers::BufferRoutingState::to_amount, and MayaFlux::Buffers::BufferRoutingState::to_channel.
Here is the call graph for this function: