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

2017-03-07 Thread Mattias Gaertner
> 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 >[...] > Trying to build a simple 'Hello,

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

2017-03-07 Thread brian
Upgrading to Lazarus 1.6.4 and FPC 3.0.2 as obtained from SourceForge breaks things irretrievably on Linux Mint Debian 64-bit running on an AMD Phenom x2 system. I first noticed this when trying to rebuild the Lazarus IDE generated the following error > /usr/bin/ld:

Re: [fpc-pascal] lldb problems with Xcode 8.2.1

2017-03-07 Thread Jeremy Thompson
> This is fixed in the latest Xcode 8.3 beta. > You’ll still need to use Jonas’ suggestion of upgrading to FPC 3.0.2 and use > the -godwarfcpp option to get lldb/Xcode to do the right thing once a > breakpoint is triggered. I have upgraded to FPC 3.0.2 and added in the Xcode 8.3 beta. I am

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

2017-03-07 Thread Vojtěch Čihák
Hi,   there are different informations about *.wav, so maybe there are different impementations too. See: http://soundfile.sapp.org/doc/WaveFormat/ and https://blogs.msdn.microsoft.com/dawate/2009/06/23/intro-to-audio-programming-part-2-demystifying-the-wav-format/   The first says that 8-bit is

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

2017-03-07 Thread Sven Barth via fpc-pascal
On 07.03.2017 22:39, fredvs wrote: > OK, Sven you win (and 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. Despite me definitely favoring Object Pascal as well, I can't you have spreading

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

2017-03-07 Thread fredvs
OK, Sven you win (and 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

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

2017-03-07 Thread Sven Barth via fpc-pascal
On 07.03.2017 16:30, fredvs wrote: >>> Many thanks Sven for your help. >>> Do you agree if I add your name into the list of the "great contributors" >>> of >>> uos (https://github.com/fredvs/uos) ? >> I don't think that's necessary. I'm merely doing my "job"... > > OK, I understand. (But I ask it

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

2017-03-07 Thread fredvs
>> Many thanks Sven for your help. >> Do you agree if I add your name into the list of the "great contributors" >> of >> uos (https://github.com/fredvs/uos) ? > I don't think that's necessary. I'm merely doing my "job"... OK, I understand. (But I ask it always when I get great help, it is a

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

2017-03-07 Thread Lukasz Sokol
Hi, On 07/03/17 13:23, Michael Van Canneyt wrote: > >> Huh? Of course you can do that rather similary in C as well. > > Indeed. You can do exactly the same. You can do this: > > {$mode objfpc} > uses classes; > > > Type > Float = Double; > TFloatArray = Array of Float; > > Procedure

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

2017-03-07 Thread Michael Van Canneyt
On Tue, 7 Mar 2017, Sven Barth via fpc-pascal wrote: Am 07.03.2017 13:49 schrieb "fredvs" : To access a file stored as a resource you need to use TResourceStream. Ho my Dog, I did not know this one. More than perfect, many thanks Sven. PS: About array of float into

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

2017-03-07 Thread Sven Barth via fpc-pascal
Am 07.03.2017 13:49 schrieb "fredvs" : > > > To access a file stored as a resource you need to use TResourceStream. > > Ho my Dog, I did not know this one. > More than perfect, many thanks Sven. > > PS: About array of float into TFileStream, after Googling a while, it s not >

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

2017-03-07 Thread fredvs
> To access a file stored as a resource you need to use TResourceStream. Ho my Dog, I did not know this one. More than perfect, many thanks Sven. PS: About array of float into TFileStream, after Googling a while, it s not possible to do directly like fpc does for C compilers. You need a

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

2017-03-07 Thread Sven Barth via fpc-pascal
Am 06.03.2017 23:57 schrieb "fredvs" : > > Re-hello. > > Ok, I do not find yet the guilty in my code, I will re-try a other day. > By the way, your code is working perfectly Sven. > > Now, last part of the question: how to convert that file stored into > ressource but without to