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

◆ load_from_container() [1/2]

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 403 of file BufferOperation.cpp.

407{
409 op.m_source_audio_stream = std::move(source);
410 op.m_target_audio_buffer = std::move(target);
411 op.m_start_frame = start_frame;
412 op.m_load_length = length;
413 return op;
414}
uint64_t length
Definition Composite.cpp:11
BufferOperation(OpType type, BufferCapture capture)
@ LOAD
Load data from container to buffer with position control.
@ AUDIO_BACKEND
Standard audio processing backend configuration.

References MayaFlux::Buffers::AUDIO_BACKEND, length, LOAD, m_load_length, m_source_audio_stream, m_start_frame, and m_target_audio_buffer.