Audio-ISSUE-3 (quinnirill): A way to destroy an AudioContext instance [Web Audio API]

Audio-ISSUE-3 (quinnirill): A way to destroy an AudioContext instance [Web Audio API]

http://www.w3.org/2011/audio/track/issues/3

Raised by: Jussi Kalliokoski
On product: Web Audio API

There should be a way to destroy an Audio Context. This is especially important because the number of AudioContexts is limited, and if the end developer is using multiple libraries that create these contexts, this will be a problem unless the libraries have a way to get rid of the AudioContext instance.

The ideal solution would be that AudioContexts would follow basic garbage collection rules and would be destroyed if there were no references to it, and currently the spec doesn't actually say anything about the garbage collection, so this is the expected behavior.

Relevant threads:
http://lists.w3.org/Archives/Public/public-audio/2012JanMar/0294.html
http://lists.w3.org/Archives/Public/public-audio/2012JanMar/0296.html
http://lists.w3.org/Archives/Public/public-audio/2012JanMar/0297.html

Received on Monday, 5 March 2012 17:28:12 UTC