chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.webaudio / WebAudioDomain

WebAudioDomain

class WebAudioDomain

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

Functions

audioListenerCreated

Notifies that the construction of an AudioListener has finished.

fun audioListenerCreated(): Flow<AudioListenerCreatedEvent>

audioListenerWillBeDestroyed

Notifies that a new AudioListener has been created.

fun audioListenerWillBeDestroyed(): Flow<AudioListenerWillBeDestroyedEvent>

audioNodeCreated

Notifies that a new AudioNode has been created.

fun audioNodeCreated(): Flow<AudioNodeCreatedEvent>

audioNodeWillBeDestroyed

Notifies that an existing AudioNode has been destroyed.

fun audioNodeWillBeDestroyed(): Flow<AudioNodeWillBeDestroyedEvent>

audioParamCreated

Notifies that a new AudioParam has been created.

fun audioParamCreated(): Flow<AudioParamCreatedEvent>

audioParamWillBeDestroyed

Notifies that an existing AudioParam has been destroyed.

fun audioParamWillBeDestroyed(): Flow<AudioParamWillBeDestroyedEvent>

contextChanged

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

fun contextChanged(): Flow<ContextChangedEvent>

contextCreated

Notifies that a new BaseAudioContext has been created.

fun contextCreated(): Flow<ContextCreatedEvent>

contextWillBeDestroyed

Notifies that an existing BaseAudioContext will be destroyed.

fun contextWillBeDestroyed(): Flow<ContextWillBeDestroyedEvent>

disable

Disables the WebAudio domain.

suspend fun disable(): Unit

enable

Enables the WebAudio domain and starts sending context lifetime events.

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<WebAudioEvent>

getRealtimeData

Fetch the realtime data from the registered contexts.

suspend fun getRealtimeData(input: GetRealtimeDataRequest): GetRealtimeDataResponse

nodeParamConnected

Notifies that an AudioNode is connected to an AudioParam.

fun nodeParamConnected(): Flow<NodeParamConnectedEvent>

nodeParamDisconnected

Notifies that an AudioNode is disconnected to an AudioParam.

fun nodeParamDisconnected(): Flow<NodeParamDisconnectedEvent>

nodesConnected

Notifies that two AudioNodes are connected.

fun nodesConnected(): Flow<NodesConnectedEvent>

nodesDisconnected

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

fun nodesDisconnected(): Flow<NodesDisconnectedEvent>