Struct web_audio_api::context::BaseAudioContext[][src]

pub struct BaseAudioContext { /* fields omitted */ }

The BaseAudioContext interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode. An audio context controls both the creation of the nodes it contains and the execution of the audio processing, or decoding.

Implementations

impl BaseAudioContext[src]

pub fn sample_rate(&self) -> SampleRate[src]

The sample rate (in sample-frames per second) at which the AudioContext handles audio.

pub fn current_time(&self) -> f64[src]

This is the time in seconds of the sample frame immediately following the last sample-frame in the block of audio most recently processed by the context’s rendering graph.

pub fn channels(&self) -> u32[src]

Number of channels for the audio destination

Trait Implementations

impl AsBaseAudioContext for BaseAudioContext[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.