Re: [LAD] Problem with small ALSA rawmidi app

2009-10-23 Thread Gabriel M. Beddingfield
On Fri, 23 Oct 2009, Paul Davis wrote: This is the wrong list for the request.  Check ALSA's mailing lists and bugtracker. are they the ones with 10,000 spam messages a month? :) or did that get "fixed" somehow? Well, haven't heard much alsa-dev chatter on *this* channel. :-) However, I'

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-23 Thread Paul Davis
On Fri, Oct 23, 2009 at 11:08 AM, Gabriel M. Beddingfield wrote: > > > On Fri, 23 Oct 2009, Frank Neumann wrote: > >> Ok, understood; may I request that this be added to the API documentation? I >> couldn't find any hint on that in the auto-generated documentation under >> .../alsa-lib-1.0.20/doc/

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-23 Thread Gabriel M. Beddingfield
On Fri, 23 Oct 2009, Frank Neumann wrote: > Ok, understood; may I request that this be added to the API documentation? I > couldn't find any hint on that in the auto-generated documentation under > .../alsa-lib-1.0.20/doc/doxygen/html/rawmidi.html. This is the wrong list for the request. Check

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-23 Thread Frank Neumann
Hi, On Fri, 23 Oct 2009 09:34:42 +0200 Clemens Ladisch wrote: > > So, a dummy read on the inbound connection gets it going. > > Yes. > > > Any idea why this is necessary? "buffer pre-warm"? > > The input port isn't enabled before the first read to allow the > application to reconfigure the po

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-23 Thread Clemens Ladisch
Frank Neumann wrote: > snd_rawmidi_read(handle_in, NULL, 0); /* trigger reading */ > > So, a dummy read on the inbound connection gets it going. Yes. > Any idea why this is necessary? "buffer pre-warm"? The input port isn't enabled before the first read to allow the application to reconfigure

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-22 Thread Frank Neumann
Hi, On Thu, 22 Oct 2009 13:46:51 -0400 Paul Davis wrote: [..] > > What I basically do is (code excerpt / pseudo code): > > > > snd_rawmidi_t *handle_in = 0, *handle_out = 0; > > unsigned char ibuf[256]; > > unsigned char obuf[] = { 0xf0, .., 0xf7 }; /* 6 bytes sysex */ > > > > snd_rawmidi_open(

Re: [LAD] Problem with small ALSA rawmidi app

2009-10-22 Thread Paul Davis
On Thu, Oct 22, 2009 at 1:21 PM, Frank Neumann wrote: > > Hi, > > I am trying to communicate with a "real" MIDI device through the ALSA RawMidi > API, but it doesn't quite do what I want. > > I want to: > - Send a small SysEx package that asks a device for some data > - Receive the answer > > What

[LAD] Problem with small ALSA rawmidi app

2009-10-22 Thread Frank Neumann
Hi, I am trying to communicate with a "real" MIDI device through the ALSA RawMidi API, but it doesn't quite do what I want. I want to: - Send a small SysEx package that asks a device for some data - Receive the answer What I basically do is (code excerpt / pseudo code): snd_rawmidi_t *handle_i