<?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>17393</bug_id>
          
          <creation_ts>2012-06-05 12:13:09 +0000</creation_ts>
          <short_desc>(UseDoubles): float/double inconsistency</short_desc>
          <delta_ts>2014-10-28 17:16:38 +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>mage</cc>
    
    <cc>olivier.thereaux</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>68705</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-06-05 12:13:09 +0000</bug_when>
    <thetext>Audio-ISSUE-17 (UseDoubles): float/double inconsistency [Web Audio API]

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

Raised by: Marcus Geelnard
On product: Web Audio API

Throughout the spec, there seems to be a preference for using float over double (though some cases of double exists). Suggest only double except for sample format.

As an example, currentTime as a 32-bit float will degrade the precision to less than 1 ms after less than 5 hours, which is uncomfortably close to real-world usage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78322</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-11-14 21:25:43 +0000</bug_when>
    <thetext>For time-related values it&apos;s very important to use double-precision, for other values this is not nearly as important.

Fixed:
https://dvcs.w3.org/hg/audio/rev/30b04185a648</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78571</commentid>
    <comment_count>2</comment_count>
    <who name="Marcus Geelnard (Opera)">mage</who>
    <bug_when>2012-11-21 13:27:24 +0000</bug_when>
    <thetext>Yes, time values are the most important. On the other hand, is there really a point in using floats for anything (except, naturally, the AudioBuffer samples that use Float32Array)?

For API consistency, I think doubles are preferred over floats.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78572</commentid>
    <comment_count>3</comment_count>
    <who name="Marcus Geelnard (Opera)">mage</who>
    <bug_when>2012-11-21 13:32:13 +0000</bug_when>
    <thetext>...also, in ECMAScript everything is double anyway, so dumbing down to float does not make much sense (at least not to me).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80346</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-12-18 13:24:47 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; ...also, in ECMAScript everything is double anyway, so dumbing down to float
&gt; does not make much sense (at least not to me).

Looks like it would make sense to reopen this based on the comment above. If there is no significant price to consistency, we should aim for it throughout the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113865</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:13:45 +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>114008</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:16:38 +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>