<?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>21345</bug_id>
          
          <creation_ts>2013-03-20 06:04:34 +0000</creation_ts>
          <short_desc>There should be notification when the destination output changed</short_desc>
          <delta_ts>2014-10-28 17:17:24 +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>Windows NT</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="Wei James">james.wei</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>ehsan</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84707</commentid>
    <comment_count>0</comment_count>
    <who name="Wei James">james.wei</who>
    <bug_when>2013-03-20 06:04:34 +0000</bug_when>
    <thetext>When changing accessories, the max number of channels can change, which has an impact on virtualization and 3D positioning, you wouldn&apos;t use the same settings and algorithms when switching from headset to speakers.

In case you are switching from local speakers to headphones, you are really sending the same stream to the same low-level driver, and the switch is typically handled in the audio codec hardware. You will have continuity of the playback by construction, and the only time you&apos;d need to reconfigure the graph is if you have any sort of 3D positioning.
But if the new output is HDMI, Bluetooth A2DP, USB, there will be a delay and volume ramps when switching, and it&apos;d be perfectly acceptable to stop and reconfigure without any impact to user experience. It&apos;d be interesting to capture this difference in the notification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85763</commentid>
    <comment_count>1</comment_count>
    <who name="Wei James">james.wei</who>
    <bug_when>2013-04-09 01:03:38 +0000</bug_when>
    <thetext>one proposal:


enum OutputType {
    “speakers”,
    “headset”
};


interface AudioDestinationChangeEvent : Event {
    readonly attribute double float sampleRate;
         readonly attribute unsigned long maxChannelCount
    readonly attribute OutputType outputType;
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85767</commentid>
    <comment_count>2</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-04-09 01:46:10 +0000</bug_when>
    <thetext>Why would we expose the sample rate in this way?

Also, I assume that you&apos;re planning to extend OutputType in the future, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85852</commentid>
    <comment_count>3</comment_count>
    <who name="Wei James">james.wei</who>
    <bug_when>2013-04-10 08:29:02 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Why would we expose the sample rate in this way?
&gt; 
&gt; Also, I assume that you&apos;re planning to extend OutputType in the future,
&gt; right?

yes, OutputType should be extendable. 

for sample rate, do you have any idea for output change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86191</commentid>
    <comment_count>4</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-04-15 01:45:12 +0000</bug_when>
    <thetext>Why should the web application change about the sampling rate change?  Is it not reasonable to expect the implementation to handle any resampling if needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113931</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:14:33 +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>114077</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:17:24 +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>