Search code examples
javascriptwebkitweb-audio-api

web audio api: how to inspect the audio graph?


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.


Solution

  • 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.