WebAudio🧪
该域允许检查Web Audio API。https://webaudio.github.io/web-audio-api/
EN
This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/
✅️️ Methods
🔨WebAudio.disable
禁用WebAudio域。
EN
Disables the WebAudio domain.
🔨WebAudio.enable
启用WebAudio域并开始发送上下文生命周期事件。
EN
Enables the WebAudio domain and starts sending context lifetime events.
🔨WebAudio.getRealtimeData
从已注册的上下文中获取实时数据。
EN
Fetch the realtime data from the registered contexts.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| realtimeData | ContextRealtimeData |
✅️️ Events
👋WebAudio.audioListenerCreated
通知 AudioListener 的构建已完成。
EN
Notifies that the construction of an AudioListener has finished.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| listener | ✔️ | AudioListener |
👋WebAudio.audioListenerWillBeDestroyed
通知已创建新的音频监听器(AudioListener)。
EN
Notifies that a new AudioListener has been created.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| listenerId | ✔️ | GraphObjectId |
👋WebAudio.audioNodeCreated
通知新的AudioNode已被创建。
EN
Notifies that a new AudioNode has been created.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| node | ✔️ | AudioNode |
👋WebAudio.audioNodeWillBeDestroyed
通知现有AudioNode 已被销毁。
EN
Notifies that an existing AudioNode has been destroyed.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| nodeId | ✔️ | GraphObjectId |
👋WebAudio.audioParamCreated
通知新的AudioParam已被创建。
EN
Notifies that a new AudioParam has been created.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| param | ✔️ | AudioParam |
👋WebAudio.audioParamWillBeDestroyed
通知现有AudioParam已被销毁。
EN
Notifies that an existing AudioParam has been destroyed.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| nodeId | ✔️ | GraphObjectId | |||
| paramId | ✔️ | GraphObjectId |
👋WebAudio.contextChanged
通知现有BaseAudioContext已更改某些属性(id保持不变)。
EN
Notifies that existing BaseAudioContext has changed some properties (id stays the same)..
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| context | ✔️ | BaseAudioContext |
👋WebAudio.contextCreated
通知已创建新的BaseAudioContext。
EN
Notifies that a new BaseAudioContext has been created.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| context | ✔️ | BaseAudioContext |
👋WebAudio.contextWillBeDestroyed
通知一个现有的BaseAudioContext将被销毁。
EN
Notifies that an existing BaseAudioContext will be destroyed.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId |
👋WebAudio.nodeParamConnected
通知一个AudioNode已连接到一个AudioParam。
EN
Notifies that an AudioNode is connected to an AudioParam.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| sourceId | ✔️ | GraphObjectId | |||
| destinationId | ✔️ | GraphObjectId | |||
| sourceOutputIndex | number |
👋WebAudio.nodeParamDisconnected
通知一个AudioNode已断开与AudioParam的连接。
EN
Notifies that an AudioNode is disconnected to an AudioParam.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| sourceId | ✔️ | GraphObjectId | |||
| destinationId | ✔️ | GraphObjectId | |||
| sourceOutputIndex | number |
👋WebAudio.nodesConnected
通知两个AudioNode已连接。
EN
Notifies that two AudioNodes are connected.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| sourceId | ✔️ | GraphObjectId | |||
| destinationId | ✔️ | GraphObjectId | |||
| sourceOutputIndex | number | ||||
| destinationInputIndex | number |
👋WebAudio.nodesDisconnected
通知AudioNodes已断开连接。目标可以为null,这意味着源的所有输出连接都已断开。
EN
Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| contextId | ✔️ | GraphObjectId | |||
| sourceId | ✔️ | GraphObjectId | |||
| destinationId | ✔️ | GraphObjectId | |||
| sourceOutputIndex | number | ||||
| destinationInputIndex | number |