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

◆ get_write_head()

uint64_t MayaFlux::Kakshya::DynamicSoundStream::get_write_head ( uint32_t  channel = 0) const
inline

Index of the next frame append_frames will write for a channel.

In a full ring this is also the oldest frame. Writes made with write_frames do not move it.

Definition at line 105 of file DynamicSoundStream.hpp.

106 {
107 return channel < m_write_heads.size() ? m_write_heads[channel] : 0;
108 }
std::vector< uint64_t > m_write_heads
Next append_frames index per channel.

Referenced by snapshot().

+ Here is the caller graph for this function: