pub struct Audio { /* private fields */ }
Expand description
Struct representing the Audio system
Implementations
sourceimpl Audio
impl Audio
sourcepub fn add_audio(&mut self, name: &'static str, path: &'static str)
pub fn add_audio(&mut self, name: &'static str, path: &'static str)
Adds a piece of audio to the system
sourcepub fn add_packed_audio(&mut self, name: &'static str, bytes: Vec<u8>)
pub fn add_packed_audio(&mut self, name: &'static str, bytes: Vec<u8>)
Add audio that is packed into the binary
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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