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

◆ route_to_buffer()

BufferOperation MayaFlux::Kriya::BufferOperation::route_to_buffer ( std::shared_ptr< Buffers::AudioBuffer target)
static

Create a routing operation to AudioBuffer destination.

Parameters
targetTarget AudioBuffer to receive data.
Returns
BufferOperation configured for buffer routing.

ROUTE is a batch output operation. It writes the accumulated or transformed result of a pipeline into a target buffer or container after processing is complete. It is not intended for live per-cycle routing: that is covered by supply, clone, and processing chains on individual buffers. The typical use is to accumulate or transform over N cycles via CAPTURE/TRANSFORM, then route the result to a buffer or DynamicSoundStream for playback or storage via SoundContainerBuffer.

Definition at line 109 of file BufferOperation.cpp.

110{
112 op.m_target_buffer = std::move(target);
113 return op;
114}
BufferOperation(OpType type, BufferCapture capture)
@ ROUTE
Route data to destination (buffer or container)

References m_target_buffer, and ROUTE.