All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: using the sequencer with raw byte streams?
Date: Tue, 29 Jul 2003 19:24:34 +0200	[thread overview]
Message-ID: <s5hbrvds0tp.wl@alsa2.suse.de> (raw)
In-Reply-To: <s5hispviyds.wl@alsa2.suse.de>

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

      reply	other threads:[~2003-07-29 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-20 23:28 using the sequencer with raw byte streams? Paul Davis
2003-07-21 14:44 ` Takashi Iwai
2003-07-21 17:18   ` Paul Davis
     [not found]   ` <20030721171249.255CB14C36@Cantor.suse.de>
2003-07-21 17:27     ` Takashi Iwai
2003-07-29 17:24       ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hbrvds0tp.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=paul@linuxaudiosystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.