Skip to main content

ss_player_add_track_source

Function ss_player_add_track_source 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_add_track_source( handle: *mut SsPlayer, track: u32, anim_name: *const c_char, weight: f32, out_source: *mut u32, ) -> i32
Expand description

Lay anim_name on track beside what it already carries, at weight, and write its handle to out_source. On an empty track it becomes the main source. out_source is untouched on failure.

ยงSafety

handle must be a live handle or null; anim_name a NUL-terminated UTF-8 string; out_source a writable uint32_t.