Re: Playing .WAV files on Linux

From: Scott Lacy Smith (scott_at_bugfree.salley.net)
Date: 04/07/04


Date: Wed, 07 Apr 2004 05:40:01 GMT

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" 


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