<?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>17400</bug_id>
          
          <creation_ts>2012-06-05 12:20:04 +0000</creation_ts>
          <short_desc>(AudioGainScale): GainNode scale underdefined</short_desc>
          <delta_ts>2014-10-28 17:16:36 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>olivier.thereaux</cc>
    
    <cc>ot</cc>
    
    <cc>philipj</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>68712</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-06-05 12:20:04 +0000</bug_when>
    <thetext>Audio-ISSUE-45 (AudioGainScale): AudioGain scale underdefined [Web Audio API]

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

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

The spec says &quot;The default amount is 1 (no gain change)&quot; and &apos;The unit type is &quot;linear gain&quot;&apos; but doesn&apos;t define what linear gain means. Particularly, does a gain of 2 mean that the float32 sample values are multiplied by 2, or is the scale something else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68782</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 08:17:22 +0000</bug_when>
    <thetext>[admin] Assigning items currently being worked on by editor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68812</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 14:55:40 +0000</bug_when>
    <thetext>From the editor:

More detailed text added:
https://dvcs.w3.org/hg/audio/rev/4de4b8263c21</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68984</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-12 14:18:58 +0000</bug_when>
    <thetext>The question was answered (output = input * gain) but no normative requirements on implementations were added. We suggest avoiding phrasing like &quot;will&quot; or &quot;is&quot;.

A &quot;must&quot; is missing in somewhere in the following:

&quot;Every PCM audio sample in the input is multiplied by the gain parameter&apos;s value for the specific time corresponding to that audio sample. This multiplied value represents the PCM audio sample for the output. 

The number of channels of the output will always equal the number of channels of the input, with each channel of the input being multiplied by the gain values and being copied into the corresponding channel of the output.&quot;

They could also be replaced by something like &quot;output[t] = gain[t] * input[t]&quot; given some basic definitions to support it, but that is editorial.

Editorial issues:

&quot;By default, it will take the input and pass it through to the output unchanged, which represents a constant gain change of 1.&quot; can be removed since it&apos;s already defined in the attributes section.

&quot;As with other &lt;code&gt;AudioParams&lt;/code&gt;, the &lt;code&gt;gain&lt;/code&gt; parameter represents a mapping from time (in the coordinate system of AudioContext.currentTime) to floating-point value.&quot; can be moved to the AudioParam section since it is generally true, or removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80343</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-12-18 13:18:18 +0000</bug_when>
    <thetext>Renaming issue to match renaming of AudioGain/GainNode interface.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113863</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:13:43 +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>114004</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:16:36 +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>