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

◆ try_resume_with_context()

virtual bool MayaFlux::Vruta::Routine::try_resume_with_context ( uint64_t  current_value,
DelayContext   
)
inlinevirtual

Attempts to resume the coroutine with explicit temporal context.

Parameters
current_valueCurrent position in the timeline (samples, frames, cycles, etc.)
contextThe temporal context being processed
Returns
True if the coroutine was resumed, false otherwise

This context-aware resume method allows different temporal mechanisms to coexist within the same processing token. For example, both sample-based and buffer-cycle-based delays can use SAMPLE_ACCURATE token without interfering with each other.

The default implementation delegates to try_resume(uint64_t) for backward compatibility. Derived classes can override to implement context-specific resumption logic.

Reimplemented in MayaFlux::Vruta::SoundRoutine, and MayaFlux::Vruta::GraphicsRoutine.

Definition at line 91 of file Routine.hpp.

92 {
93 return try_resume(current_value);
94 }
virtual bool try_resume(uint64_t current_context)=0
Attempts to resume the coroutine if it's ready to execute.