MayaFlux 1.0.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 169 of file PlotContainer.cpp.

171{
172 if (!series_in_range(m_structure.dimensions.size(), series_index, "bind"))
173 return;
174 auto& p = ensure_processor();
175 p.bind_audio_buffer(series_index, std::move(buffer));
176 p.set_series_semantics(series_index, m_structure.dimensions[series_index].role,
179}
std::shared_ptr< NetworkGeometryBuffer > buffer
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 buffer, 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: