AudioWorkletGlobalScope Class
The global scope of an AudioWorkletGlobalScope.AudioWorklet (https://webaudio.github.io/web-audio-api/#AudioWorkletGlobalScope): the module scripts register the AudioWorkletProcessor classes with AudioWorkletGlobalScope.RegisterProcessor.
public sealed class AudioWorkletGlobalScope : WorkletGlobalScope- Inheritance
WorkletGlobalScopeAudioWorkletGlobalScope
Properties
| Name | Description |
|---|---|
| CurrentFrame | Gets the frame of the render quantum being processed. |
| CurrentTime | Gets the time of the render quantum being processed. |
| Port | Gets the port connected to the port of the AudioWorkletGlobalScope.AudioWorklet. |
| RenderQuantumSize | Gets the render quantum size of the context. |
| SampleRate | Gets the sample rate of the context. |
CurrentFrame
AudioWorklet.csGets the frame of the render quantum being processed.
public ulong CurrentFrame { get; }Property value
See also
CurrentTime
AudioWorklet.csGets the time of the render quantum being processed.
public double CurrentTime { get; }Property value
See also
Port
AudioWorklet.csGets the port connected to the port of the AudioWorkletGlobalScope.AudioWorklet.
public MessagePort Port { get; }Property value
See also
RenderQuantumSize
AudioWorklet.csGets the render quantum size of the context.
public uint RenderQuantumSize { get; }SampleRate
AudioWorklet.csMethods
| Name | Description |
|---|---|
| RegisterProcessor(string, WorkletClassConstructor) | Registers a class derived from AudioWorkletProcessor under a name. |
RegisterProcessor(string, WorkletClassConstructor)
AudioWorklet.csRegisters a class derived from AudioWorkletProcessor under a name.
public void RegisterProcessor(string name, WorkletClassConstructor processorCtor)Parameters
namestringprocessorCtorWorkletClassConstructor
Exceptions
DomException- The name is empty or already registered, or a parameter descriptor is not valid (a
NotSupportedErroror anInvalidStateError).