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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23007

            Bug ID: 23007
           Summary: Unclear semantics of duration param to
                    AudioBufferSourceNode.start()
    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:

  https://bugs.webkit.org/show_bug.cgi?id=111952

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

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