Struct crankstart_sys::playdate_sound_fileplayer
source · [−]#[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
sourceimpl Clone for playdate_sound_fileplayer
impl Clone for playdate_sound_fileplayer
sourcefn clone(&self) -> playdate_sound_fileplayer
fn clone(&self) -> playdate_sound_fileplayer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for playdate_sound_fileplayer
impl Debug for playdate_sound_fileplayer
sourceimpl Default for playdate_sound_fileplayer
impl Default for playdate_sound_fileplayer
sourcefn default() -> playdate_sound_fileplayer
fn default() -> playdate_sound_fileplayer
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_sound_fileplayer> for playdate_sound_fileplayer
impl PartialEq<playdate_sound_fileplayer> for playdate_sound_fileplayer
sourcefn eq(&self, other: &playdate_sound_fileplayer) -> bool
fn eq(&self, other: &playdate_sound_fileplayer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &playdate_sound_fileplayer) -> bool
fn ne(&self, other: &playdate_sound_fileplayer) -> bool
This method tests for !=
.
impl Copy for playdate_sound_fileplayer
impl Eq for playdate_sound_fileplayer
impl StructuralEq for playdate_sound_fileplayer
impl StructuralPartialEq for playdate_sound_fileplayer
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more