#[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
impl Clone for playdate_sound_fileplayer
Source§fn clone(&self) -> playdate_sound_fileplayer
fn clone(&self) -> playdate_sound_fileplayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for playdate_sound_fileplayer
impl Debug for playdate_sound_fileplayer
Source§impl Default for playdate_sound_fileplayer
impl Default for playdate_sound_fileplayer
Source§fn default() -> playdate_sound_fileplayer
fn default() -> playdate_sound_fileplayer
Returns the “default value” for a type. Read more
impl Copy for playdate_sound_fileplayer
impl Eq for playdate_sound_fileplayer
impl StructuralPartialEq for playdate_sound_fileplayer
Auto Trait Implementations§
impl Freeze for playdate_sound_fileplayer
impl RefUnwindSafe for playdate_sound_fileplayer
impl Send for playdate_sound_fileplayer
impl Sync for playdate_sound_fileplayer
impl Unpin for playdate_sound_fileplayer
impl UnwindSafe for playdate_sound_fileplayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more