Skip to main content

ss_runtime_get_passed_event_source_handle

Function ss_runtime_get_passed_event_source_handle 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_get_passed_event_source_handle( context: *mut c_void, index: i32, ) -> u32
Expand description

Which source fired the collected event at index — parallel to ss_runtime_get_passed_event_index, and read with the same index.

With every source and every track’s outgoing side at the default event threshold (+∞) this is uniformly ss_runtime_get_track_main_source of track 0, so a Player that does not use animation mixing can ignore it. It diverges once a secondary source opts in to firing events via ss_runtime_set_source_event_threshold, or a crossfade’s outgoing side via ss_runtime_set_track_outgoing_event_threshold, and that is when a host needs it: without it, two blended animations’ events arrive in one undifferentiated list.

Returns SS_RUNTIME_INVALID_HANDLE for a negative or out-of-range index, which no live handle ever equals.