pub struct NativeAudioPlayer { /* private fields */ }
Implementations§
Source§impl NativeAudioPlayer
impl NativeAudioPlayer
pub fn try_new_default_device() -> Result<Self, Error>
pub fn new_default_device() -> Self
pub fn play(&self, sound: &NativeSound, properties: AudioProperties)
Trait Implementations§
Source§impl AudioPlayer for NativeAudioPlayer
impl AudioPlayer for NativeAudioPlayer
type Sound = NativeSound
fn play(&self, sound: &Self::Sound, properties: AudioProperties)
fn load_sound(&self, bytes: &'static [u8]) -> Self::Sound
Auto Trait Implementations§
impl Freeze for NativeAudioPlayer
impl RefUnwindSafe for NativeAudioPlayer
impl Send for NativeAudioPlayer
impl Sync for NativeAudioPlayer
impl Unpin for NativeAudioPlayer
impl UnwindSafe for NativeAudioPlayer
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