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

◆ add_audio_processor_to_channel()

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

Adds a processor to a specific audio token and channel.

Parameters
processorProcessor to add
tokenProcessing domain
channelChannel index

Definition at line 133 of file BufferProcessingControl.cpp.

137{
139 auto root_buffer = m_access_control.get_root_audio_buffer(token, channel);
140 chain->add_processor(processor, root_buffer);
141}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::shared_ptr< BufferProcessingChain > get_audio_processing_chain(ProcessingToken token, uint32_t channel)
Gets the processing chain for an audio token and channel.
std::shared_ptr< RootAudioBuffer > get_root_audio_buffer(ProcessingToken token, uint32_t channel)
Gets the root audio buffer for a specific token and channel.
BufferAccessControl & m_access_control
Reference to the buffer access control.

References MayaFlux::Buffers::BufferAccessControl::get_audio_processing_chain(), MayaFlux::Buffers::BufferAccessControl::get_root_audio_buffer(), m_access_control, and token.

Referenced by add_processor(), attach_quick_process(), and connect_node_to_audio_channel().

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