[LAD] Problem with small ALSA rawmidi app

Clemens Ladisch clemens at ladisch.de
Fri Oct 23 07:34:42 UTC 2009

Frank Neumann wrote:
>  snd_rawmidi_read(handle_in, NULL, 0); /* trigger reading */
> So, a dummy read on the inbound connection gets it going.


> 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

Best regards,

More information about the Linux-audio-dev mailing list