On Thu, 13 Feb 2003, Takashi Iwai wrote: > Hi, > > At Wed, 12 Feb 2003 14:35:29 -0800, > Ryan Pavlik wrote: > > > > On Wed, 12 Feb 2003 21:41:50 +0100 (CET) > > Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > > > > <snip> > > > It seems that mtpav don't remeber the old status byte for each > > > channels. If it's true, then we need to take care about the expansion > > > in the mtpav driver, because the sequencer MIDI driver removes > > > duplicated status bytes to opmitize throughput. > > <snip> > > > > OK, I've attached a patch that emulated running status in the mtpav > > driver, so there shouldn't be any need to change stuff elsewhere. > > > > Thanks for your pointer, I've been wanting to fix this problem for a > > very long time. :-) > > thanks for the patch. > i applied it to cvs with a little improvement (returning immediately > if snd_rawmidi_transmit() gets null). > > also, i found a bug regarding magic-alloc/free in the driver (at > last!). fixed on cvs, too.
Unfortunately, the patch is not perfect. I think that we need to buffer the whole MIDI message and send it after completion, because it's possible, that you'll get only partial MIDI message from the rawmidi API or at buffer overrun / full. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel