#[repr(C)]
pub struct playdate_sound_fileplayer {
Show 22 fields pub newPlayer: Option<unsafe extern "C" fn() -> *mut FilePlayer>, pub freePlayer: Option<unsafe extern "C" fn(player: *mut FilePlayer)>, pub loadIntoPlayer: Option<unsafe extern "C" fn(player: *mut FilePlayer, path: *const c_char)>, pub setBufferLength: Option<unsafe extern "C" fn(player: *mut FilePlayer, bufferLen: f32)>, pub play: Option<unsafe extern "C" fn(player: *mut FilePlayer, repeat: c_int) -> c_int>, pub isPlaying: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> c_int>, pub pause: Option<unsafe extern "C" fn(player: *mut FilePlayer)>, pub stop: Option<unsafe extern "C" fn(player: *mut FilePlayer)>, pub setVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: f32, right: f32)>, pub getVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: *mut f32, right: *mut f32)>, pub getLength: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>, pub setOffset: Option<unsafe extern "C" fn(player: *mut FilePlayer, offset: f32)>, pub setRate: Option<unsafe extern "C" fn(player: *mut FilePlayer, rate: f32)>, pub setLoopRange: Option<unsafe extern "C" fn(player: *mut FilePlayer, start: f32, end: f32)>, pub didUnderrun: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> c_int>, pub setFinishCallback: Option<unsafe extern "C" fn(player: *mut FilePlayer, callback: sndCallbackProc)>, pub setLoopCallback: Option<unsafe extern "C" fn(player: *mut FilePlayer, callback: sndCallbackProc)>, pub getOffset: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>, pub getRate: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>, pub setStopOnUnderrun: Option<unsafe extern "C" fn(player: *mut FilePlayer, flag: c_int)>, pub fadeVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: f32, right: f32, len: i32, finishCallback: sndCallbackProc)>, pub setMP3StreamSource: Option<unsafe extern "C" fn(player: *mut FilePlayer, dataSource: Option<unsafe extern "C" fn(data: *mut u8, bytes: c_int, userdata: *mut c_void) -> c_int>, userdata: *mut c_void, bufferLen: f32)>,
}

Fields

newPlayer: Option<unsafe extern "C" fn() -> *mut FilePlayer>freePlayer: Option<unsafe extern "C" fn(player: *mut FilePlayer)>loadIntoPlayer: Option<unsafe extern "C" fn(player: *mut FilePlayer, path: *const c_char)>setBufferLength: Option<unsafe extern "C" fn(player: *mut FilePlayer, bufferLen: f32)>play: Option<unsafe extern "C" fn(player: *mut FilePlayer, repeat: c_int) -> c_int>isPlaying: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> c_int>pause: Option<unsafe extern "C" fn(player: *mut FilePlayer)>stop: Option<unsafe extern "C" fn(player: *mut FilePlayer)>setVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: f32, right: f32)>getVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: *mut f32, right: *mut f32)>getLength: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>setOffset: Option<unsafe extern "C" fn(player: *mut FilePlayer, offset: f32)>setRate: Option<unsafe extern "C" fn(player: *mut FilePlayer, rate: f32)>setLoopRange: Option<unsafe extern "C" fn(player: *mut FilePlayer, start: f32, end: f32)>didUnderrun: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> c_int>setFinishCallback: Option<unsafe extern "C" fn(player: *mut FilePlayer, callback: sndCallbackProc)>setLoopCallback: Option<unsafe extern "C" fn(player: *mut FilePlayer, callback: sndCallbackProc)>getOffset: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>getRate: Option<unsafe extern "C" fn(player: *mut FilePlayer) -> f32>setStopOnUnderrun: Option<unsafe extern "C" fn(player: *mut FilePlayer, flag: c_int)>fadeVolume: Option<unsafe extern "C" fn(player: *mut FilePlayer, left: f32, right: f32, len: i32, finishCallback: sndCallbackProc)>setMP3StreamSource: Option<unsafe extern "C" fn(player: *mut FilePlayer, dataSource: Option<unsafe extern "C" fn(data: *mut u8, bytes: c_int, userdata: *mut c_void) -> c_int>, userdata: *mut c_void, bufferLen: f32)>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.