[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.

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



More information about the Linux-audio-dev mailing list