Clear all data in the container.
Implements MayaFlux::Kakshya::NDDataContainer.
Definition at line 313 of file SoundStreamContainer.cpp.
314{
316
317 std::ranges::for_each(
m_data, [](
auto& vec) {
318 std::visit([](auto& v) { v.clear(); }, vec);
319 });
320
322 std::visit([](auto& v) { v.clear(); }, vec);
323 });
324
327
330 pos.store(0);
331 }
332
335}
std::vector< std::atomic< uint64_t > > m_read_position
std::vector< DataVariant > m_processed_data
std::shared_mutex m_data_mutex
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
std::vector< DataVariant > m_data
uint64_t m_circular_write_position
void lock() override
Acquire a lock for thread-safe access.
@ IDLE
Container is inactive with no data or not ready for processing.
References MayaFlux::Kakshya::IDLE, lock(), m_circular_write_position, m_data, m_data_mutex, m_num_channels, m_num_frames, m_processed_data, m_read_position, setup_dimensions(), and update_processing_state().