Table of Contents

Class AudioProcessingEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
The AudioProcessingEvent interface of the Web Audio API represents events that occur when a ScriptProcessorNode input buffer is ready to be processed.
[Value("AudioProcessingEvent")]
public class AudioProcessingEvent : Event
Inheritance
AudioProcessingEvent
Inherited Members

Remarks

An audioprocess event with this interface is fired on a ScriptProcessorNode when audio processing is required. During audio processing, the input buffer is read and processed to produce output audio data, which is then written to the output buffer.

WARNING

This feature has been deprecated and should be replaced by an AudioWorklet.

-Using the Web Audio API

See also on MDN

Constructors

AudioProcessingEvent()

public AudioProcessingEvent()

AudioProcessingEvent(string, AudioProcessingEventInit)

IMPORTANT
Deprecated
The AudioProcessingEvent() constructor creates a new AudioProcessingEvent object.
public AudioProcessingEvent(string type, AudioProcessingEventInit eventInitDict)

Parameters

type string
eventInitDict AudioProcessingEventInit

Remarks

NOTE

Usually, this constructor is not directly called by your code, as the browser creates these objects itself and provides them to the event handler.

-AudioProcessingEvent
-ScriptProcessorNode

See also on MDN

Properties

InputBuffer

IMPORTANT
Deprecated
The inputBuffer read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event.
[Value("inputBuffer")]
public AudioBuffer InputBuffer { get; }

Property Value

AudioBuffer

An AudioBuffer object.

Remarks

The input buffer is represented by an AudioBuffer object, which contains a collection of audio channels, each of which is an array of floating-point values representing the audio signal waveform encoded as a series of amplitudes. The number of channels and the length of each channel are determined by the channel count and buffer size properties of the AudioBuffer.

-OutputBuffer
-ScriptProcessorNode

See also on MDN

OutputBuffer

IMPORTANT
Deprecated
The outputBuffer read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event.
[Value("outputBuffer")]
public AudioBuffer OutputBuffer { get; }

Property Value

AudioBuffer

An AudioBuffer object.

Remarks

The output buffer is represented by an AudioBuffer object, which contains a collection of audio channels, each of which is an array of floating-point values representing the audio signal waveform encoded as a series of amplitudes. The number of channels and the length of each channel are determined by the channel count and buffer size properties of the AudioBuffer.

-InputBuffer
-ScriptProcessorNode

See also on MDN

PlaybackTime

IMPORTANT
Deprecated
The playbackTime read-only property of the AudioProcessingEvent interface represents the time when the audio will be played. It is in the same coordinate system as the time used by the AudioContext.
[Value("playbackTime")]
public Number PlaybackTime { get; }

Property Value

Number

A number that doesn't need to be an integer.

Remarks