pub struct Audio { /* private fields */ }Implementations§
Source§impl Audio
impl Audio
pub fn new() -> Self
pub fn set_volume(&self, volume: f64)
pub fn set_listener_position(&self, position: vec3<f64>)
pub fn set_listener_orientation(&self, forward: vec3<f64>, up: vec3<f64>)
pub async fn load(&self, path: impl AsRef<Path>) -> Result<Sound>
pub async fn decode_bytes(&self, data: Vec<u8>) -> Result<Sound>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Audio
impl !RefUnwindSafe for Audio
impl !Send for Audio
impl !Sync for Audio
impl Unpin for Audio
impl !UnwindSafe for Audio
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