OfflineAudioContext class

An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext 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.

MDN Reference

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

Constructors

OfflineAudioContext.$1()
factory
OfflineAudioContext.$2(OfflineAudioContextOptions contextOptions)
factory
OfflineAudioContext.$3(num numberOfChannels, num length, num sampleRate)
factory

Properties

addEventListener → ({void Function<K$>(OfflineAudioContextEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

Overload accessor: $1, $2
no setter
addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
addEventListener → ({void Function<K$>(BaseAudioContextEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

Overload accessor: $1, $2
no setter
audioWorklet AudioWorklet

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

Available only in secure contexts.
no setter
createAnalyser AnalyserNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createBiquadFilter BiquadFilterNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createBuffer AudioBuffer Function(num, num, num)

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createBufferSource AudioBufferSourceNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createChannelMerger ChannelMergerNode Function([num?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createChannelSplitter ChannelSplitterNode Function([num?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createConstantSource ConstantSourceNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createConvolver ConvolverNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createDelay DelayNode Function([num?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createDynamicsCompressor DynamicsCompressorNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createGain GainNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createIIRFilter IIRFilterNode Function(List<num>, List<num>)

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createOscillator OscillatorNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createPanner PannerNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createPeriodicWave PeriodicWave Function(Object, Object, [PeriodicWaveConstraints?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createScriptProcessor ScriptProcessorNode Function([num?, num?, num?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createStereoPanner StereoPannerNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
createWaveShaper WaveShaperNode Function()

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
currentTime num

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
no setter
decodeAudioData Future<AudioBuffer> Function(ByteBuffer, [DecodeSuccessCallback?, DecodeErrorCallback?])

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

getter/setter pair
destination AudioDestinationNode

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
no setter
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length num

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

MDN Reference
no setter
listener AudioListener

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
no setter
oncomplete ↔ dynamic Function(OfflineAudioCompletionEvent)?

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

MDN Reference
getter/setter pair
onstatechange ↔ dynamic Function(Event)?

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
getter/setter pair
removeEventListener → ({void Function<K$>(BaseAudioContextEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

Overload accessor: $1, $2
no setter
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
removeEventListener → ({void Function<K$>(OfflineAudioContextEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

Overload accessor: $1, $2
no setter
resume Future<void> Function()

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

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

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
no setter
startRendering Future<AudioBuffer> Function()

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

getter/setter pair
state AudioContextState

Available on BaseAudioContext, provided by the BaseAudioContext$Typings extension

MDN Reference
no setter
suspend Future<void> Function(num)

Available on OfflineAudioContext, provided by the OfflineAudioContext$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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