Subject: Re: [linux-audio-dev] [ot] rawmidi && alsa
From: Abramo Bagnara (abramo_AT_alsa-project.org)
Date: Tue Apr 24 2001 - 01:09:34 EEST
Paul Davis wrote:
>
> >Please avoid to use direct access to ALSA kernel API, this means to ask
> >for troubles.
> >
> >Please understand that we'll have no hesitation to break compatibility
> >of your applications with future releases.
> >
> >You've no drawbacks to use alsa-lib API.
>
> it doesn't work on FIFO's, sockets and pipes. for many of us, thats a
> HUGE disadvantage. having a different API depending on what kind of
> file descriptor we're writing to makes no sense in the case of raw
> MIDI data. for audio data, i can entirely accept it, but MIDI is just
> a simple byte stream, and i would be very dismayed if ALSA breaks the
> operation of read/write/open/close on the MIDI file descriptors.
>
> there is absolutely nothing that i know of above read/write/open/close
> in the ALSA raw MIDI API that is of use to any application I have ever
> seen.
No drop, no drain, no status, no avail_min, no buffer_size?
No support for client/server using the same API.
To have a rawmidi type for use with ordinary files (FIFO, sockets and
pipes) it's trivial to implement.
snd_rawmidi_open(NULL, &output, "file:/tmp/RMIDI", 0);
And you've a program useable with *all* rawmidi types (current or
future).
-- Abramo Bagnara mailto:abramo_AT_alsa-project.orgOpera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy
ALSA project http://www.alsa-project.org It sounds good!
This archive was generated by hypermail 2b28 : Tue Apr 24 2001 - 01:32:25 EEST