Skip to main content

ss_runtime_pause

Function ss_runtime_pause 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_pause(context: *mut c_void)
Expand description

Holds playback where it stands, keeping the current frame. With animation mixing it holds every track and every fade, as ss_runtime_stop stops them.

Idempotent: pausing an already-paused animation leaves it paused. ss_runtime_is_playing stays true while held — a pause is a hold, not a stop — so tell the two apart with ss_runtime_is_pausing. Lift the hold with ss_runtime_resume; ss_runtime_play rewinds and cannot resume.