Re: Playing .WAV files on Linux
From: Jan Panteltje (pNaonStpealmtje_at_yahoo.com)
Date: 04/07/04
- Next message: Kasper Dupont: "Re: what type of socket should I use?"
- Previous message: Jan Panteltje: "Re: mouse vs. keyboard"
- In reply to: Scott Lacy Smith: "Re: Playing .WAV files on Linux"
- Next in thread: Will: "Re: Playing .WAV files on Linux"
- Reply: Will: "Re: Playing .WAV files on Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Kasper Dupont: "Re: what type of socket should I use?"
- Previous message: Jan Panteltje: "Re: mouse vs. keyboard"
- In reply to: Scott Lacy Smith: "Re: Playing .WAV files on Linux"
- Next in thread: Will: "Re: Playing .WAV files on Linux"
- Reply: Will: "Re: Playing .WAV files on Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|