Module web_audio_api::node
source · Expand description
The AudioNode interface and concrete types
Structs§
AnalyserNoderepresents a node able to provide real-time frequency and time-domain analysis information.- Options for constructing an
AnalyserNode AudioBufferSourceNoderepresents an audio source that consists of an in-memory audio source (i.e. an audio file completely loaded in memory), stored in anAudioBuffer.- Options for constructing an
AudioBufferSourceNode - The AudioDestinationNode interface represents the terminal node of an audio graph in a given context. usually the speakers of your device, or the node that will “record” the audio data with an OfflineAudioContext.
- BiquadFilterNode is an AudioNode processor implementing very common low-order IIR filters.
- Options for constructing a
BiquadFilterNode - Config for up/down-mixing of input channels for audio nodes
- Options that can be used in constructing all AudioNodes.
- AudioNode for combining channels from multiple audio streams into a single audio stream.
- Options for constructing a
ChannelMergerNode - AudioNode for accessing the individual channels of an audio stream in the routing graph
- Options for constructing a
ChannelSplitterNode - Audio source whose output is nominally a constant value. A
ConstantSourceNodecan be used as a constructibleAudioParamby automating the value of its offset. - Options for constructing an
ConstantSourceNode - Processing node which applies a linear convolution effect given an impulse response.
ConvolverNodeoptions- Node that delays the incoming audio signal by a certain amount
- Options for constructing a
DelayNode DynamicsCompressorNodeprovides a compression effect.- Options for constructing a
DynamicsCompressorNode - AudioNode for volume control
- Options for constructing a
GainNode - IIRFilterNode is an AudioNode processor implementing a general IIR (infinite impulse response)Filter.
- Options for constructing a
IIRFilterNode - An audio source from an
<audio>element - Options for constructing a
MediaElementAudioSourceNode - An audio stream destination (e.g. WebRTC sink)
- An audio source from a
MediaStream(e.g. microphone input) - Options for constructing a
MediaStreamAudioSourceNode - An audio source from a
MediaStreamTrack(e.g. the audio track of the microphone input) - Options for constructing a
MediaStreamTrackAudioSourceNode OscillatorNoderepresents an audio source generating a periodic waveform. It can generate a few common waveforms (i.e. sine, square, sawtooth, triangle), or can be set to an arbitrary periodic waveform using aPeriodicWaveobject.- Options for constructing an
OscillatorNode PannerNodepositions / spatializes an incoming audio stream in three-dimensional space.- Options for constructing a
PannerNode StereoPannerNodepositions an incoming audio stream in a stereo image- Options for constructing a
StereoPannerOptions WaveShaperNodeallows to apply non-linear distortion effect on a audio signal. Arbitrary non-linear shaping curves may be specified.WaveShaperNodeoptions
Enums§
- Biquad filter types
- How channels must be matched between the node’s inputs and outputs.
- The meaning of the channels, defining how audio up-mixing and down-mixing will happen.
- Algorithm to reduce the volume of an audio source as it moves away from the listener
- Type of the waveform rendered by an
OscillatorNode - enumerates the oversampling rate available for
WaveShaperNode - Spatialization algorithm used to position the audio in 3D space
Traits§
- This interface represents audio sources, the audio destination, and intermediate processing modules.
- Interface of source nodes, controlling start and stop times. The node will emit silence before it is started, and after it has ended.