<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17368</bug_id>
          
          <creation_ts>2012-06-05 11:54:00 +0000</creation_ts>
          <short_desc>(OscillatorTypeException): Setting Oscillator.type to CUSTOM should throw an exception</short_desc>
          <delta_ts>2014-10-28 17:16:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>Web Audio API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>TBD</target_milestone>
          <dependson>17367</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="paul@paul.cx">padenot</assigned_to>
          <cc>giles</cc>
    
    <cc>padenot</cc>
    
    <cc>public-audio</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68679</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-05 11:54:00 +0000</bug_when>
    <thetext>Audio-ISSUE-82 (OscillatorTypeException): Setting Oscillator.type to CUSTOM should throw an exception [Web Audio API]

http://www.w3.org/2011/audio/track/issues/82

Raised by: Philip Jägenstedt
On product: Web Audio API

https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Oscillator

The spec says that type &quot;may directly be set to any of the type constant values except for CUSTOM.&quot; It should be defined what happens when type is set to CUSTOM, presumably INVALID_STATE_ERR should be thrown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93144</commentid>
    <comment_count>1</comment_count>
    <who name="Ralph Giles">giles</who>
    <bug_when>2013-09-08 00:04:41 +0000</bug_when>
    <thetext>INVALID_STATE_ERR makes sense in that type=&apos;custom&apos; can&apos;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&apos;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 &quot;custom&quot;, which is a special value only set by the setPeriodicWave() method. Assignment of any other value is silently ignored. The default value is &quot;sine&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113876</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:13:54 +0000</bug_when>
    <thetext>Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114023</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:16:48 +0000</bug_when>
    <thetext>Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>