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

◆ get_rate()

unsigned int MayaFlux::Vruta::TaskScheduler::get_rate ( ProcessingToken  token = ProcessingToken::SAMPLE_ACCURATE) const

Get processing rate for a domain.

Parameters
tokenProcessing domain
Returns
Processing rate (sample rate, frame rate, etc.)

Definition at line 298 of file Scheduler.cpp.

299{
300 auto clock_it = m_token_clocks.find(token);
301 if (clock_it != m_token_clocks.end()) {
302 return clock_it->second->rate();
303 }
304
305 return get_default_rate(token);
306}
unsigned int get_default_rate(ProcessingToken token) const
Get the default rate for a processing token.
std::unordered_map< ProcessingToken, std::shared_ptr< IClock > > m_token_clocks
Clock instances for each processing domain.

References get_default_rate(), and m_token_clocks.

Referenced by seconds_to_samples(), and seconds_to_units().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: