[lazarus] Lazarus Linux sound support

Andrew Johnson aj_genius at hotmail.com
Sat Oct 19 10:21:07 EDT 2002


On Fri, 18 Oct 2002 22:43:31 -0500
"Tony Maro" <TonyM at nlisc.com> wrote :
>
>Back about a month ago I was asking about sound support for Linux and was 
>pointed towards libsndfile.  Turned out that libsndfile had a new version 
>out and the headers are completely different.
>
>Someone - I don't remember who - said that he was going to try and convert 
>the headers for the new version.
>
>Any progress?
>
>I just finished check printing support for CheckBook Tracker and am working 
>on split transactions and category management, but I'd like to go ahead and 
>add sound support.  It just doesn't feel right without that satisfying 
>"click" when you enter a new transaction.  I've looked at the C headers, 
>but I just can't read that stuff...

I can't "read" it because C is inherently unreadable ;), but I can usually 
decipher it..

I have translated the libesd sound header(esd.h) if you want to try that 
instead(esd is is Esound, the library used by GNOME for sound). they should 
work with at least >=2.23, and probably earlier though I have not had a 
chance to test. And if you look at the libsnd header, it looks like they did 
almost a straight port using h2pas, aka minimal work, maybe just a little 
cleanup to make it more pascal like. So while I do not know what the version 
problem is, it would be easy to make an updated version, if I had copy of 
both the new and old version for reference.

I would suggest however you try libesd first, as it is very easy to use, and 
means you are not limited to using the sound system directly, and it works 
on more platforms than Lazarus. Yes it means another dependency for your 
program, but you can always
put your sound support into a dynamically linked dll, thus allowing you to 
gracefully continue without sound, even if the dll fails to load.

Andrew

_________________________________________________________________
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp






More information about the Lazarus mailing list