Re: [linux-audio-dev] MIDI routing, FIFO's etc.

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] MIDI routing, FIFO's etc.
From: Benno Senoner (sbenno_AT_gardena.net)
Date: la loka   09 1999 - 18:26:08 EDT


On Sat, 09 Oct 1999, Paul Barton-Davis wrote:
> >One specific app I had in mind was KeyKit. While it does allow you to
> >specify a device file, it expects to be able to read and write from
> >this single device. Unless linux pipes are different from standard
> >unix ones, they can only be opened for read or write. It would be
> >nice if apps let you specify a different device file for input and
> >output, but the last time I looked at the KeyKit sources (it's been
> >a while), it would require some work to do this.
>
> You general point is well taken - pipes are not the same as a file.
>
> OTOH, If you want my patches to fix KeyKit to use different devices
> for input and output, let me know. I did them a year and half back
> precisely to support the use of FIFO's. I can't remember if I ever
> sent them to Tim, but I should.
>
> --p

--

Indeed, pipes are unidirectional, I'm just curious how the /dev/dsp wrapper of esd ( esddsp ) handles fullduplex. Alternatively we could use UNIX domain sockets, there is no socket flag in mknod to create a "named socket".

Does anyone know if there is a way to make for example /dev/dsp wrapper which works in read/write mode ? maybe by letting the wrapper close the fifo filehandle, and reassign to this filedescriptor a unix socket using dup2() ?

regards, Benno.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:27:13 EST