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

◆ get_default_rate()

unsigned int MayaFlux::Vruta::TaskScheduler::get_default_rate ( ProcessingToken  token) const
private

Get the default rate for a processing token.

Parameters
tokenProcessing domain
Returns
Default rate for the domain

Definition at line 213 of file Scheduler.cpp.

214{
215 switch (token) {
217 return 48000;
219 return 60;
221 return 48000;
223 return 1;
225 return 1000;
226 default:
227 return 48000;
228 }
229}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
@ MULTI_RATE
Coroutine can handle multiple sample rates. Picks the frame-accurate processing token by default.
@ FRAME_ACCURATE
Coroutine is frame-accurate.
@ SAMPLE_ACCURATE
Coroutine is sample-accurate.
@ ON_DEMAND
Coroutine is executed on demand, not scheduled.

References MayaFlux::Vruta::CUSTOM, MayaFlux::Vruta::FRAME_ACCURATE, MayaFlux::Vruta::MULTI_RATE, MayaFlux::Vruta::ON_DEMAND, MayaFlux::Vruta::SAMPLE_ACCURATE, and token.

Referenced by ensure_domain(), and get_rate().

+ Here is the caller graph for this function: