AudioProcessingEvent
The Web Audio API (en-US) AudioProcessingEvent
represents events that occur when a ScriptProcessorNode
input buffer is ready to be processed.
Note: As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by Audio Workers.
プロパティ
The list below includes the properties inherited from its parent, Event
.
プロパティ | 型 | 説明 |
---|---|---|
target 読取専用 |
EventTarget |
The event target (the topmost target in the DOM tree). |
type 読取専用 |
DOMString |
The type of event. |
bubbles 読取専用 |
boolean |
Does the event normally bubble? |
cancelable 読取専用 |
boolean |
Is it possible to cancel the event? |
playbackTime 読取専用 |
double |
The time when the audio will be played, as defined by the time of AudioContext.currentTime |
inputBuffer 読取専用 |
AudioBuffer |
The buffer containing the input audio data to be processed. The number of channels is defined as a parameter, numberOfInputChannels , of the factory method AudioContext.createScriptProcessor() . Note the the returned AudioBuffer is only valid in the scope of the onaudioprocess function. |
outputBuffer 読取専用 |
AudioBuffer |
The buffer where the output audio data should be written. The number of channels is defined as a parameter, numberOfOutputChannels , of the factory method AudioContext.createScriptProcessor() . Note the the returned AudioBuffer is only valid in the scope of the onaudioprocess function. |
Example
{{page("/en-US/docs/Web/API/AudioContext.createScriptProcessor","Example")}}
Specifications
Specification | Status | Comment |
---|---|---|
Web Audio API AudioProcessingEvent の定義 |
勧告 |
Browser compatibility
BCD tables only load in the browser