<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 11/6/20 10:06 AM, John Murphy wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:20201106150657.660d13a5@mint01">
      <pre class="moz-quote-pre" wrap="">On Fri, 6 Nov 2020 15:07:43 +0100 Fons Adriaensen <a class="moz-txt-link-rfc2396E" href="mailto:fons@linuxaudio.org"><fons@linuxaudio.org></a> wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On Fri, Nov 06, 2020 at 01:22:42PM +0000, John Murphy wrote:

</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Then sox stat shows min/max amplitude +/- 0.5 for the wav capture and
+/- 0.9 for the wav converted from w64. The converted file looks good
in my editor too.  
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
Still doesn't explain the difference, unless I'm missing something...

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">There's a loss of precision in the conversion process. Both the original
recordings show 25 bit precision and the file sizes are the same (3.8MB).

The converted file is only 16 bit and is 1.9MB. It sounds (and looks)
louder. I doubt I could tell any loss of quality. Not explaining it.
Just providing some facts. :)

</pre>
    </blockquote>
    <p>Maybe this is relevant?<br>
    </p>
    <p>According to my package manager, sox depends on libsndfile.</p>
    <p>On the libsndfile website:
      <a class="moz-txt-link-freetext" href="http://www.mega-nerd.com/libsndfile/api.html#note1">http://www.mega-nerd.com/libsndfile/api.html#note1</a></p>
    <p> it talks about normalization:</p>
    <p><br>
    </p>
    <p>"When converting between integer data and floating point data,
      different rules apply.</p>
    <p>
      The default behaviour when reading floating point data
      (sf_read_float() or
      sf_read_double ())</p>
    <p>  from a file with integer data is normalisation. Regardless of
      whether data in the file</p>
    <p>  is 8, 16, 24 or 32 bit wide, the data will be read as
      floating point data in the range [-1.0, 1.0].</p>
    <p> Similarly, data in the range [-1.0, 1.0]
      will be written to an integer PCM file so that</p>
    <p> a data value of 1.0 will be the largest
      allowable integer for the given bit width.</p>
    <p> This normalisation can be turned on or off
      using the <a
        href="http://www.mega-nerd.com/libsndfile/command.html">sf_command</a>
      interface" <br>
    </p>
    <p><br>
    </p>
    <p>I recall observing that this normalization does tend to make the
      result 'louder'.</p>
    <p>Could this be what is being observed?</p>
    <p>Tim.</p>
    <p><br>
    </p>
  </body>
</html>