Skip to main content

ss_player_event_at

Function ss_player_event_at 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_event_at( handle: *mut SsPlayer, index: u32, out: *mut SsEventData, ) -> i32
Expand description

Fill out with the index-th event of the last update.

Read kind first: it says which of the payload fields carry anything.

Returns SS_OK, or SS_ERROR_INVALID_ARGUMENT when the handle or out is null or index is out of range, leaving out untouched.

ยงSafety

handle must be a live handle or null; out must point at a writable ss_event_data_t.