MayaFlux 0.1.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 412 of file SoundStreamContainer.cpp.

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

References m_read_position.