Re: [fpc-pascal] ppcjvm issues

2017-01-16 Thread Michael Schnell
On 14.01.2017 20:36, Lars wrote: What if you are porting code to a non jvm... if you copy and paste something and it has no free, you're screwed. Sorry. I don't understand. AFAIK, in a non jvm project, free() always is provided (and used). i.e. say you have some JVM algorithms that now need to

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread fredvs
> I thought about it a bit... isn't this how YouTube Live Stream or Twitch and alikes somehow works? > Maybe your inspiration can come from there ? Maybe or maybe from web-radios... For example, I can (via uos) connect and do streaming to url-mp3 like this: 1) uos_AddFromURL(PlayerIndex1,pchar

Re: [fpc-pascal] Does the system unit allow file locking/sharing?

2017-01-16 Thread Lars
On Mon, January 16, 2017 2:34 pm, I previously wrote: > The oldschool way of opening files using the system unit (no sysutils) > has the filemode variable.. > > system.FileMode := fmOpenRead; ... > Assign(... > Rewrite(... > > > > Can this be used with file locking/sharing OR-ed options like: > fmS

[fpc-pascal] Does the system unit allow file locking/sharing?

2017-01-16 Thread Lars
The oldschool way of opening files using the system unit (no sysutils) has the filemode variable.. system.FileMode := fmOpenRead; ... Assign(... Rewrite(... Can this be used with file locking/sharing OR-ed options like: fmShareCompat fmShareDenyNone fmShareDenyRead fmShareDenyWrite fmS

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Mattias Gaertner
On Mon, 16 Jan 2017 13:15:40 -0700 "Lars" wrote: >[...] > Does instantfpc make it mandatory that you put this at the top of every > source file: > > #!/usr/local/bin/fpc.d/3.0.0/instantfpc --set-cache=./ No. That's only needed if you want to run the Pascal file directly: ./project1.pas > f

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Lars
On Mon, January 16, 2017 3:59 am, Sven Barth wrote: > Am 16.01.2017 08:07 schrieb "Lars" : > >> >> Is there a way to compile a program with fpc at the command line and >> run it right after? >> >> Something like >> fpc run project1.pas -Fu../ > > No, FPC is a compiler, not a "runner" or debugger. T

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Lars
On Mon, January 16, 2017 6:59 am, Mark Morgan Lloyd wrote: > On 16/01/17 13:30, Mattias Gaertner wrote: > >> On Mon, 16 Jan 2017 05:22:14 -0700 >> "Lars" wrote: >> >> >>> [...] >>> That instantfpc has catch22 like you cant compule multiple projects >>> with the same name, i.e. it caches file name

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 16/01/17 16:02, fredvs wrote: > Hello. > > Thanks Lucaz for the link. > > But this is too complete ! > OOps :) > I will try to explain what i want and if it is possible to do it with > fphttpclient/server.pas. > > I can successfully save to file input from mic/wav/mp3/ogg/flac to wav file.

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread fredvs
Hello. Thanks Lucaz for the link. But this is too complete ! I will try to explain what i want and if it is possible to do it with fphttpclient/server.pas. I can successfully save to file input from mic/wav/mp3/ogg/flac to wav file. Is it possible that this file, while recording, could be acce

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Mark Morgan Lloyd
On 16/01/17 13:30, Mattias Gaertner wrote: On Mon, 16 Jan 2017 05:22:14 -0700 "Lars" wrote: [...] That instantfpc has catch22 like you cant compule multiple projects with the same name, i.e. it caches file name only (caveat) whereas fpcrun would compile it in current directory, as normal, no s

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Mattias Gaertner
On Mon, 16 Jan 2017 05:22:14 -0700 "Lars" wrote: >[...] > That instantfpc has catch22 like you cant compule multiple projects with > the same name, i.e. it caches file name only (caveat) whereas fpcrun would > compile it in current directory, as normal, no special cache dir needed Feel free to a

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Lars
On Mon, January 16, 2017 3:08 am, Mattias Gaertner wrote: > On Mon, 16 Jan 2017 00:06:59 -0700 > "Lars" wrote: > > >> Is there a way to compile a program with fpc at the command line and >> run it right after? >> >> Something like >> fpc run project1.pas -Fu../ > > instantfpc -Fu../ project1.pas >

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Sven Barth
Am 16.01.2017 08:07 schrieb "Lars" : > > Is there a way to compile a program with fpc at the command line and run > it right after? > > Something like > fpc run project1.pas -Fu../ No, FPC is a compiler, not a "runner" or debugger. That would even be one of the few points where patches would *no

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Mattias Gaertner
On Mon, 16 Jan 2017 00:06:59 -0700 "Lars" wrote: > Is there a way to compile a program with fpc at the command line and run > it right after? > > Something like > fpc run project1.pas -Fu../ instantfpc -Fu../ project1.pas > The only thing I could find was InstantFpc, which may serve simila

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Lars
On Mon, January 16, 2017 2:55 am, Graeme Geldenhuys wrote: > On 2017-01-16 07:06, Lars wrote: > >> The only thing I could find was InstantFpc, which may serve similar >> purpose but not really the same as what I was thinking... > > If InstantFPC doesn't work for you, you could always compile the FP

Re: [fpc-pascal] FPC run (run program after compile)

2017-01-16 Thread Graeme Geldenhuys
On 2017-01-16 07:06, Lars wrote: > The only thing I could find was InstantFpc, which may serve similar > purpose but not really the same as what I was thinking... If InstantFPC doesn't work for you, you could always compile the FPC Compiler into your "own" executable that does compilation and then

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 14/01/17 13:05, fredvs wrote: > Hello. > > I have lot of success to play mp3 files with library mpg123+portaudio and > fpc unit fphttpclient.pas. > > Andrew Haines did a perfect work with his TThreadHttpGetter (that is now > included in https://github.com/fredvs/uos). > > So getting the voice