pub struct AudioContext(/* private fields */);
Implementations§
Source§impl AudioContext
impl AudioContext
pub fn new() -> Result<Self>
pub fn destination(&self) -> AudioDestinationNode
pub fn listener(&self) -> AudioListener
pub async fn decode(&self, data: Vec<u8>) -> Result<AudioBuffer>
pub fn current_time(&self) -> f64
Auto Trait Implementations§
impl Freeze for AudioContext
impl RefUnwindSafe for AudioContext
impl Send for AudioContext
impl Sync for AudioContext
impl Unpin for AudioContext
impl UnwindSafe for AudioContext
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