alsa-utils/seq/aplaymidi
Prashant Malani 52c9cc9571 seq: arecordmidi: Add num-events option
Add a command line option to automatically exit after recording a fixed
number of MIDI events. This allows a program using arecordmidi to expect
a MIDI file to be written automatically when the specified number of
events have been received, instead of having to send a SIGINT or SIGTERM
programmatically.

It also avoids the need to have the arecordmidi process running in the
background, and then constantly stat the output file to check if any
bytes have been written to it (this makes for less predictable and
longer-running tests).

This functionality finds use in Chrome OS functional testing, since
having to send SIGTERM/SIGINT programmatically and then wait for the
output file adds unpredictability and delay to the tests.

The addition of this command-line option should (hopefully) not break
any existing usage.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-02-11 09:13:47 +01:00
..
aplaymidi.1 aplaymidi: clarify multi-port documentation 2011-11-02 20:03:42 +01:00
aplaymidi.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
arecordmidi.1 arecordmidi: mention SMF type in man page 2007-09-17 09:44:29 +02:00
arecordmidi.c seq: arecordmidi: Add num-events option 2019-02-11 09:13:47 +01:00
Makefile.am Makefiles - use AM_CPPFLAGS instead INCLUDES 2014-05-07 10:55:59 +02:00