Class AudioProcessingEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
IMPORTANT
DeprecatedAudioProcessingEvent 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.
Constructors
AudioProcessingEvent()
public AudioProcessingEvent()
AudioProcessingEvent(string, AudioProcessingEventInit)
IMPORTANT
DeprecatedAudioProcessingEvent() constructor creates a new AudioProcessingEvent object.
public AudioProcessingEvent(string type, AudioProcessingEventInit eventInitDict)
Parameters
typestringeventInitDictAudioProcessingEventInit
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.
Properties
InputBuffer
IMPORTANT
DeprecatedinputBuffer 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
IMPORTANT
DeprecatedoutputBuffer 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.
PlaybackTime
IMPORTANT
DeprecatedplaybackTime 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.