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

[web-audio-api] Specify what should happen when passing invalid offset/duration values to AudioBufferSourceNode.start (#18)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:27:40 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/18@github.com>
> Originally reported on W3C Bugzilla [ISSUE-21240](https://www.w3.org/Bugs/Public/show_bug.cgi?id=21240) Sun, 10 Mar 2013 17:10:27 GMT
> Reported by Ehsan Akhgari [:ehsan]
> Assigned to 

Created attachment 1331 [details]
Test case

We need to specify what happens when these values are invalid, for example, negative, or greater than the length of the buffer.

Currently, WebKit ignores offset if it's negative but smaller than the length of the buffer, and in that case respects duration.  If a value larger than the length of the buffer is passed as offset, then WebKit ignores both offset and duration.  It would have probably made much more sense if these kinds of invalid values would throw DOM_SYNTAX_ERR as these are probably not what the author would intend to pass in.

Reply to this email directly or view it on GitHub:
Received on Wednesday, 11 September 2013 14:29:01 UTC

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