Re: Playing .WAV files on Linux
From: Jan Panteltje (pNaonStpealmtje_at_yahoo.com)
Date: Wed, 07 Apr 2004 16:36:11 GMT
On a sunny day (Wed, 07 Apr 2004 05:40:01 GMT) it happened Scott Lacy Smith
<email@example.com> wrote in <firstname.lastname@example.org>:
>On 24 Mar 2004 13:07:39 -0800, Will <email@example.com> wrote:
>> I am looking for the Linux equivalent of
>> These are Win32 calls to let you play wav file on windows.
>> In general what is the preferred API to play wave files on Linux.
>waveOutOpen and waveOutWrite are not really for playing wav files,
>they are how you interface to the sound system on Windows.
>On many Linux/Unix systems the sound device appears as a file you
>open for writing:
> fp = fopen("/dev/dsp", "w");
> fwrite(..., fp);
>Scott Lacy Smith <firstname.lastname@example.org>
> "Nullus Anxietas"
Coming to think about it, cat xxx.wav | edscat will also work, but only
for 44100 samples/s it seems.