|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Buffers::BufferProcessor > MayaFlux::attach_quick_process | ( | F && | processor, |
| std::initializer_list< unsigned int > | channels = { 0 } |
||
| ) |
Attaches a processing function to one or more channels.
| processor | Function to process the buffer |
| channels | Channel indices to process, as a braced list. Defaults to channel 0. |
The processor will be called during the default engine's audio processing cycle and will operate on each listed output channel buffer. The same function runs on every channel, so state it captures is shared between them. Pass a braced list, as in attach_quick_process(fn, { 0, 1 }); a bare integer is not accepted.
Definition at line 467 of file Graph.hpp.
Referenced by MayaFlux::Buffers::BufferProcessingControl::~BufferProcessingControl().
Here is the caller graph for this function: