[fpc-pascal] Adding a array of float in ressource and use it ?
vojtech.cihak at atlas.cz
Wed Mar 8 00:03:17 CET 2017
there are different informations about *.wav, so maybe there are different impementations too.
The first says that 8-bit is unsigned, the second says signed.
The first does not mention floats, the second says 32-bits but only -1.0 to 1.0.
> Od: fredvs <fiens at hotmail.com>
> Komu: fpc-pascal at lists.freepascal.org
> Datum: 07.03.2017 22:39
> Předmět: Re: [fpc-pascal] Adding a array of float in ressource and use it ?
OK, Sven you win (and http://stackoverflow.com <http://stackoverflow.com> should follow fpc forum).
But you will not convince me that c does better than fpc, maybe equal but
surely not better.
Huh, saving a buffer of float into wav file format, with correct header,
loaded by audacity ----> horrible noise.
loaded by fpc (via uos) ----> perfet sound.
But is maybe because wav format accept only in theory data from float.
(and that wav file are (nearly) always encoded from 32 bit integer and
converted into float32).
But that is a other story.
Many thanks ;-)
View this message in context: 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>
Sent from the Free Pascal - General mailing list archive at Nabble.com.
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal