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

◆ remove_audio_processor_from_channel()

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

Removes a processor from a specific audio token and channel.

Parameters
processorProcessor to remove
tokenProcessing domain
channelChannel index

Definition at line 174 of file BufferProcessingControl.cpp.

178{
180 return;
181 }
182
184 if (channel >= unit.channel_count) {
185 return;
186 }
187
188 auto chain = unit.get_chain(channel);
189 auto root_buffer = unit.get_buffer(channel);
190 chain->remove_processor(processor, root_buffer);
191}
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: