Re: Playing .WAV files on Linux

From: Jan Panteltje (pNaonStpealmtje_at_yahoo.com)
Date: 04/07/04


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
<scott@bugfree.salley.net> wrote in <slrnc75jjq.llc.scott@bugfree.salley.net>:

>On 24 Mar 2004 13:07:39 -0800, Will <wv9557@yahoo.com> wrote:
>> Hello
>> I am looking for the Linux equivalent of
>> waveOutOpen()
>> waveOutWrite()
>> 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);
> ...
> fclose(fp);
>
>--
>Scott Lacy Smith <scottlacysmith@qwest.net>
> "Nullus Anxietas"
>
Coming to think about it, cat xxx.wav | edscat will also work, but only
for 44100 samples/s it seems.
JP



Relevant Pages

  • Re: Playing .WAV files on Linux
    ... > These are Win32 calls to let you play wav file on windows. ... waveOutOpen and waveOutWrite are not really for playing wav files, ...
    (comp.os.linux.development.apps)
  • Re: Playing .WAV files on Linux
    ... > These are Win32 calls to let you play wav file on windows. ... waveOutOpen and waveOutWrite are not really for playing wav files, ...
    (comp.os.linux.development.system)
  • Re: Playing .WAV files on Linux
    ... >> These are Win32 calls to let you play wav file on windows. ... >waveOutOpen and waveOutWrite are not really for playing wav files, ...
    (comp.os.linux.development.system)
  • Re: Playing .WAV files on Linux
    ... > waveOutWrite() ... > 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. ...
    (comp.os.linux.development.apps)
  • Re: Playing .WAV files on Linux
    ... > waveOutWrite() ... > 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. ...
    (comp.os.linux.development.system)