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

◆ set_speed()

void MayaFlux::Kakshya::CursorAccessProcessor::set_speed ( double  speed)

Set the playback speed relative to nominal rate.

Speed is applied as a fractional frame accumulator: each process() call advances the cursor by m_frames_per_block * m_speed frames, with the sub-frame remainder carried in m_speed_remainder for the next call. Speed 1.0 is the default (no accumulator overhead). Values <= 0.0 are ignored.

Parameters
speedPlayback speed multiplier (1.0 = normal).

Definition at line 143 of file CursorAccessProcessor.cpp.

144{
145 if (speed > 0.0)
146 m_speed = speed;
147}

References m_speed.