WebAudio Domain
This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/
Methods
Events
- WebAudio.audioListenerCreated
- WebAudio.audioListenerWillBeDestroyed
- WebAudio.audioNodeCreated
- WebAudio.audioNodeWillBeDestroyed
- WebAudio.audioParamCreated
- WebAudio.audioParamWillBeDestroyed
- WebAudio.contextChanged
- WebAudio.contextCreated
- WebAudio.contextWillBeDestroyed
- WebAudio.nodeParamConnected
- WebAudio.nodeParamDisconnected
- WebAudio.nodesConnected
- WebAudio.nodesDisconnected
Types
- WebAudio.AudioListener
- WebAudio.AudioNode
- WebAudio.AudioParam
- WebAudio.AutomationRate
- WebAudio.BaseAudioContext
- WebAudio.ChannelCountMode
- WebAudio.ChannelInterpretation
- WebAudio.ContextRealtimeData
- WebAudio.ContextState
- WebAudio.ContextType
- WebAudio.GraphObjectId
- WebAudio.NodeType
- WebAudio.ParamType
Methods
WebAudio.getRealtimeData #
Fetch the realtime data from the registered contexts.
Parameters
contextId
Return object
realtimeData
Events
WebAudio.audioListenerCreated #
Notifies that the construction of an AudioListener has finished.
Parameters
listener
WebAudio.audioListenerWillBeDestroyed #
Notifies that a new AudioListener has been created.
Parameters
contextId
listenerId
WebAudio.audioNodeWillBeDestroyed #
Notifies that an existing AudioNode has been destroyed.
Parameters
contextId
nodeId
WebAudio.audioParamWillBeDestroyed #
Notifies that an existing AudioParam has been destroyed.
Parameters
contextId
nodeId
paramId
WebAudio.contextChanged #
Notifies that existing BaseAudioContext has changed some properties (id stays the same)..
Parameters
context
WebAudio.contextWillBeDestroyed #
Notifies that an existing BaseAudioContext will be destroyed.
Parameters
contextId
WebAudio.nodeParamConnected #
Notifies that an AudioNode is connected to an AudioParam.
Parameters
contextId
sourceId
destinationId
sourceOutputIndex
Optional
number
WebAudio.nodeParamDisconnected #
Notifies that an AudioNode is disconnected to an AudioParam.
Parameters
contextId
sourceId
destinationId
sourceOutputIndex
Optional
number
WebAudio.nodesConnected #
Notifies that two AudioNodes are connected.
Parameters
contextId
sourceId
destinationId
sourceOutputIndex
Optional
number
destinationInputIndex
Optional
number
WebAudio.nodesDisconnected #
Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
Parameters
contextId
sourceId
destinationId
sourceOutputIndex
Optional
number
destinationInputIndex
Optional
number
Types
WebAudio.AudioListener #
Protocol object for AudioListener
Type: object
Properties
listenerId
contextId
WebAudio.AudioNode #
Protocol object for AudioNode
Type: object
Properties
nodeId
contextId
nodeType
numberOfInputs
number
numberOfOutputs
number
channelCount
number
channelCountMode
channelInterpretation
WebAudio.AudioParam #
Protocol object for AudioParam
Type: object
Properties
paramId
nodeId
contextId
paramType
rate
defaultValue
number
minValue
number
maxValue
number
WebAudio.AutomationRate #
Enum of AudioParam::AutomationRate from the spec
Type: string
Allowed values: a-rate
, k-rate
WebAudio.BaseAudioContext #
Protocol object for BaseAudioContext
Type: object
Properties
contextId
contextType
contextState
realtimeData
Optional
callbackBufferSize
number
Platform-dependent callback buffer size.
maxOutputChannelCount
number
Number of output channels supported by audio hardware in use.
sampleRate
number
Context sample rate.
WebAudio.ChannelCountMode #
Enum of AudioNode::ChannelCountMode from the spec
Type: string
Allowed values: clamped-max
, explicit
, max
WebAudio.ChannelInterpretation #
Enum of AudioNode::ChannelInterpretation from the spec
Type: string
Allowed values: discrete
, speakers
WebAudio.ContextRealtimeData #
Fields in AudioContext that change in real-time.
Type: object
Properties
currentTime
number
The current context time in second in BaseAudioContext.
renderCapacity
number
The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.
callbackIntervalMean
number
A running mean of callback interval.
callbackIntervalVariance
number
A running variance of callback interval.
WebAudio.ContextState #
Enum of AudioContextState from the spec
Type: string
Allowed values: suspended
, running
, closed
WebAudio.GraphObjectId #
An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
Type: string