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

◆ add_processor() [1/3]

void MayaFlux::Buffers::BufferProcessingControl::add_processor ( const std::shared_ptr< BufferProcessor > &  processor,
const std::shared_ptr< Buffer > &  buffer,
ProcessingToken  token = ProcessingToken::AUDIO_BACKEND 
)

Adds a processor to a buffer (dispatches based on buffer/token)

Parameters
processorProcessor to add
bufferTarget buffer
tokenProcessing domain (optional, used for routing)

Definition at line 30 of file BufferProcessingControl.cpp.

34{
36 if (auto audio_buffer = std::dynamic_pointer_cast<AudioBuffer>(buffer)) {
37 add_audio_processor(processor, audio_buffer);
38 }
40 add_graphics_processor(processor, buffer, token);
41 }
42}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void add_graphics_processor(const std::shared_ptr< BufferProcessor > &processor, ProcessingToken token)
Adds a processor to the graphics processing chain.
void add_audio_processor(const std::shared_ptr< BufferProcessor > &processor, const std::shared_ptr< AudioBuffer > &buffer)
Adds a processor to a specific audio buffer.
@ AUDIO_BACKEND
Standard audio processing backend configuration.
@ GRAPHICS_BACKEND
Standard graphics processing backend configuration.
@ AUDIO_PARALLEL
High-performance audio processing with GPU acceleration.

References add_audio_processor(), add_graphics_processor(), MayaFlux::Buffers::AUDIO_BACKEND, MayaFlux::Buffers::AUDIO_PARALLEL, MayaFlux::Buffers::GRAPHICS_BACKEND, and token.

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

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