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

[Bug 17368] (OscillatorTypeException): Setting Oscillator.type to CUSTOM should throw an exception

From: <bugzilla@jessica.w3.org>
Date: Sun, 08 Sep 2013 00:04:41 +0000
To: public-audio@w3.org
Message-ID: <bug-17368-5429-qnJsZfL70v@http.www.w3.org/Bugs/Public/>

Ralph Giles <giles@mozilla.com> changed:

           What    |Removed                     |Added
                 CC|                            |giles@mozilla.com

--- Comment #1 from Ralph Giles <giles@mozilla.com> ---
INVALID_STATE_ERR makes sense in that type='custom' can't be set without a
corresponding PeriodicWave object to use in generating the data.

However, typically setting a WebIDL enum to an invalid value just fails
silently. That strikes me as less surprising, although it's no easier to handle
in our implementation. The text could be clarified:

The shape of the periodic waveform. Any of the defined OscillatorType enum
values may be assigned to select the corresponding waveform. The exception is
"custom", which is a special value only set by the setPeriodicWave() method.
Assignment of any other value is silently ignored. The default value is "sine".

You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 8 September 2013 00:04:43 UTC

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