[fpc-pascal] Re: fpc-pascal Digest, Vol 72, Issue 35

2010-06-14 Thread Roger Bailey
On 12 Jun 2010, at 11:00, Michael Van Canneyt wrote: TestFunction := ActualParameter ( ) ; { compiles and runs o.k. } [MVC:] The addition of () actually calls the function. TestFunction := ActualParameter ; { gives incompatible type error, but ... } [MVC:] Here you try to

Re: [fpc-pascal] Re: fpc-pascal Digest, Vol 72, Issue 35

2010-06-14 Thread Michael Van Canneyt
On Mon, 14 Jun 2010, Roger Bailey wrote: On 12 Jun 2010, at 11:00, Michael Van Canneyt wrote: TestFunction := ActualParameter ( ) ; { compiles and runs o.k. } [MVC:] The addition of () actually calls the function. TestFunction := ActualParameter ; { gives incompatible type

[fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Graeme Geldenhuys
Hi, Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? If so, what sound format's are supported? ogg, wav, mp3? -- Regards, - Graeme - ___ fpGUI - a cross-platform Free

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Henry Vermaak
On 14 June 2010 14:37, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? fpc has bindings for libsndfile, which according to the website can read/write wav and

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Alexander Grau
Graeme Geldenhuys schrieb: Hi, Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? If so, what sound format's are supported? ogg, wav, mp3? We have developed some kind of API to play a .wav file on both Windows

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Henry Vermaak
On 14 June 2010 15:59, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 14/06/2010, Alexander Grau wrote: If someone would like to add a PlaySoundFile API to LCL/FPC, drop me a note and we will donate the Mac code for it :-) ... Thanks for that. A quick test removing the SND_ASYNC option

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Schindler Karl-Michael
Hi Graeme Am 14.06.2010 um 15:37 schrieb Graeme Geldenhuys: Hi, Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? UltraStarDeluxe uses ffmpeg for decoding and portaudio, a C library, for playback of the stream.

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread dmitry boyarintsev
On Mon, Jun 14, 2010 at 5:37 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? I'd offer using OpenAL, however it requires proper libraries to be installed on Linux

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Vladimir Zhirov
Has anybody managed to play sound files under both Linux and Windows? One more option I know of is Audorra (http://audorra.sourceforge.net/). I have not used it though, so no idea about its advantages/drawbacks. -- Regards, Vladimir Zhirov ___

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Ingemar Ragnemalm
dmitry boyarintsev skalogryz.li...@gmail.com wrote: On Mon, Jun 14, 2010 at 5:37 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? I'd offer using OpenAL,

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Roland Schaefer
[I don't know if a previous email of similar content got through. Sorry if this is a double post.] As libsndfile has already been recommended, I would just add that the simplest and most fool-proof way of playing back audio (once you have figured out how to load it) is PortAudio. It abstracts

[fpc-pascal] Re: Bug?

2010-06-14 Thread Roger Bailey
Sorry, I committed the cardinal sin of getting the subject line wrong. Corrected now :-) On 14 Jun 2010, at 18:07, Michael Van Canneyt wrote: On Mon, 14 Jun 2010, Roger Bailey wrote: On 12 Jun 2010, at 11:00, Michael Van Canneyt wrote: TestFunction := ActualParameter ( ) ; { compiles and