At Mon, 21 Jul 2003 19:27:11 +0200,
I wrote:
> 
> maybe we can add an API to create a "virtual MIDI" device in the
> rawmidi form, which exactly virmidi module does but on user-space.

i added this feature to alsa-lib cvs now.
you can create a virtual rawmidi instance with the normal
snd_rawmidi_open() call but using the name "virtual":

        snd_rawmidi_open(&input_handle, &output_handle, "virtual", 0);

then a sequencer port is opened, and the read/write access to the port
is converted from/to MIDI byte streams on this rawmidi instance.
so, basically, you don't need to change your code so much :)
of course, you cannot call read() or write() directly.  instead, use
snd_rawmidi_read() and snd_rawmidi_write().

so far, there is no default connection when it's opened.
the configuration will be extended later to allow the definition of
default connections.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to