On Tue, 2005-07-26 at 20:43 +0200, Jens M Andreasen wrote:
snd_rawmidi_write(handle_out,gm_reset,sizeof(gm_reset));
// snd_rawmidi_drain(handle_out);
snd_rawmidi_close(handle_out);
On second thought you'd better uncomment:
// snd_rawmidi_drain(handle_out);
... since it is the write that will block, and not the close operation.
/jens