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

◆ speed()

void MayaFlux::Kriya::Chimera::speed ( size_t  layer,
double  ratio 
)

Change the speed of a freely playing layer.

Applies from the current position, so it never jumps. Zero holds, a negative ratio plays backward. A lagged layer ignores it.

Parameters
layerLayer index.
ratioMultiple of the ring's frame rate.

Definition at line 43 of file Chimera.cpp.

44{
45 if (m_state) {
46 *m_state->layers.at(layer).ratio = ratio;
47 }
48}
std::shared_ptr< State > m_state
Definition Chimera.hpp:159

References m_state.