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 sourceOutputIndexOptional
numberWebAudio.nodeParamDisconnected #
Notifies that an AudioNode is disconnected to an AudioParam.
Parameters
contextId sourceId destinationId sourceOutputIndexOptional
numberWebAudio.nodesConnected #
Notifies that two AudioNodes are connected.
Parameters
contextId sourceId destinationId sourceOutputIndexOptional
numberdestinationInputIndexOptional
numberWebAudio.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 sourceOutputIndexOptional
numberdestinationInputIndexOptional
numberTypes
WebAudio.AudioListener #
Protocol object for AudioListener
Type: object
Properties
listenerId contextId WebAudio.AudioNode #
Protocol object for AudioNode
Type: object
Properties
nodeId contextId nodeType numberOfInputs numbernumberOfOutputs numberchannelCount numberchannelCountMode channelInterpretation WebAudio.AudioParam #
Protocol object for AudioParam
Type: object
Properties
paramId nodeId contextId paramType rate defaultValue numberminValue numbermaxValue numberWebAudio.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 realtimeDataOptional
callbackBufferSize numberPlatform-dependent callback buffer size.
maxOutputChannelCount numberNumber of output channels supported by audio hardware in use.
sampleRate numberContext 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 numberThe current context time in second in BaseAudioContext.
renderCapacity numberThe 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 numberA running mean of callback interval.
callbackIntervalVariance numberA running variance of callback interval.
WebAudio.ContextState #
Enum of AudioContextState from the spec
Type: string
Allowed values: suspended, running, closed, interrupted
WebAudio.GraphObjectId #
An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
Type: string