On Wed, 28 Mar 2001, Eric G. Miller wrote:

> On Wed, Mar 28, 2001 at 09:05:45AM +0200, Sebastiaan wrote:
> > Hi,
> > 
> > yes, this is what I was looking for. Unfortunately, it does not work like
> > I wanted it to.
> 
> There has to be both a reader and a writer for the FIFO.  You can't just
> park some data there indefinitely...  That's what regular files are
> for...
Hi,

the data is read directly. I try to make a remote sound system, in which
every sound device is linked to another computer. My idea was:

(on the computer without sound)
# mv /dev/dsp /dev/dsp_org
# mkfifo /dev/dsp

And then on the computer with sound:
# ssh <remote> cat /dev/dsp > /dev/dsp

so when I cat something in /dev/dsp on the computer with no sound, it is
read by the other computer and send to his dsp, and play the sound.

Two problems here:
- cat terminates after the last byte is read
- when I use normal audio programs, like bplay, it complains that /dev/dsp
has an invalid argument, in which it is right. 

I am afraid that the latter problem can not be solved so easily. I think I
need to hack the audio drivers a bit, so I can tap off the stream.

What really would be great is a Network Character Device, like NBD. Until
now I have not been able to find this. ethertap and tuntap are not
suitable for this problem either.

I also have tried EsounD. Works great when you only want to play seperate
samples, but it is useless then a program sends it's data directly to
/dev/dsp.

If someone can help me with this, that would be really great!

Thanks,
Sebastiaan

> 
> > 
> > Thanks!
> > Sebastiaan
> > 
> > 
> > On Tue, 27 Mar 2001, R. M. Alarcon wrote:
> > 
> > > did you try mkfifo?
> > > 
> > > -----Original Message-----
> > > From: Sebastiaan [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 27, 2001 2:16 PM
> > > To: debian-user@lists.debian.org
> > > Subject: fifo devices
> > > 
> > > 
> > > (please cc me, my listserver is down ;( )
> > > 
> > > Hi,
> > > 
> > > I am looking for a fifo device. I need a device where I can store some
> > > data, and read it with another program, and deleter the existing data
> > > (just a fifo stream device).
> > > 
> > > Looking in the kernel documentation, I found rtl* devices, realtime linux
> > > fifo devices with major 150 and minor 0..., but after creating these
> > > devices, the kernel complains that there is no such device. And I can not
> > > find it in the kernel configuration.
> > > 
> > > I did some search on the internet and ran onto RT Linux. It seems that the
> > > devices are made for this project. All I need are the fifo modules.
> > > 
> > > Does anyone know anything about this, how I can get these devices
> > > working? Or other devices that can be used as a fifo?
> 
> -- 
> Eric G. Miller <egm2@jps.net>
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 

Reply via email to