Definition
Web Audio API 1.1 defines AudioWorkletGlobalScope
[Global=(Worklet, AudioWorklet), Exposed=AudioWorklet]
interface AudioWorkletGlobalScope : WorkletGlobalScope {
undefined registerProcessor (DOMString name,
AudioWorkletProcessorConstructor processorCtor);
readonly attribute unsigned long long currentFrame;
readonly attribute double currentTime;
readonly attribute float sampleRate;
readonly attribute unsigned long renderQuantumSize;
readonly attribute MessagePort port;
};
This interface is extended in the following specifications:
- High Resolution Time
partial interface AudioWorkletGlobalScope { [Replaceable] readonly attribute WorkletPerformance performance; };
Consolidated IDL (across mixin and partials)
[Global=(Worklet, AudioWorklet), Exposed=AudioWorklet]
interface AudioWorkletGlobalScope : WorkletGlobalScope {
undefined registerProcessor (DOMString name,
AudioWorkletProcessorConstructor processorCtor);
readonly attribute unsigned long long currentFrame;
readonly attribute double currentTime;
readonly attribute float sampleRate;
readonly attribute unsigned long renderQuantumSize;
readonly attribute MessagePort port;
[Replaceable] readonly attribute WorkletPerformance performance;
};Referring specifications
- High Resolution Time refers to
AudioWorkletGlobalScope