Skip to content

Commit

Permalink
Update files/zh-cn/web/api/baseaudiocontext/createanalyser/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: skyclouds2001 <[email protected]>
  • Loading branch information
Yukiniro and skyclouds2001 authored Nov 23, 2023
1 parent 0d35cfa commit 9b90d89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ createAnalyser()

## 示例

下面的例子展示了 AudioContext 创建分析器节点的基本用法,然后用 requestAnimationFrame() 来反复获取时域数据,并绘制出当前音频输入的“示波器风格”输出。更多完整示例/信息请查看[Voice-change-O-matic](https://mdn.github.io/voice-change-o-matic/) demo (中[app.js 的 108-193 行](https://github.com/mdn/webaudio-examples/tree/main/voice-change-o-matic/scripts/app.js#L108-L193)代码)
下面的例子展示了 AudioContext 创建分析器节点的基本用法,然后用 requestAnimationFrame() 来反复获取时域数据,并绘制出当前音频输入的“示波器风格”输出。更多完整示例/信息请查看 [Voice-change-O-matic](https://mdn.github.io/voice-change-o-matic/) 实例(参阅 [app.js 的 108-193 行](https://github.com/mdn/webaudio-examples/tree/main/voice-change-o-matic/scripts/app.js#L108-L193)代码)。

```js
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
Expand Down

0 comments on commit 9b90d89

Please sign in to comment.