[fpc-pascal] playing sound files (linux and windows)

Henry Vermaak henry.vermaak at gmail.com
Tue Jun 15 10:28:29 CEST 2010


On 15 June 2010 08:37, Alexander Grau <alex at grauonline.de> wrote:
>
> For Linux, I think it can be simple as opening a file and writing the raw
> audio data to it - using a simple WAV header reader or even an MP3 decoder
> for FPC, it should be possible to directly use the sound device  (/dev/dsp):

Note that OSS is deprecated, so this solution won't last very long.

> I think for getting a simple playSoundFile() API to FPC/LCL on all
> platforms, dependencies to 3rd-party libs can be avoided.

If you want you program to be a good desktop citizen, you should talk
directly to the sound daemon (pulse on gnome, phonon on kde?).

Henry



More information about the fpc-pascal mailing list