<?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>22725</bug_id>
          
          <creation_ts>2013-07-18 15:45:08 +0000</creation_ts>
          <short_desc>Race Conditions</short_desc>
          <delta_ts>2014-10-28 17:17: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>
          
          <blocked>17341</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Thereaux">olivier.thereaux</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>cwilso</cc>
    
    <cc>ehsan</cc>
    
    <cc>joe</cc>
    
    <cc>jussi.kalliokoski</cc>
    
    <cc>mage</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90927</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-07-18 15:45:08 +0000</bug_when>
    <thetext>This bugzilla entry tracks the Audio WG discussion about “Fixing Race Conditions”.

The initial proposal was by ROC on 21 June 2013:
http://lists.w3.org/Archives/Public/public-audio/2013AprJun/0644.html

Discussion thread so far:

http://lists.w3.org/Archives/Public/public-audio/2013AprJun/thread.html#msg644
followed by...
http://lists.w3.org/Archives/Public/public-audio/2013JulSep/thread.html#msg10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91312</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-07-26 13:53:07 +0000</bug_when>
    <thetext>The issue will be put to a vote. 

Proposed voting procedure and links to relevant rules in the W3C process have been announced on the mailing-list by the chairs. Archived at: http://lists.w3.org/Archives/Public/public-audio/2013JulSep/0283.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91374</commentid>
    <comment_count>2</comment_count>
    <who name="Marcus Geelnard (Opera)">mage</who>
    <bug_when>2013-07-29 09:36:15 +0000</bug_when>
    <thetext>I think that the phrasing that Olivier proposed is a bit too close to agreeing on a final solution, but none of the proposed solutions are really ready yet (need more decisions and discussion).

I would like the phrasing to be slightly more more abstract, so that we can agree on a common mind-set for which we will solve the problems, for instance:

1. Keep the current API, with the shared memory solution. Specify the exact behavior in the Web Audio specification, and work together with other parties to work out what other specifications need to be updated/written, etc.

2. Based on RoC&apos;s proposal: Try to keep the current API, but remove any shared memory problems by using neutering as much as possible, and copying where necessary.

3. Based on Jer&apos;s proposal: Update the API in order to remove shared memory problems and make the interface more akin to existing Web interfaces.

Not sure if this is the best formulation - suggestions are welcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91376</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kalliokoski">jussi.kalliokoski</who>
    <bug_when>2013-07-29 12:04:57 +0000</bug_when>
    <thetext>Yeah, I actually think that whether we go with ROC&apos;s proposal or Jer&apos;s proposal is not the important question, the important question is whether we&apos;re going to fix the problem in our own API or someone else&apos;s API. If we decide to fix this in our own API, we can then decide the details after that choice, from my point of view ideally by combining the best parts of the two proposals.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91378</commentid>
    <comment_count>4</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-07-29 18:44:50 +0000</bug_when>
    <thetext>Hmm, if we&apos;re going to try to be more precise about these proposals, then the proponents of option 1 should have a specification of what the shared memory model is going to look like.  We should also have a list of all of the modifications to other specs in hand, and have at least initial buy-in from the editors of those specifications since without that we cannot be sure that we can adopt option 1 in practice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91384</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2013-07-29 19:20:01 +0000</bug_when>
    <thetext>Indeed, I think the first of any votes should be &quot;keep a shared memory solution between the main thread and audio thread, or make changes to the API such that it does not use shared memory&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91394</commentid>
    <comment_count>6</comment_count>
    <who name="Joe Berkovitz / NF">joe</who>
    <bug_when>2013-07-29 21:19:38 +0000</bug_when>
    <thetext>If we use ranked voting as Olivier suggested, it seems possible to distinguish between ballots that place #1 first (shared memory OK) and those that don&apos;t (shared memory not OK).

Being able to make this distinction in the responses does seem like the primary thing to resolve here. If we do wind up concluding that shared memory isn&apos;t OK, then regardless of the ballots I would expect we&apos;ll be looking at the alternatives and having further discussions about their merits.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92737</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-08-30 11:20:52 +0000</bug_when>
    <thetext>Call for Consensus around the &quot;ROC proposal&quot;:
http://lists.w3.org/Archives/Public/public-audio/2013JulSep/0635.html

The proposal:
https://wiki.mozilla.org/User:Roc/AudioBufferProposal

Results expected on 2013-09-05</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93062</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-09-05 17:03:37 +0000</bug_when>
    <thetext>Based on the CfC on 2013-08-30 and the group teleconference on 2013-09-05 (http://www.w3.org/2013/09/05-audio-minutes.html#item01) the group has resolved that there was consensus around &quot;ROC&apos;s proposal&quot;. From now on the group will work on fixing remaining issues with this proposal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113961</commentid>
    <comment_count>9</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:14:50 +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>114109</commentid>
    <comment_count>10</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:17: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>