AudioWorkletGlobalScope extension type

The AudioWorkletGlobalScope 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 BaseAudioContext.audioWorklet property, which runs its code in a single AudioWorkletGlobalScope.

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.

on
Implemented types
Available extensions

Properties

currentFrame int
no setter
currentTime num
no setter
hashCode int
The hash code for this object.
no setterinherited
port MessagePort
no setter
renderQuantumSize int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate num
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerProcessor(String name, AudioWorkletProcessorConstructor processorCtor) → void
The registerProcessor method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified name.
toString() String
A string representation of this object.
inherited

Operators

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