Class AudioWorkletProcessor
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The AudioWorkletProcessor interface of the Web Audio API represents an audio processing code behind a custom AudioWorkletNode. It lives in the AudioWorkletGlobalScope and runs on the Web Audio rendering thread. In turn, an AudioWorkletNode based on it runs on the main thread.
[Value("AudioWorkletProcessor")]
public class AudioWorkletProcessor
- Inheritance
-
AudioWorkletProcessor
- Inherited Members
Remarks
Constructors
AudioWorkletProcessor()
The AudioWorkletProcessor()
constructor creates a new AudioWorkletProcessor object, which
represents an underlying audio processing mechanism of an
AudioWorkletNode.
public AudioWorkletProcessor()
Remarks
NOTE
The
AudioWorkletProcessorand classes that derive from it
cannot be instantiated directly from a user-supplied code. Instead, they are created
only internally by the creation of an associated AudioWorkletNode.
-AudioWorkletNode interface
Properties
Port
The read-only port property of the
AudioWorkletProcessor interface returns the associated
MessagePort. It can be used to communicate between the processor and the
AudioWorkletNode to which it belongs.
[Value("port")]
public MessagePort Port { get; }
Property Value
- MessagePort
The MessagePort object that is connecting the
AudioWorkletProcessorand the associatedAudioWorkletNode.
Remarks
NOTE
The port at the other end of the channel is
available under the Port property of the node.