Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
greim wrote: Hi Mark, Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? i would recommend the synaser library, more sophisticated then the serial.pp http://www.ararat.cz/synapse/doku.php/download I know you would. There are cases where i

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Henry Vermaak
On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data, output data or both? fsync just makes sure all the in-kernel caches are written to

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data, output data or both? fsync just makes sure all the in-kernel

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > > fsync just makes sure all the in-kernel caches are written to the > > device. Flushing input data is just a matter of reading it. > > Thanks for that Henry. Obviously there's scope for confusion here with > the kernel's tcflush() and tcdrain(

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Henry Vermaak
On 09/03/11 11:30, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data, output data or bo

[fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Leonardo M . Ramé
Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? Thanks in advance, Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist

Re: [fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Jonas Maebe
On 09 Mar 2011, at 13:52, Leonardo M. Ramé wrote: Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? m4a is a plain mp4 container with an aac-encoded soundtrack (and no video). There is nothing iPhone-specific about it. Any library that can han

Re: [fpc-pascal] (Unix) serial port handling

2011-03-09 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 09/03/11 11:30, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 08/03/11 10:30, Mark Morgan Lloyd wrote: Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input d

Re: [fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Matt Emson
On 09/03/2011 12:52, Leonardo M. Ramé wrote: Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? m4a is basically aac, so I'd look down that route. However, m4a files can be protected by

Re: [fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Leonardo M . Ramé
--- On Wed, 3/9/11, Matt Emson wrote: > From: Matt Emson > Subject: Re: [fpc-pascal] Converting .m4a to .wav > To: "FPC-Pascal users discussions" > Date: Wednesday, March 9, 2011, 1:08 PM > On 09/03/2011 12:52, Leonardo M. > Ramé wrote: > > Hi, does anyone knows if there's a > library/class/fun

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Andrew Haines
On 03/08/11 19:58, Andrew Haines wrote: > Hi, > > I'm trying to convert the following 32bit asm to pascal so it's > portable. Also to 64bit asm. > > It's from ACS audio component suite. > > What am I doing wrong? > For anyone who's interested I fixed the 64bit assembly version which is good en

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Thomas Schatzl
Hi, On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: if Tmp <> Im then begin //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm proc? asm FLD LogBase; FLD Tmp; FYL2X; FYL2X calculates the log to the base 2 of tmp, no

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Andrew Haines
On 03/09/11 12:26, Thomas Schatzl wrote: > Hi, > > On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: >> if Tmp <> Im then >> begin >> //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm >> proc? >> asm >> FLD LogBase; >> FLD Tmp; >>

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit at&t asm

2011-03-09 Thread Thomas Schatzl
On Wed, 09 Mar 2011 13:23:55 -0500, Andrew Haines wrote: On 03/09/11 12:26, Thomas Schatzl wrote: Hi, On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: if Tmp <> Im then begin //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm proc? asm