Re: Soundcards...

1998-08-25 Thread Michele Bini
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

RE: Soundcards...

1998-08-24 Thread Andrew Bell
> 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 > on the other do: > > cat /dev/dsp > capture > >

Re: Soundcards...

1998-08-24 Thread luser
On Fri, 21 Aug 1998, James wrote: > but it's crappy quality (sounds like 11025 8bit mono). Maybe that's the > default for that and i need to change it. I'm not sure. Try something like: int S; int desdsp; if( (dspdes = open("/dev/dsp", O_RDONLY)) == -1) { /* clean up */ } S = 4

Re: Soundcards...

1998-08-21 Thread James
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 on the other do: cat /dev/dsp > capture then stop the mpeg a

Re: Soundcards...

1998-08-21 Thread James
On Fri, 21 Aug 1998, luser 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. I

Re: Soundcards...

1998-08-21 Thread luser
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 s

Re: Soundcards...

1998-08-21 Thread Glynn Clements
James wrote: > 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 s

RE: Soundcards...

1998-08-20 Thread Andrew Bell
o 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

Soundcards...

1998-08-20 Thread James
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