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

◆ set_looping()

void MayaFlux::Kakshya::SoundStreamContainer::set_looping ( bool  enable)
overridevirtual

Enable or disable looping behavior for the stream.

Parameters
enabletrue to enable looping

When enabled, advancing past the end of the loop region wraps to the start.

Implements MayaFlux::Kakshya::StreamContainer.

Definition at line 484 of file SoundStreamContainer.cpp.

485{
486 m_looping_enabled = enable;
487 if (enable && m_loop_region.start_coordinates.empty()) {
489 }
490}
static Region time_span(uint64_t start_frame, uint64_t end_frame, const std::string &label="", const std::any &extra_data={})
Create a Region representing a time span (e.g., a segment of frames).
Definition Region.hpp:135
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Definition Region.hpp:69

References m_loop_region, m_looping_enabled, m_num_frames, MayaFlux::Kakshya::Region::start_coordinates, and MayaFlux::Kakshya::Region::time_span().

Referenced by MayaFlux::Kakshya::DynamicSoundStream::disable_circular_buffer(), and MayaFlux::Kakshya::DynamicSoundStream::enable_circular_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: