pub struct Cache(/* private fields */);
Expand description
Cached file player api end-point.
Stores one reference, so size on stack is eq usize
.
All calls approximately costs ~1 deref.
Trait Implementations§
source§impl Api for Cache
impl Api for Cache
source§fn new_player(&self) -> unsafe extern "C" fn() -> *mut FilePlayer
fn new_player(&self) -> unsafe extern "C" fn() -> *mut FilePlayer
source§fn free_player(&self) -> unsafe extern "C" fn(_: *mut FilePlayer)
fn free_player(&self) -> unsafe extern "C" fn(_: *mut FilePlayer)
source§fn load_into_player(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: *const i8) -> i32
fn load_into_player( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: *const i8) -> i32
source§fn set_buffer_length(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
fn set_buffer_length(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
source§fn play(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: i32) -> i32
fn play(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: i32) -> i32
source§fn is_playing(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> i32
fn is_playing(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> i32
source§fn stop(&self) -> unsafe extern "C" fn(_: *mut FilePlayer)
fn stop(&self) -> unsafe extern "C" fn(_: *mut FilePlayer)
source§fn set_volume(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32)
fn set_volume(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32)
source§fn get_volume(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: *mut f32, _: *mut f32)
fn get_volume( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: *mut f32, _: *mut f32)
source§fn get_length(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
fn get_length(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
source§fn set_offset(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
fn set_offset(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
source§fn set_rate(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
fn set_rate(&self) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32)
source§fn set_loop_range(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32)
fn set_loop_range( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32)
source§fn did_underrun(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> i32
fn did_underrun(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> i32
source§fn set_stop_on_underrun(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: i32)
fn set_stop_on_underrun( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: i32)
source§fn set_finish_callback(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
fn set_finish_callback( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
source§fn set_loop_callback(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
fn set_loop_callback( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
source§fn get_offset(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
fn get_offset(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
source§fn get_rate(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
fn get_rate(&self) -> unsafe extern "C" fn(_: *mut FilePlayer) -> f32
source§fn fade_volume(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32, _: i32, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
fn fade_volume( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: f32, _: f32, _: i32, _: Option<unsafe extern "C" fn(_: *mut SoundSource, _: *mut c_void)>, _: *mut c_void)
source§fn set_mp3_stream_source(
&self
) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut u8, _: i32, _: *mut c_void) -> i32>, _: *mut c_void, _: f32)
fn set_mp3_stream_source( &self ) -> unsafe extern "C" fn(_: *mut FilePlayer, _: Option<unsafe extern "C" fn(_: *mut u8, _: i32, _: *mut c_void) -> i32>, _: *mut c_void, _: f32)
source§impl From<&NonNull<playdate_sound_fileplayer>> for Cache
impl From<&NonNull<playdate_sound_fileplayer>> for Cache
source§fn from(ptr: &NonNull<playdate_sound_fileplayer>) -> Cache
fn from(ptr: &NonNull<playdate_sound_fileplayer>) -> Cache
Converts to this type from the input type.
source§impl From<&'static playdate_sound_fileplayer> for Cache
impl From<&'static playdate_sound_fileplayer> for Cache
source§fn from(r: &'static playdate_sound_fileplayer) -> Cache
fn from(r: &'static playdate_sound_fileplayer) -> Cache
Converts to this type from the input type.
source§impl From<*const playdate_sound_fileplayer> for Cache
impl From<*const playdate_sound_fileplayer> for Cache
source§fn from(ptr: *const playdate_sound_fileplayer) -> Cache
fn from(ptr: *const playdate_sound_fileplayer) -> Cache
Converts to this type from the input type.
source§impl From<NonNull<playdate_sound_fileplayer>> for Cache
impl From<NonNull<playdate_sound_fileplayer>> for Cache
source§fn from(ptr: NonNull<playdate_sound_fileplayer>) -> Cache
fn from(ptr: NonNull<playdate_sound_fileplayer>) -> Cache
Converts to this type from the input type.
impl Copy for Cache
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes