Re: [LAD] Problem with small ALSA rawmidi app

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Fri Oct 23 2009 - 10:34:42 EEST

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 the port's settings directly after opening
it.

Best regards,
Clemens
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri Oct 23 12:15:02 2009

This archive was generated by hypermail 2.1.8 : Fri Oct 23 2009 - 12:15:02 EEST