From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: using the sequencer with raw byte streams? Date: Tue, 29 Jul 2003 19:24:34 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030721171249.255CB14C36@Cantor.suse.de> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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