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

◆ initialize_state()

virtual bool MayaFlux::Vruta::Routine::initialize_state ( uint64_t  current_context = 0U)
pure virtual

Initializes the coroutine's state for execution.

Parameters
current_sampleCurrent sample position in the timeline
Returns
True if initialization succeeded, false otherwise

Prepares the coroutine for execution by setting its initial sample position and other state. This should be called before the first attempt to resume the coroutine.

Implemented in MayaFlux::Vruta::GraphicsRoutine, MayaFlux::Vruta::SoundRoutine, and MayaFlux::Vruta::ComplexRoutine.