On Fri, 21 Aug 1998, James wrote:
> how can i capture the data that my soundcard produces when it makes sounds?
Not very easily using software, you would need to use pipes and a
program to write to a file and the device file. ioclt() is used
to set sampling speed/size, it's problematic. If someone has a way
to do this I'd be interested in find out how.
Using two sound cards with inputs and ouputs wired to together.
One recording the output of the other would be easier.
> 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?
cat some_wav > /dev/dsp > temp.wav
I think that under csh that would be considered ambiguous command
line syntax. Under the Bourne shell the file /dev/dsp might be openned,
but stdout gets directed to temp.wav and should never touch /dev/dsp.
/dev/dsp is also locked when a process has openned it for read
or write (or both ?) so one only process may use it.
Short of writing a daemon that handles sound processing I have no
idea as to a software solution.