Clear all data in the container.
Implements MayaFlux::Kakshya::NDDataContainer.
Definition at line 253 of file SoundStreamContainer.cpp.
254{
255 {
257 std::ranges::for_each(
m_data, [](
auto& vec) {
258 std::visit([](auto& v) { v.clear(); }, vec);
259 });
261 std::visit([](auto& v) { v.clear(); }, vec);
262 });
269 }
270
273}
std::vector< std::atomic< uint64_t > > m_read_position
std::vector< DataVariant > m_processed_data
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
std::vector< DataVariant > m_data
Memory::Seqlock m_data_lock
void invalidate_span_cache()
Invalidate the span cache when data or layout changes.
uint64_t m_circular_write_position
@ IDLE
Container is inactive with no data or not ready for processing.
std::shared_ptr< T > store(std::shared_ptr< T > obj)
Transfer ownership of an existing object to the persistent store for process lifetime.
References MayaFlux::Kakshya::IDLE, invalidate_span_cache(), m_circular_write_position, m_data, m_data_lock, m_num_channels, m_num_frames, m_processed_data, m_read_position, setup_dimensions(), and update_processing_state().