Struct web_audio_api::context::AudioContext[][src]

pub struct AudioContext { /* fields omitted */ }

This interface represents an audio graph whose AudioDestinationNode is routed to a real-time output device that produces a signal directed at the user.

Implementations

impl AudioContext[src]

pub fn new() -> Self[src]

Creates and returns a new AudioContext object. This will play live audio on the default output

pub fn suspend(&self)[src]

Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process.

pub fn resume(&self)[src]

Resumes the progression of time in an audio context that has previously been suspended/paused.

Trait Implementations

impl AsBaseAudioContext for AudioContext[src]

impl Default for AudioContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.