This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Audio-ISSUE-48 (AudioBufferSimpl): AudioBuffer simplification [Web Audio API] http://www.w3.org/2011/audio/track/issues/48 Raised by: Philip Jägenstedt On product: Web Audio API The duration attribute fills no purpose, as it can be calculated trivially from sampleRate and length. In fact, the interface can be reduced to: interface AudioBuffer { readonly attribute float sampleRate; Float32Array[] data; } The number of channels is data.length and the number of samples is data[0].length. The name data was picked for consistency with the ImageData interface from the 2D canvas context.
We should hold off on this issue until the current discussions concerning "data races" are resolved.
(In reply to comment #1) > We should hold off on this issue until the current discussions concerning > "data races" are resolved. Agreed. I'm adding a bugzilla entry to track/record the discussions on the race condition issue, and will add appropriate dependency link.
Web Audio API issues have been migrated to Github. See https://github.com/WebAudio/web-audio-api/issues
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.