Re: Playing .WAV files on Linux
From: Scott Lacy Smith (scott_at_bugfree.salley.net)
Date: 04/07/04
- Next message: Paul Pluzhnikov: "Re: free'd address still readable?"
- Previous message: Tim Roberts: "Re: 64 bit or 32 bit"
- Next in thread: Jan Panteltje: "Re: Playing .WAV files on Linux"
- Reply: Jan Panteltje: "Re: Playing .WAV files on Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Next message: Paul Pluzhnikov: "Re: free'd address still readable?"
- Previous message: Tim Roberts: "Re: 64 bit or 32 bit"
- Next in thread: Jan Panteltje: "Re: Playing .WAV files on Linux"
- Reply: Jan Panteltje: "Re: Playing .WAV files on Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|