ScriptProcessorNode Class

A node that processes its input with a script (https://webaudio.github.io/web-audio-api/#ScriptProcessorNode, deprecated): each time a buffer of input frames is collected, an audioprocess event gives it to the script with a buffer to fill, which is played two buffers later.

public sealed class ScriptProcessorNode : AudioNode

Remarks

The event is fired synchronously during the rendering, on the thread of the event loop.

See also

Inheritance
AudioNode ScriptProcessorNode

Properties

NameDescription
BufferSizeGets the number of frames of the buffers of the events.
OnAudioProcessGets or sets the event handler of the audioprocess event.

Gets the number of frames of the buffers of the events.

public int BufferSize { get; }

Gets or sets the event handler of the audioprocess event.

public Action<Event>? OnAudioProcess { get; set; }