[web-audio-api] Lack of Serialization Primitives & Introspection (#256)

The following issue was raised by the W3C TAG as part of their [review of the Web Audio API](https://github.com/w3ctag/spec-reviews/blob/master/2013/07/WebAudio.md)

### Lack of Serialization Primitives & Introspection

The IDL for the Web Audio node graph from any `AudioContext` doesn't define a serialization and there's no other way of easily cloning/walking an `AudioNode` graph. This lack of reflective API makes it deeply unlikely that systems can easily share graphs. This seems like a real drag on developer productivity. It also makes it difficult to clone some graph of processing from an `OfflineAudioContext` to a real-time context or vice-versa.

A `toString()` or `toJSON()` method on `AudioContext` combined with a reflection API over the node graph would solve the issue.


---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/256

Received on Thursday, 17 October 2013 12:30:38 UTC