BaseAudioContext class

The interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively. You wouldn't use directly — you'd use its features via one of these two inheriting interfaces. A can be a target of events, therefore it implements the EventTarget interface.

EventTarget

BaseAudioContext

Implemented types
Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

BaseAudioContext()
factory

Properties

audioWorklet AudioWorklet

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
currentTime double

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
destination AudioDestinationNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
hashCode int
The hash code for this object.
no setterinherited
listener AudioListener

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
onstatechange EventHandlerNonNull<Event>?

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate double

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
state AudioContextState

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

createAnalyser() AnalyserNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createBiquadFilter() BiquadFilterNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createBuffer(int numberOfChannels, int length, double sampleRate) AudioBuffer

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createBufferSource() AudioBufferSourceNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createChannelMerger([int? numberOfInputs = 6]) ChannelMergerNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createChannelSplitter([int? numberOfOutputs = 6]) ChannelSplitterNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createConstantSource() ConstantSourceNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createConvolver() ConvolverNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createDelay([double? maxDelayTime = 1.0]) DelayNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createDynamicsCompressor() DynamicsCompressorNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createGain() GainNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createIIRFilter(Iterable<double> feedforward, Iterable<double> feedback) IIRFilterNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createOscillator() OscillatorNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createPanner() PannerNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createPeriodicWave(Iterable<double> real, Iterable<double> imag, [PeriodicWaveConstraints? constraints]) PeriodicWave

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createScriptProcessor([int? bufferSize = 0, int? numberOfInputChannels = 2, int? numberOfOutputChannels = 2]) ScriptProcessorNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createStereoPanner() StereoPannerNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

createWaveShaper() WaveShaperNode

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

decodeAudioData(ByteBuffer audioData, [DecodeSuccessCallback? successCallback, DecodeErrorCallback? errorCallback]) Future<AudioBuffer>

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited