Good question. Some upper-end sound-cards (notably the SB AWE 64 Gold) have
digital outputs -- likely what you're looking for. If one doesn't have a
digital out, it's still likely that an intermediary line in the soundcard is
carrying to digital output to the DAC (which will go to the analog output).
I've got no idea if one can access this info via a device file, hopefully
someone else can shed some light.
Andy
> -----Original Message-----
> From: James [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 20, 1998 5:22 PM
> To: Linux C Programming List
> Subject: Soundcards...
>
> how can i capture the data that my soundcard produces when it makes
> sounds?
> e.g i run an mpeg decoder, whilst it's playing i have some other program
> (that i'm trying to write) that captures this data (what device, etc?) and
> writes it to a file (actually it'll send it out a serial port, but that's
> later on).
>
> i have an idea that i need to read some device file, but which one?
> i think if i read /dev/dsp whilst the sound is being played it will
> contain
> what the soundcard is currently playing (i tried it by :
> cat some_wav > /dev/dsp > temp.wav,
> bwavplay temp.wav
>
> and it sounded the same)
> is that right?
>
> --
> [EMAIL PROTECTED] http://x-map.home.ml.org