<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">there are different informations about *.wav, so maybe there are different impementations too.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">See:</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">http://soundfile.sapp.org/doc/WaveFormat/</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">and</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">https://blogs.msdn.microsoft.com/dawate/2009/06/23/intro-to-audio-programming-part-2-demystifying-the-wav-format/</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">The first says that 8-bit is unsigned, the second says signed.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">The first does not mention floats, the second says 32-bits but only -1.0 to 1.0.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: fredvs <fiens@hotmail.com><br />
> Komu: fpc-pascal@lists.freepascal.org<br />
> Datum: 07.03.2017 22:39<br />
> Předmět: Re: [fpc-pascal] Adding a array of float in ressource and use it ?<br />
></p>
OK, Sven you win (and <a href="http://stackoverflow.com">http://stackoverflow.com</a> should follow fpc forum).<br />
But you will not convince me that c does better than fpc, maybe equal but<br />
surely not better. <br />
<br />
Huh, saving a buffer of float into wav file format, with correct header,<br />
---><br />
loaded by audacity ----> horrible noise.<br />
<br />
loaded by fpc (via uos) ----> perfet sound.<br />
<br />
But is maybe because wav format accept only in theory data from float.<br />
(and that wav file are (nearly) always encoded from 32 bit integer and<br />
converted into float32).<br />
<br />
But that is a other story.<br />
<br />
Viva fpc.<br />
<br />
Fre;D<br />
<br />
<br />
<br />
<br />
<br />
-----<br />
Many thanks ;-)<br />
--<br />
View this message in context: <a href="http://free-pascal-general.1045716.n5.nabble.com/Adding-a-array-of-float-in-ressource-and-use-it-tp5727765p5727801.html">http://free-pascal-general.1045716.n5.nabble.com/Adding-a-array-of-float-in-ressource-and-use-it-tp5727765p5727801.html</a><br />
Sent from the Free Pascal - General mailing list archive at Nabble.com.<br />
_______________________________________________<br />
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br />
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>