最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - web audio api: how to inspect the audio graph? - Stack Overflow

programmeradmin5浏览0评论

The Web Audio Api specification says:

[...] AudioContext interface, which contains an audio signal graph representing connections betweens AudioNodes.

I have a project with +/- 30 nodes connected nodes.
I am trying to write tests to check if the setup of the graph is correct. Therefore I need to inspect the resulting graph.
However, I have not been able to access/inspect the final graph, nor to find information on how to do it.

The Web Audio Api specification says:

[...] AudioContext interface, which contains an audio signal graph representing connections betweens AudioNodes.

I have a project with +/- 30 nodes connected nodes.
I am trying to write tests to check if the setup of the graph is correct. Therefore I need to inspect the resulting graph.
However, I have not been able to access/inspect the final graph, nor to find information on how to do it.

Share Improve this question asked Jan 26, 2013 at 10:01 kr1kr1 7,4851 gold badge29 silver badges30 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 5

You can use the Web Audio Inspector Chrome extension.

Firefox has a Web Audio inspector that you can use for this. Enable it in your developer tools and you can get a graph of all the connected nodes. You can even modify the properties of nodes such as biquad filters.

https://hacks.mozilla/2014/06/introducing-the-web-audio-editor-in-firefox-developer-tools/

There actually is no way to directly inspect the graph; you need to maintain your own pointers, etc. to inspect the graph. This is partly to encourage/enable good garbage collection behavior.

发布评论

评论列表(0)

  1. 暂无评论