This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17341 - (AudioBufferSimpl): AudioBuffer simplification
Summary: (AudioBufferSimpl): AudioBuffer simplification
Status: CLOSED WONTFIX
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on: 22725
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-05 11:34 UTC by Philip Jägenstedt
Modified: 2014-10-28 17:16 UTC (History)
5 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-06-05 11:34:05 UTC
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.
Comment 1 Jer Noble 2013-07-18 15:32:50 UTC
We should hold off on this issue until the current discussions concerning "data races" are resolved.
Comment 2 Olivier Thereaux 2013-07-18 15:41:26 UTC
(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.
Comment 3 Olivier Thereaux 2014-10-28 17:13:49 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 4 Olivier Thereaux 2014-10-28 17:16:43 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.