AudioWorkletGlobalScope class

The interface of the Web Audio API represents a global execution context for user-supplied code, which defines custom AudioWorkletProcessor-derived classes. Each BaseAudioContext has a single AudioWorklet available under the audioWorklet property, which runs its code in a single . As the global execution context is shared across the current BaseAudioContext, it's possible to define any other variables and perform any actions allowed in worklets — apart from defining AudioWorkletProcessor-derived classes.

WorkletGlobalScope

AudioWorkletGlobalScope

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

Constructors

AudioWorkletGlobalScope()
factory

Properties

currentFrame → int

Available on AudioWorkletGlobalScope, provided by the PropsAudioWorkletGlobalScope extension

no setter
currentTime → double

Available on AudioWorkletGlobalScope, provided by the PropsAudioWorkletGlobalScope extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRate → double

Available on AudioWorkletGlobalScope, provided by the PropsAudioWorkletGlobalScope extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerProcessor(String name, AudioWorkletProcessorConstructor processorCtor) → void

Available on AudioWorkletGlobalScope, provided by the PropsAudioWorkletGlobalScope extension

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

Operators

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