[fpc-pascal] handing over array of pchars to C program

2007-09-02 Thread Marc Santhoff
Hi, has anyone managed to build in a pascal program what in C is a char *strings[] and use it from C? In pascal terms this is a single dimensional array aka vector of PChar. Do I have to make copies of any string or is it sufficient to fill up an array with PChar? My attemtps all fail

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Marc Santhoff
Am Sonntag, den 02.09.2007, 16:56 +0200 schrieb Sebastian Günther: > Marc Santhoff schrieb: > > > > Ahem, maybe you know how to control the volume, too? > > Naturally, this is not possible: The PC speaker is simply controlled by > a timer, which creates a square wave (on/off). In ancient DOS tim

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: Naturally, this is not possible: The PC speaker is simply controlled by a timer, which creates a square wave (on/off). In ancient DOS times there was a trick by doing a frequency modulation, i.e. you turn the timer on and off quite fast. But on Linux etc. the

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Marco van de Voort
> > Naturally, this is not possible: The PC speaker is simply controlled > > by a timer, which creates a square wave (on/off). In ancient DOS times > > there was a trick by doing a frequency modulation, i.e. you turn the > > timer on and off quite fast. But on Linux etc. the drivers don't > > s

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Mark Wood
Naturally, this is not possible: The PC speaker is simply controlled by a timer, which creates a square wave (on/off). In ancient DOS times there was a trick by doing a frequency modulation, i.e. you turn the timer on and off quite fast. But on Linux etc. the drivers don't support such cheats

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Sebastian Günther
Marc Santhoff schrieb: Ahem, maybe you know how to control the volume, too? Naturally, this is not possible: The PC speaker is simply controlled by a timer, which creates a square wave (on/off). In ancient DOS times there was a trick by doing a frequency modulation, i.e. you turn the timer

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Marc Santhoff
Am Sonntag, den 02.09.2007, 10:32 +0200 schrieb Daniël Mantione: > > Op Sun, 2 Sep 2007, schreef Jonas Maebe: > > > > > On 02 Sep 2007, at 07:58, Marc Santhoff wrote: > > > > > FreeBSD has a simple speaker-device and is able to use it for simple > > > freqency and duration sounds via ioctl as w

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Daniël Mantione
Op Sun, 2 Sep 2007, schreef Jonas Maebe: > > On 02 Sep 2007, at 07:58, Marc Santhoff wrote: > > > FreeBSD has a simple speaker-device and is able to use it for simple > > freqency and duration sounds via ioctl as well as playing musical notes > > a simple acsii-notation. Maybe Linux, MacOS and

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Jonas Maebe
On 02 Sep 2007, at 07:58, Marc Santhoff wrote: FreeBSD has a simple speaker-device and is able to use it for simple freqency and duration sounds via ioctl as well as playing musical notes a simple acsii-notation. Maybe Linux, MacOS and others have similar possibilities? Mac OS X doesn't. L