OfflineAudioContext class

The interface is an AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.

EventTarget

BaseAudioContext

OfflineAudioContext

Implemented types
Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

OfflineAudioContext([int? numberOfChannels, int? length, double? sampleRate])
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
length → int

Available on OfflineAudioContext, provided by the PropsOfflineAudioContext extension

no setter
listener → AudioListener

Available on BaseAudioContext, provided by the PropsBaseAudioContext extension

no setter
oncomplete ↔ EventHandlerNonNull<Event>?

Available on OfflineAudioContext, provided by the PropsOfflineAudioContext extension

getter/setter pair
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

resume() → Future<void>

Available on OfflineAudioContext, provided by the PropsOfflineAudioContext extension

startRendering() → Future<AudioBuffer>

Available on OfflineAudioContext, provided by the PropsOfflineAudioContext extension

suspend(double suspendTime) → Future<void>

Available on OfflineAudioContext, provided by the PropsOfflineAudioContext extension

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

Operators

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