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

◆ get_typed_clock()

template<typename ClockType >
const ClockType & MayaFlux::Vruta::TaskScheduler::get_typed_clock ( ProcessingToken  token = ProcessingToken::SAMPLE_ACCURATE) const
inline

Get a typed clock for a specific processing domain.

Template Parameters
ClockTypeType of clock to retrieve (e.g., SampleClock, FrameClock)
Parameters
tokenProcessing domain
Returns
Const reference to the typed clock

This method allows retrieving a specific type of clock for the given processing domain, ensuring type safety and correct clock usage.

Definition at line 215 of file Scheduler.hpp.

216 {
217 return dynamic_cast<const ClockType&>(get_clock(token));
218 }
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
const SampleClock & get_clock() const
Gets the primary clock (audio domain for legacy compatibility)

References token.