Methods

Chrome DevTools

WebAudio.disable #

Disables the WebAudio domain.


Chrome DevTools

WebAudio.enable #

Enables the WebAudio domain and starts sending context lifetime events.


Chrome DevTools

WebAudio.getRealtimeData #

Fetch the realtime data from the registered contexts.

Parameters

contextId

Return object

realtimeData

Events

Chrome DevTools

WebAudio.audioListenerCreated #

Notifies that the construction of an AudioListener has finished.

Parameters

listener

Chrome DevTools

WebAudio.audioListenerWillBeDestroyed #

Notifies that a new AudioListener has been created.

Parameters

contextId
listenerId

Chrome DevTools

WebAudio.audioNodeCreated #

Notifies that a new AudioNode has been created.

Parameters


Chrome DevTools

WebAudio.audioNodeWillBeDestroyed #

Notifies that an existing AudioNode has been destroyed.

Parameters

contextId

Chrome DevTools

WebAudio.audioParamCreated #

Notifies that a new AudioParam has been created.

Parameters


Chrome DevTools

WebAudio.audioParamWillBeDestroyed #

Notifies that an existing AudioParam has been destroyed.

Parameters

contextId

Chrome DevTools

WebAudio.contextChanged #

Notifies that existing BaseAudioContext has changed some properties (id stays the same)..

Parameters


Chrome DevTools

WebAudio.contextCreated #

Notifies that a new BaseAudioContext has been created.

Parameters


Chrome DevTools

WebAudio.contextWillBeDestroyed #

Notifies that an existing BaseAudioContext will be destroyed.

Parameters

contextId

Chrome DevTools

WebAudio.nodeParamConnected #

Notifies that an AudioNode is connected to an AudioParam.

Parameters

contextId
sourceId
destinationId
sourceOutputIndex
Optional
number

Chrome DevTools

WebAudio.nodeParamDisconnected #

Notifies that an AudioNode is disconnected to an AudioParam.

Parameters

contextId
sourceId
destinationId
sourceOutputIndex
Optional
number

Chrome DevTools

WebAudio.nodesConnected #

Notifies that two AudioNodes are connected.

Parameters

contextId
sourceId
destinationId
sourceOutputIndex
Optional
number
destinationInputIndex
Optional
number

Chrome DevTools

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

Chrome DevTools

WebAudio.AudioListener #

Protocol object for AudioListener

Type: object

Properties

listenerId
contextId

Chrome DevTools

WebAudio.AudioNode #

Protocol object for AudioNode

Type: object

Properties

contextId
nodeType
numberOfInputs
number
numberOfOutputs
number
channelCount
number
channelCountMode
channelInterpretation

Chrome DevTools

WebAudio.AudioParam #

Protocol object for AudioParam

Type: object

Properties

contextId
paramType
defaultValue
number
minValue
number
maxValue
number

Chrome DevTools

WebAudio.AutomationRate #

Enum of AudioParam::AutomationRate from the spec

Type: string

Allowed values: a-rate, k-rate


Chrome DevTools

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.


Chrome DevTools

WebAudio.ChannelCountMode #

Enum of AudioNode::ChannelCountMode from the spec

Type: string

Allowed values: clamped-max, explicit, max


Chrome DevTools

WebAudio.ChannelInterpretation #

Enum of AudioNode::ChannelInterpretation from the spec

Type: string

Allowed values: discrete, speakers


Chrome DevTools

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.


Chrome DevTools

WebAudio.ContextState #

Enum of AudioContextState from the spec

Type: string

Allowed values: suspended, running, closed


Chrome DevTools

WebAudio.ContextType #

Enum of BaseAudioContext types

Type: string

Allowed values: realtime, offline


Chrome DevTools

WebAudio.GraphObjectId #

An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API

Type: string


Chrome DevTools

WebAudio.NodeType #

Enum of AudioNode types

Type: string


Chrome DevTools

WebAudio.ParamType #

Enum of AudioParam types

Type: string