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

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

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

Chris Wilson <cwilso@gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |cwilso@gmail.com

--- Comment #2 from Chris Wilson <cwilso@gmail.com> ---
Actually, I don't think the spec *is* very clear here, reconciling
loopStart/loopEnd with the duration parameter.

As I see it, loopStart/loopEnd are very oddly specified; the default values (0
and 0) would appear to loop a zero-length portion at the beginning of the
buffer.  Oddly, you can set loopEnd without loopStart, but you can't set
loopStart without setting loopEnd (despite "zero" seeming like a magic "length
of buffer" value).  I think this is a bug, also.

In general, the duration parameter is a useful shorthand, and I don't like
parameters that magically take no effect in "some" cases.  I think it is quite
possible to reconcile loopStart/loopEnd with the duration parameter, but you're
right that it is not reconciled today - in the addition of loopStart/loopEnd,
duration seems to have been forgotten for looping cases. 

Perhaps "if duration is specified, this will set
actualLoopEnd=max(buffer.length,loopStart+duration)"? (In spirit, at least -
haven't worked out the whole section rewording.)

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

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