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

Vit Kavan vit.kavan at gmail.com
Tue Jun 15 10:34:37 CEST 2010


On Tue, Jun 15, 2010 at 10:28 AM, Henry Vermaak <henry.vermaak at gmail.com>wrote:

> 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.
>

True. I've written my last OSS-only application a year ago and it didn't
work on over 50% of computers I've tried it on.

Now I use Alsa or Jack. Jack is very simple to use and very powerfull, but
not available everywhere. Alsa is everywhere.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100615/019106da/attachment.html>


More information about the fpc-pascal mailing list