pub struct WebAudioPlayer { /* private fields */ }
Implementations§
Source§impl WebAudioPlayer
impl WebAudioPlayer
pub fn new_with_mime(mime: &str) -> Self
pub fn load_sound(&self, bytes: &'static [u8]) -> WebSound
Source§impl WebAudioPlayer
impl WebAudioPlayer
pub fn play(&self, sound: &WebSound, properties: AudioProperties)
Trait Implementations§
Source§impl AudioPlayer for WebAudioPlayer
impl AudioPlayer for WebAudioPlayer
Auto Trait Implementations§
impl Freeze for WebAudioPlayer
impl RefUnwindSafe for WebAudioPlayer
impl Send for WebAudioPlayer
impl Sync for WebAudioPlayer
impl Unpin for WebAudioPlayer
impl UnwindSafe for WebAudioPlayer
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