|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< DynamicSoundStream > MayaFlux::Kakshya::DynamicSoundStream::snapshot | ( | uint64_t | frames | ) | const |
Copy the most recent frames into a new stream, oldest first.
Reads back from channel 0's write head, so it is meant for streams filled with append_frames. A ring is unrolled across its wrap; frames from before the first write are silence. The copy is independent of this stream.
| frames | Frames to keep, capped at the ring capacity, or at the frames written for a linear stream. |
Definition at line 256 of file DynamicSoundStream.cpp.
References available, channels, count, MayaFlux::Kakshya::SoundStreamContainer::gather_frames(), MayaFlux::Kakshya::SoundStreamContainer::get_num_channels(), MayaFlux::Kakshya::SoundStreamContainer::get_sample_rate(), get_write_head(), indices, MayaFlux::Kakshya::INTERLEAVED, m_circular_capacity, and m_is_circular.
Here is the call graph for this function: