Skip to main content

ss_player_set_source_event_threshold

Function ss_player_set_source_event_threshold 

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

The weight at or above which source fires its events. Only track 0’s main source fires by default (the default threshold is infinity); lower this to the source’s weight or below to have it fire too.

§Safety

handle must be a live handle or null.