Hello,
I noticed that writing ALSA sequencer events sometimes fails. When I debugged further, the cause seems to be that the receiving side (Yoshi softsynth) has set an event filter using snd_seq_client_info_event_filter_add, and the sending application sends events that are filtered out.
From ptrace:
write(3, "\10\0\0\375\0\0\0\0\0\0\0\0\0\0\376\375\t) \0\0\0\0\0\0\0\0\0", 28) = -1 ENOENT (No such file or directory)
I think it is wrong that the sender gets errors in this case. It can send events all day succesfuly as long as the port is not connected (meaning they all get dropped), but when you connect it to a filtering client (and some get dropped), it fails.
Details: OS: Ubuntu 14.04 Kernel: 3.13.0-30-generic libasound2 version: 1.0.27.2-3ubuntu7
Wladimir