Struct web_audio_api::context::AudioContext [−][src]
pub struct AudioContext { /* fields omitted */ }
Expand description
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
Creates and returns a new AudioContext
object.
This will play live audio on the default output
Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process.
Panics
Will panic if:
- The audio device is not available
- For a
BackendSpecificError
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
fn create_audio_param(
&self,
opts: AudioParamOptions,
dest: &AudioNodeId
) -> (AudioParam, AudioParamId)
fn create_audio_param(
&self,
opts: AudioParamOptions,
dest: &AudioNodeId
) -> (AudioParam, AudioParamId)
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