MayaFlux 0.2.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 414 of file SoundStreamContainer.cpp.

415{
416 static thread_local std::vector<uint64_t> pos_cache;
417 pos_cache.resize(m_read_position.size());
418
419 for (size_t i = 0; i < m_read_position.size(); ++i) {
420 pos_cache[i] = m_read_position[i].load();
421 }
422
423 return pos_cache;
424}
std::vector< std::atomic< uint64_t > > m_read_position

References m_read_position.