On Fri, 21 Aug 1998, James wrote:

> On Fri, 21 Aug 1998, luser wrote:
> 
> -/dev/dsp is also locked when a process has openned it for read 
> -or write (or both ?) so one only process may use it.
> 
> not with my card, if i have 2 VTs running i can play an mpeg on one, and
What card do you have?

> on the other do:
> 
>       cat /dev/dsp > capture
> 
> then stop the mpeg and do:
> 
>       cat capture > /dev/dsp
> 
> but it's crappy quality (sounds like 11025 8bit mono). Maybe that's the
> default for that and i need to change it.
You cannot do this using standard unix commands. There are many utilies
for sound recording (bplay, brec, vplay, vrec ...).
You can set the sample rate and the number of bits and enable stereo using
some ioctls named SNDCTL_*.
You can find them in the ioctl_list man page.
For example you can use SNDCTL_DSP_SPEED to set sample rate.

Ciao
Michele


Reply via email to