ISSUE-48: (Bugzilla 17341) AudioBuffer simplification
AudioBufferSimpl
(Bugzilla 17341) AudioBuffer simplification
- State:
- CLOSED
- Product:
- Web Audio API
- Raised by:
- Philip Jägenstedt
- Opened on:
- 2012-05-15
- Description:
- 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. - Related Actions Items:
- No related actions
- Related emails:
- [web-audio-api] (AudioBufferSimpl): AudioBuffer simplification (#80) (from notifications@github.com on 2013-09-11)
- Re: Summary of issues (from crogers@google.com on 2012-05-22)
- Summary of issues (from mage@opera.com on 2012-05-22)
- Re: Missing information in the Web Audio spec (from philipj@opera.com on 2012-05-16)
- Audio-ISSUE-48 (AudioBufferSimpl): AudioBuffer simplification [Web Audio API] (from sysbot+tracker@w3.org on 2012-05-15)
Related notes:
[MikeSmith]: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17341
5 Jun 2012, 13:53:36Display change log