Skip to main content

ss_player_set_track_outgoing_event_threshold

Function ss_player_set_track_outgoing_event_threshold 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_set_track_outgoing_event_threshold( handle: *mut SsPlayer, track: u32, threshold: f32, ) -> i32
Expand description

How far into a crossfade on track the outgoing animation keeps firing events: while its share of the track, 1 - progress, is at least threshold. The default, infinity, silences it from the moment the fade begins; 0.5 keeps it firing for the first half. Kept by the track. The update that completes the fade has already released the outgoing animation, so it fires nothing there, even at 0.

ยงSafety

handle must be a live handle or null.