Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread fredvs
> This has nothing to do with C compilers or with 16 vs 32 bit numbers. Ha, ok. Then I do not understand why C developers are afraid to store float data. ;-) Fre;D - Many thanks ;-) -- View this message in context:

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread Jonas Maebe
On 08/03/17 19:57, fredvs wrote: For a file created with a TFileStream of gcc but that will be used by a program compiled with VS, you should convert the data from little endian to native ordering (or reverse) with something like: for i := 0 to nSamples-1 do b egin

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread fredvs
> can't you have spreading incorrect information on C Hello. Some more infos about the problem of our C friends It seams that for C compilers (Clang, gcc, c++, VS,...) the way to order the data with a TFileStream differs (not same x-endians) for encoding float. So you must do it by code and

Re: [fpc-pascal] Annual inform

2017-03-08 Thread noreply
On 2017-03-08 05:34, Rafael Angel Campos Vargas wrote: Annual inform: I am programming LibreN3D for 3D animations, and some other projects in FreeDOS and other systems, but these three past years they really were standing by. Why DOS.. for nostalgia? i.e. compared to opengl on a modern

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Graeme Geldenhuys
On 2017-03-08 11:43, Michael Van Canneyt wrote: > Not really, because the list depends on a compiled binary. > There is no binary when generating documentation... Ah, okay. > The good news is that the documentation can already do this without any > changes to the compiler; if so desired, it

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread fredvs
> 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. Hello. Yes wav is nebulous and this site: http://stackoverflow.com/questions/2062620/how-to-write-wav-file-with-32-bit-float-data says it must

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Michael Van Canneyt
On Wed, 8 Mar 2017, Graeme Geldenhuys wrote: On 2017-03-08 10:55, Michael Van Canneyt wrote: Currently not, but I think that Sven Barth will implement something for the new RTTI which will make this possible in the future. That should be handy for the class documentation too, being able to

[fpc-pascal] Annual inform

2017-03-08 Thread Rafael Angel Campos Vargas
Annual inform: I am programming LibreN3D for 3D animations, and some other projects in FreeDOS and other systems, but these three past years they really were standing by. I have a lot of complications, so "acceptable videos" will not be availables in 2020 yet. Don't worry, just you must have

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Graeme Geldenhuys
On 2017-03-08 10:55, Michael Van Canneyt wrote: > Currently not, but I think that Sven Barth will implement something > for the new RTTI which will make this possible in the future. That should be handy for the class documentation too, being able to list all descendants of a class (much like

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Michael Van Canneyt
On Wed, 8 Mar 2017, Dennis wrote: I have a many classes, one inherits from another one, in an ancestor method, I want to test whether the calling class is a childless class. e.g. class function TAncestor.GetCaption : String; //virtual begin if HasChild then result := 'something'

[fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Dennis
I have a many classes, one inherits from another one, in an ancestor method, I want to test whether the calling class is a childless class. e.g. class function TAncestor.GetCaption : String; //virtual begin if HasChild then result := 'something' else result := 'something else';

Re: [fpc-pascal] Warning for anybody else using Linux Mint Debian ('Betsy')

2017-03-08 Thread Mark Morgan Lloyd
On 08/03/17 00:30, Mattias Gaertner wrote: brian hat am 8. März 2017 um 00:16 geschrieben:>[...]> > /usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text'> > /usr/bin/ld: final link failed: Bad value>[...]>

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread José Mejuto
El 08/03/2017 a las 0:03, Vojtěch Čihák escribió: there are different informations about *.wav, so maybe there are different impementations too. http://soundfile.sapp.org/doc/WaveFormat/

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread Lukasz Sokol
On 07/03/17 23:03, Vojtěch Čihák wrote: > Hi, > > intersting, > > there are different informations about *.wav, so maybe there are different > impementations too. > > See: > > http://soundfile.sapp.org/doc/WaveFormat/ > This also has endiannes information, which is quite cool.. > and >

Re: [fpc-pascal] Warning for anybody else using Linux Mint Debian ('Betsy')

2017-03-08 Thread brian
On 03/07/2017 07:10 PM, Mattias Gaertner wrote: > >> brian hat am 8. März 2017 um 00:16 geschrieben: >> [...] >>> /usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: >>> unrecognized relocation (0x2a) in section `.text' >>> /usr/bin/ld: final link failed: Bad