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

pub struct BaseAudioContext { /* fields omitted */ }
Expand description

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

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

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.

Number of channels for the audio destination

Construct a new pair of node::AudioNode and AudioProcessor

The AudioNode lives in the user-facing control thread. The Processor is sent to the render thread.

Panics

Will panic if:

  • Message send to the render thread is not received in less than 10 ms

Trait Implementations

retrieves the BaseAudioContext associated with the concrete AudioContext

Creates an OscillatorNode, a source representing a periodic waveform. It basically generates a tone. Read more

Creates an StereoPannerNode to pan a stereo output

Creates an GainNode, to control audio volume

Creates an ConstantSourceNode, a source representing a constant value

Creates an IirFilterNode Read more

Creates a DelayNode, delaying the audio signal

Creates an BiquadFilterNode which implements a second order filter

Creates a WaveShaperNode

Creates a ChannelSplitterNode

Creates a ChannelMergerNode

Creates a MediaStreamAudioSourceNode from a MediaElement

Creates a MediaElementAudioSourceNode from a MediaElement Read more

Creates an AudioBufferSourceNode Read more

Creates a PannerNode

Creates a AnalyserNode

Creates a periodic wave

Create an AudioParam. Read more

Returns an AudioDestinationNode representing the final destination of all audio in the context. It can be thought of as the audio-rendering device. Read more

Returns the AudioListener which is used for 3D spatialization

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

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. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.