[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 away from WDM, ASIO, ALSA, Jack, CoreAudio and what not. It is in my view much easier to use than OpenAL. Up-to-date PortAudio 1.9 bindings for FPC can be obtained here (not tested on MacOS): http://sourceforge.net/projects/humus/files/ Note that UltraStarDeluxe (mentioned in another reply) seems to have bindings for PA 1.7, which is outdated. It also does not provide the platform-specific extensions. Cheers! Roland On 6/14/2010 3:37 PM, Graeme Geldenhuys 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? > > If so, what sound format's are supported? ogg, wav, mp3? > _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal