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

◆ remove_audio_processor_from_token()

void MayaFlux::Buffers::BufferProcessingControl::remove_audio_processor_from_token ( const std::shared_ptr< BufferProcessor > &  processor,
ProcessingToken  token 
)

Removes a processor from all channels in an audio token.

Parameters
processorProcessor to remove
tokenProcessing domain

Definition at line 193 of file BufferProcessingControl.cpp.

196{
198 return;
199 }
200
202 for (uint32_t i = 0; i < unit.channel_count; ++i) {
203 auto chain = unit.get_chain(i);
204 auto root_buffer = unit.get_buffer(i);
205 chain->remove_processor(processor, root_buffer);
206 }
207}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
TokenUnitManager & m_unit_manager
Reference to the token/unit manager.
bool has_audio_unit(ProcessingToken token) const
Checks if an audio unit exists for the given token.
RootAudioUnit & get_audio_unit_mutable(ProcessingToken token)
Gets an existing audio unit without creating if missing (mutable)
std::shared_ptr< BufferProcessingChain > get_chain(uint32_t channel) const

References MayaFlux::Buffers::TokenUnitManager::get_audio_unit_mutable(), MayaFlux::Buffers::RootAudioUnit::get_chain(), MayaFlux::Buffers::TokenUnitManager::has_audio_unit(), m_unit_manager, and token.

Referenced by remove_processor_from_token().

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