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
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 out