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

◆ next_execution()

uint64_t MayaFlux::Vruta::SoundRoutine::next_execution ( ) const
overridevirtual

Gets the sample position when this routine should next execute.

Returns
Sample position for next execution, or uint64_MAX if inactive

This method is crucial for sample-accurate scheduling. It returns the exact sample position when the coroutine should be resumed next. The scheduler uses this to determine when to call try_resume().

Implements MayaFlux::Vruta::Routine.

Definition at line 99 of file Routine.cpp.

100{
101 return is_active() ? m_handle.promise().next_sample : UINT64_MAX;
102}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:460
bool is_active() const override
Checks if the coroutine is still active.
Definition Routine.cpp:79

References is_active(), and m_handle.

+ Here is the call graph for this function: