Re: AudioContext.createBuffer to create a buffer of size 0

On Thu, May 23, 2013 at 4:53 PM, Chris Rogers <crogers@google.com> wrote:

>
>
>
> On Thu, May 23, 2013 at 11:30 AM, Ehsan Akhgari <ehsan.akhgari@gmail.com>wrote:
>
>> I would like to modify the spec for AudioContext.createBuffer (the
>> non-decoding overload) to require the implementation to throw an exception
>> if the length passed in is 0.  Gecko currently doesn't handle this at all,
>> and WebKit/Blink throw SYNTAX_ERR.  I would like to move towards throwing
>> NOT_SUPPORTED_ERR for all of these types of error codes.  (Same for
>> unsupported sampling rate ranges, for example.)
>>
>> Does anyone object to doing that?
>>
>
> Sounds good to me.
>

Great, thanks! https://dvcs.w3.org/hg/audio/rev/09f8c94d400f

--
Ehsan
<http://ehsanakhgari.org/>

Received on Friday, 24 May 2013 00:45:44 UTC