ALSA sequencer: Avoid input buffer overrun with High-Speed MIDI
问题 I want to send large SysEx messages (which can be several Megabytes) through the ALSA sequencer: Currently I split them into several ALSA events and send each of them in a loop like that: while (1) { result = snd_seq_event_output_direct( seq, const_cast<snd_seq_event_t*>(&ev) ); if (result != -EAGAIN && result != -EWOULDBLOCK) break; snd_seq_sync_output_queue( seq ); //std::this_thread::sleep_for(sleeptime); } This loop ensures that all events get sent from the sending client/port. But as