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

◆ get_read_position()

const std::vector< uint64_t > & MayaFlux::Kakshya::SoundStreamContainer::get_read_position ( ) const
overridevirtual

Get the current read position.

Returns
Current position in the temporal dimension per channel

Allows external components to query or synchronize playback/processing state.

Implements MayaFlux::Kakshya::StreamContainer.

Definition at line 361 of file SoundStreamContainer.cpp.

362{
363 static thread_local std::vector<uint64_t> pos_cache;
364 pos_cache.resize(m_read_position.size());
365
366 for (size_t i = 0; i < m_read_position.size(); ++i) {
367 pos_cache[i] = m_read_position[i].load();
368 }
369
370 return pos_cache;
371}
std::vector< std::atomic< uint64_t > > m_read_position

References m_read_position.