W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

[Bug 23007] New: Unclear semantics of duration param to AudioBufferSourceNode.start()

From: <bugzilla@jessica.w3.org>
Date: Mon, 19 Aug 2013 14:38:11 +0000
To: public-audio@w3.org
Message-ID: <bug-23007-5429@http.www.w3.org/Bugs/Public/>

            Bug ID: 23007
           Summary: Unclear semantics of duration param to
    Classification: Unclassified
           Product: AudioWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Audio API
          Assignee: crogers@google.com
          Reporter: joe@noteflight.com
        QA Contact: public-audio@w3.org

One reading of the optional "duration" parameter AudioBufferSourceNode.start()
is that it is a kind of syntactic sugar in which

   node.start(startTime, offset, duration);

behaves the same as:

   node.start(startTime, offset);
   node.stop(startTime + duration, offset);

Another view is that the duration paramter has slightly different semantics
from the stop/start delta, although exactly how it differs is unclear. Gecko's
interpretation is reflected in this WebKit bug:


which states that the duration parameter is ignored if the buffer is in loop

My feeling is that the syntactic-sugar interpretation (duration is equivalent
stop/start delta) is the cleanest, most obvious behavior and was probably the
original intention of the parameter, however objectionable the sugar flavoring
may be.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 19 August 2013 14:38:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:23 UTC