#[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) -> c_int>, 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) -> c_int>§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§

source§

impl Clone for playdate_sound_fileplayer

source§

fn clone(&self) -> playdate_sound_fileplayer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for playdate_sound_fileplayer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for playdate_sound_fileplayer

source§

fn default() -> playdate_sound_fileplayer

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

impl PartialEq<playdate_sound_fileplayer> for playdate_sound_fileplayer

source§

fn eq(&self, other: &playdate_sound_fileplayer) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for playdate_sound_fileplayer

source§

impl Eq for playdate_sound_fileplayer

source§

impl StructuralEq for playdate_sound_fileplayer

source§

impl StructuralPartialEq for playdate_sound_fileplayer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.