Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AudioListener(val listenerId: GraphObjectId, val contextId: GraphObjectId)

Protocol object for AudioListener

Link copied to clipboard
@Serializable
data class AudioNode(val nodeId: GraphObjectId, val contextId: GraphObjectId, val nodeType: NodeType, val numberOfInputs: Double, val numberOfOutputs: Double, val channelCount: Double, val channelCountMode: ChannelCountMode, val channelInterpretation: ChannelInterpretation)

Protocol object for AudioNode

Link copied to clipboard
@Serializable
data class AudioParam(val paramId: GraphObjectId, val nodeId: GraphObjectId, val contextId: GraphObjectId, val paramType: ParamType, val rate: AutomationRate, val defaultValue: Double, val minValue: Double, val maxValue: Double)

Protocol object for AudioParam

Link copied to clipboard
@Serializable
enum AutomationRate : Enum<AutomationRate>

Enum of AudioParam::AutomationRate from the spec

Link copied to clipboard
@Serializable
data class BaseAudioContext(val contextId: GraphObjectId, val contextType: ContextType, val contextState: ContextState, val realtimeData: ContextRealtimeData? = null, val callbackBufferSize: Double, val maxOutputChannelCount: Double, val sampleRate: Double)

Protocol object for BaseAudioContext

Link copied to clipboard
@Serializable
enum ChannelCountMode : Enum<ChannelCountMode>

Enum of AudioNode::ChannelCountMode from the spec

Link copied to clipboard

Enum of AudioNode::ChannelInterpretation from the spec

Link copied to clipboard
@Serializable
data class ContextRealtimeData(val currentTime: Double, val renderCapacity: Double, val callbackIntervalMean: Double, val callbackIntervalVariance: Double)

Fields in AudioContext that change in real-time.

Link copied to clipboard
@Serializable
enum ContextState : Enum<ContextState>

Enum of AudioContextState from the spec

Link copied to clipboard
@Serializable
enum ContextType : Enum<ContextType>

Enum of BaseAudioContext types

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the WebAudioDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the WebAudioDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class GetRealtimeDataRequest(val contextId: GraphObjectId)

Request object containing input parameters for the WebAudioDomain.getRealtimeData command.

Link copied to clipboard
@Serializable
data class GetRealtimeDataResponse(val realtimeData: ContextRealtimeData)

Response type for the WebAudioDomain.getRealtimeData command.

Link copied to clipboard
typealias GraphObjectId = String

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

Official doc

Link copied to clipboard
typealias NodeType = String

Enum of AudioNode types

Official doc

Link copied to clipboard
typealias ParamType = String

Enum of AudioParam types

Official doc

Link copied to clipboard

This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/