<?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>21326</bug_id>
          
          <creation_ts>2013-03-18 23:31:52 +0000</creation_ts>
          <short_desc>Encourage x-fades or at least v-fades.</short_desc>
          <delta_ts>2013-04-08 21:19:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierre Lemieux">pal</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84590</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Lemieux">pal</who>
    <bug_when>2013-03-18 23:31:52 +0000</bug_when>
    <thetext>&quot;3.5.9 Audio Splice Frame Algorithm&quot; suggests adding a &quot;silence frame&quot; if x-fading is not available. This will lead to extremely harmful artifacts if the signal in either the track buffer or append segment contains any energy.

The specification can instead recommend v-fades, where each of the track buffer and append segment signals are independently faded to 0 around the splice point, as a simpler alternative to x-fades where overlap between the two signals is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84621</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-03-19 15:00:40 +0000</bug_when>
    <thetext>The case where crossfading is not supported is there to handle cases where the UA may not have access to the baseband signal such as harware decoding and or protected content. If an implementation is going to implement the v-fades you suggest it might as well just implement the crossfade since the necessary modifications to the media engine would be similar. 

At best a non-normative note could be added to this section suggesting fades to 0, but I don&apos;t expect implementations to actually do this given that this only would apply to cases where fades to zero were possible and significantly less complex to implement then the actual crossfade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85579</commentid>
    <comment_count>2</comment_count>
    <who name="Pierre Lemieux">pal</who>
    <bug_when>2013-04-04 19:37:40 +0000</bug_when>
    <thetext>(In reply to comment #1)

Well, implementations can always do the wrong thing :) but the specification should recommend the right thing.

In 99% of scenarios, the right thing is never to insert silence (zeroes) in an audio stream without a fade, or at the very least without waiting for the signal to cross zero.

Fades to/from zero (or waiting for a zero-crossing) are sometimes easier than cross-fade since no overlap of content is required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85741</commentid>
    <comment_count>3</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2013-04-08 21:19:45 +0000</bug_when>
    <thetext>Change committed.
https://dvcs.w3.org/hg/html-media/rev/f7f2b7226543

Added a note indicating that implementations may choose to apply fades to/from silence sections. I am keeping this non-normative until we have implementation experience that shows that implementing such fades is possible in a majority of cases when hardware decoders and secure decode pipelines are being used.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>