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

◆ load_from_container()

BufferOperation MayaFlux::Kriya::BufferOperation::load_from_container ( std::shared_ptr< Kakshya::DynamicSoundStream source,
std::shared_ptr< Buffers::AudioBuffer target,
uint64_t  start_frame = 0,
uint32_t  length = 0 
)
static

Create a load operation from container to buffer.

Parameters
sourceSource container to read from
targetTarget buffer to write to
start_frameStarting frame position (default: 0)
lengthNumber of frames to load (default: 0 = all)
Returns
BufferOperation configured for container loading

Definition at line 120 of file BufferOperation.cpp.

124{
126 op.m_source_container = std::move(source);
127 op.m_target_buffer = std::move(target);
128 op.m_start_frame = start_frame;
129 op.m_load_length = length;
130 return op;
131}
BufferOperation(OpType type, BufferCapture capture)
@ LOAD
Load data from container to buffer with position control.

References LOAD, m_load_length, m_source_container, m_start_frame, and m_target_buffer.