From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: using the sequencer with raw byte streams? Date: Mon, 21 Jul 2003 16:44:27 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <200307202328.h6KNS2I01842@linuxaudiosystems.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200307202328.h6KNS2I01842@linuxaudiosystems.com> 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 Sun, 20 Jul 2003 19:28:02 -0400, Paul Davis wrote: > > is there a relatively simple way to use the sequencer with raw byte > streams? i want to create an "ASEQ_Port" type for libmidi++, but > unlike the current support port types, the sequencer seems to be > totally based on typed events. libmidi++ allows applications to format > arbitrary messages and have them delivered to a port. it also has its > own sophisticated parser that includes heavy use of libsigc++ to allow > anonymous notification of many more event types than the sequencer > code currently defines. "arbitrary" includes non-MIDI byte streams? > i'd like to find a way to connect these two abstractions together > somehow, since it would make Ardour play "nice" in the set of > sequencer clients that already exist. i can see the "RAW" event type > flag, which looks as if it might work for delivery data to the > sequencer, but i can't see any mechanism for retrieving unparsed data > from the system. can it be done? to send/receive raw (non-MIDI) byte streams, you can use app-dependent type (SND_SEQ_EVENT_USRx or SND_SEQ_EVENT_USR_VARx). in this case, both the receiver and the sender clients must know the type. the default event encoder/decoder wouldn't handle such events (ignored). Takashi ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0