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

◆ bind() [2/4]

void MayaFlux::Kakshya::PlotContainer::bind ( uint32_t  series_index,
std::shared_ptr< Buffers::AudioBuffer buffer 
)

Bind a series to an AudioBuffer.

Each process() copies get_data() span into the series. Series size is not automatically resized; allocate via add_series() to match the expected buffer frame count.

Parameters
series_indexIndex returned by add_series().
bufferAudioBuffer to read from.

Definition at line 149 of file PlotContainer.cpp.

151{
152 auto& p = ensure_processor();
153 p.bind_audio_buffer(series_index, std::move(buffer));
154 p.set_series_semantics(series_index, m_structure.dimensions[series_index].role,
157}
PlotProcessor & ensure_processor()
Return the PlotProcessor, creating and attaching it if absent.
void mark_ready_for_processing(bool ready) override
Mark the container as ready or not ready for processing.
ContainerDataStructure m_structure

References MayaFlux::Kakshya::ContainerDataStructure::dimensions, ensure_processor(), m_structure, mark_ready_for_processing(), and MayaFlux::Kakshya::ContainerDataStructure::modality.

+ Here is the call graph for this function: