<?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>21327</bug_id>
          
          <creation_ts>2013-03-18 23:36:18 +0000</creation_ts>
          <short_desc>Clarifications required to fading recommendations</short_desc>
          <delta_ts>2013-04-08 21:15:14 +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="Aaron Colwell">acolwell</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>84591</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Lemieux">pal</who>
    <bug_when>2013-03-18 23:36:18 +0000</bug_when>
    <thetext>Below are miscellaneous comments and/or questions.

&gt; The fade in coded frame equals new coded frame.

What about if new coded frame duration is less than 5 ms?

&gt; Convert fade out samples and fade in samples to a common
&gt; sample rate and channel layout.

The specification should mandate no sample rate conversion unless necessary.

&gt;Apply a linear gain fade out

From where to where?

&gt; the difference between decode timestamp and last decode timestamp is greater than 100 milliseconds

Why 100 ms?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84616</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2013-03-19 14:46:55 +0000</bug_when>
    <thetext>Retitling bug to describe comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84949</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-03-25 21:47:33 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Below are miscellaneous comments and/or questions.
&gt; 
&gt; &gt; The fade in coded frame equals new coded frame.
&gt; 
&gt; What about if new coded frame duration is less than 5 ms?

This is covered in the audio splice rendering algorithm, but I will also add a note in step 13 of the Audio Splice Frame Algorithm calling out this case. I don&apos;t want to handle this explicitly in the algorithm because it will just make things unnecessarily confusing.

&gt; 
&gt; &gt; Convert fade out samples and fade in samples to a common
&gt; &gt; sample rate and channel layout.
&gt; 
&gt; The specification should mandate no sample rate conversion unless necessary.

Does this really need to be explictly called out?

&gt; 
&gt; &gt;Apply a linear gain fade out
&gt; 
&gt; From where to where?

What do you mean? If this isn&apos;t clear enough please provide text that you consider more clear. I assumed that this plus the picture in the spec was sufficient to convey the intended meaning.

&gt; 
&gt; &gt; the difference between decode timestamp and last decode timestamp is greater than 100 milliseconds
&gt; 
&gt; Why 100 ms?

It seemed like a reasonable default. It is an arbitrary value chosen to ensure that coded frames can&apos;t be too far apart before an out-of-order append error is signalled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85022</commentid>
    <comment_count>3</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-03-26 18:02:02 +0000</bug_when>
    <thetext>Changes committed.
https://dvcs.w3.org/hg/html-media/rev/1e6898152c5b

Clarified what to do if &apos;new coded frame&apos; is less than 5ms long.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85570</commentid>
    <comment_count>4</comment_count>
    <who name="Pierre Lemieux">pal</who>
    <bug_when>2013-04-04 17:03:36 +0000</bug_when>
    <thetext>&gt; &gt; The specification should mandate no sample rate conversion unless necessary.
&gt; 
&gt; Does this really need to be explictly called out?

Yes.

&gt; &gt; &gt;Apply a linear gain fade out
&gt; &gt; 
&gt; &gt; From where to where?
&gt; 
&gt; What do you mean?

I think the specification should at least recommend a fade in/out slope.

(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; Below are miscellaneous comments and/or questions.
&gt; &gt; 
&gt; &gt; &gt; The fade in coded frame equals new coded frame.
&gt; &gt; 
&gt; &gt; What about if new coded frame duration is less than 5 ms?
&gt; 
&gt; This is covered in the audio splice rendering algorithm, but I will also add
&gt; a note in step 13 of the Audio Splice Frame Algorithm calling out this case.
&gt; I don&apos;t want to handle this explicitly in the algorithm because it will just
&gt; make things unnecessarily confusing.
&gt; 
&gt; &gt; 
&gt; &gt; &gt; Convert fade out samples and fade in samples to a common
&gt; &gt; &gt; sample rate and channel layout.
&gt; &gt; 
&gt; &gt; The specification should mandate no sample rate conversion unless necessary.
&gt; 
&gt; Does this really need to be explictly called out?
&gt; 
&gt; &gt; 
&gt; &gt; &gt;Apply a linear gain fade out
&gt; &gt; 
&gt; &gt; From where to where?
&gt; 
&gt; What do you mean? If this isn&apos;t clear enough please provide text that you
&gt; consider more clear. I assumed that this plus the picture in the spec was
&gt; sufficient to convey the intended meaning.
&gt; 
&gt; &gt; 
&gt; &gt; &gt; the difference between decode timestamp and last decode timestamp is greater than 100 milliseconds
&gt; &gt; 
&gt; &gt; Why 100 ms?
&gt; 
&gt; It seemed like a reasonable default. It is an arbitrary value chosen to
&gt; ensure that coded frames can&apos;t be too far apart before an out-of-order
&gt; append error is signalled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85739</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2013-04-08 21:15:14 +0000</bug_when>
    <thetext>Changes committed.
https://dvcs.w3.org/hg/html-media/rev/f7f2b7226543

- Made sample rate &amp; channel layout conversion only occur when necessary.
- Specified starting &amp; ending gains for the fades. I think this is a little easier to understand then just specifying a slope since the slope units aren&apos;t exactly clear. The gain &amp; time ranges are now specified so implementers should have no problem computing the appropriate slope for their needs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>