[lazarus] Lazarus Linux sound support

Tony Maro TonyM at nlisc.com
Sat Oct 19 18:13:50 EDT 2002


I'll agree about C - that's my problem too! ;-)

I'll give the libesd a shot.  Thanks!

BTW The version problem is that sndfile changed the parameters for the very basic play functions completely (requires an extra one) - and apparently some constants as well - between versions.

Thanks,
Tony

-----Original Message-----
From:	Andrew Johnson [mailto:aj_genius at hotmail.com]
Sent:	Sat 10/19/2002 9:27 AM

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.


<<winmail.dat>>



More information about the Lazarus mailing list