Types

Link copied to clipboard
@Serializable
data class AudioListenerCreated(val listener: AudioListener) : WebAudioEvent

Notifies that the construction of an AudioListener has finished.

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

Notifies that a new AudioListener has been created.

Link copied to clipboard
@Serializable
data class AudioNodeCreated(val node: AudioNode) : WebAudioEvent

Notifies that a new AudioNode has been created.

Link copied to clipboard
@Serializable
data class AudioNodeWillBeDestroyed(val contextId: GraphObjectId, val nodeId: GraphObjectId) : WebAudioEvent

Notifies that an existing AudioNode has been destroyed.

Link copied to clipboard
@Serializable
data class AudioParamCreated(val param: AudioParam) : WebAudioEvent

Notifies that a new AudioParam has been created.

Link copied to clipboard
@Serializable
data class AudioParamWillBeDestroyed(val contextId: GraphObjectId, val nodeId: GraphObjectId, val paramId: GraphObjectId) : WebAudioEvent

Notifies that an existing AudioParam has been destroyed.

Link copied to clipboard
@Serializable
data class ContextChanged(val context: BaseAudioContext) : WebAudioEvent

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

Link copied to clipboard
@Serializable
data class ContextCreated(val context: BaseAudioContext) : WebAudioEvent

Notifies that a new BaseAudioContext has been created.

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

Notifies that an existing BaseAudioContext will be destroyed.

Link copied to clipboard
@Serializable
data class NodeParamConnected(val contextId: GraphObjectId, val sourceId: GraphObjectId, val destinationId: GraphObjectId, val sourceOutputIndex: Double? = null) : WebAudioEvent

Notifies that an AudioNode is connected to an AudioParam.

Link copied to clipboard
@Serializable
data class NodeParamDisconnected(val contextId: GraphObjectId, val sourceId: GraphObjectId, val destinationId: GraphObjectId, val sourceOutputIndex: Double? = null) : WebAudioEvent

Notifies that an AudioNode is disconnected to an AudioParam.

Link copied to clipboard
@Serializable
data class NodesConnected(val contextId: GraphObjectId, val sourceId: GraphObjectId, val destinationId: GraphObjectId, val sourceOutputIndex: Double? = null, val destinationInputIndex: Double? = null) : WebAudioEvent

Notifies that two AudioNodes are connected.

Link copied to clipboard
@Serializable
data class NodesDisconnected(val contextId: GraphObjectId, val sourceId: GraphObjectId, val destinationId: GraphObjectId, val sourceOutputIndex: Double? = null, val destinationInputIndex: Double? = null) : WebAudioEvent

Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.