[linux-audio-dev] Q: OSS, MIDI and pipes

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

Subject: [linux-audio-dev] Q: OSS, MIDI and pipes
From: Stefan Nitschke (nitschke_AT_fzi.de)
Date: ke heinä  21 1999 - 11:42:18 EDT


Switching to a linux 2.2.5 kernel, I noticed that there is a midi
loop-back device. Unfortunately this device can not be used to connect a
midi sequencer application, writing to /dev/sequencer, and a real time
synthesizer, reading from /dev/midiXX.

I think such a functionality would be very nice and should be very simple
to implement by using a native unix stream: a pipe.

The idea is:
Every time a midi byte is send to the hardware midi device it is also written
to a pipe (for example /dev/midipipe) if this pipe has a reader (basic unix
functionality).

The stream of such a midi pipe could than be duplicated by a standard unix tool
like 'tee' in user space to have support for more than one connected
application ... a plain unix concept -> highest flexibility and lowest overhead.

I am not sure if this works perfect. AFAIK the OSS sequencer does all the
midi output timing and the midi device on soundcards is just a simple
UART like device without any special timing capability.

The problem I have is:
How to open and access a pipe from within a kernel module?
Is it possible with linux? Any problems with signal setting stuff when
using pipes within system space?

Has anyone suggestions?

- Stefan


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:25:52 EST