summaryrefslogtreecommitdiff
path: root/seq/aplaymidi
Commit message (Collapse)AuthorAgeFilesLines
* Avoid empty initializer listMichael Forney2020-02-102-2/+2
| | | | | | | | To zero-initialize an object, use `{0}` instead. Signed-off-by: Michael Forney <mforney@mforney.org> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Avoid pointer arithmetic on `void *`Michael Forney2020-02-101-1/+1
| | | | | | | | | The pointer operand to the binary `+` operator must be to a complete object type. Signed-off-by: Michael Forney <mforney@mforney.org> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* treewide: sys/poll to pollRosen Penev2019-11-201-1/+1
| | | | | | | | | Fixes warning on musl: warning redirecting incorrect #include <sys/poll.h> to <poll.h> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* arecordmidi: simple coverity fixJaroslav Kysela2019-03-121-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* seq: arecordmidi: Add num-events optionPrashant Malani2019-02-111-3/+44
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Change FSF address (Franklin Street)Jaroslav Kysela2017-11-142-2/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Makefiles - use AM_CPPFLAGS instead INCLUDESJaroslav Kysela2014-05-071-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* aplaymidi: clarify multi-port documentationClemens Ladisch2011-11-021-1/+9
| | | | | | | | | | The man page did not document what happens when multiple ports are specified; this could be misinterpreted as the events being duplicated so that they are played on all ports simultaneously. As suggested by Peter Billam, clarify that these ports are only used for multi-port MIDI files. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* aplaymidi: reduce bandwidth for big SysEx messagesClemens Ladisch2009-08-171-1/+6
| | | | | | | When throttling the data rate for big SysEx messages, use the bandwidth that devices use in practice instead of the theoretical maximum. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Make some static tables and strings constants.Diego E. 'Flameeyes' Pettenò2008-11-212-5/+5
| | | | | | | | | | | By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* fix poll timeoutClemens Ladisch2008-02-211-1/+1
| | | | Use an infinite poll timeout to prevent unnecessary wakeups.
* arecordmidi: mention SMF type in man pageClemens Ladisch2007-09-171-1/+5
| | | | Document the SMF type (0 or 1) that will be generated by arecordmidi.
* aplaymidi: handle big SysEx commandsClemens Ladisch2006-12-041-1/+35
| | | | | | Make sure that the sequencer output buffer is big enough to handle all events that we send, and split large SysEx commands into one-second chunks so that the sequencer kernel code can handle them.
* aplaymidi: list only MIDI-capable portsClemens Ladisch2006-05-022-0/+8
| | | | | | When listing ports with aplaymidi/arecordmidi, show only ports that understand MIDI messages, i.e., that have the SND_SEQ_PORT_TYPE_MIDI_GENERIC flag set.
* Output help messages to stdoutTakashi Iwai2005-06-231-2/+2
| | | | Output help messages and lists to stdout instead of stderr.
* Remove unused variableTakashi Iwai2005-05-131-1/+0
| | | | Removed unused variable.
* move event dumping from arecordmidi to aseqdumpClemens Ladisch2005-02-212-101/+2
| | | | | Remove the event dumping functionality from arecordmidi and put it into the new aseqdump utility.
* Fix hyphens in man pagesNicolas FRANCOIS2004-10-082-19/+19
| | | | | | | | | | This patch converts hyphens to minus signs in the man pages (for options, emails, or command line examples). This patch also closes one font modifier in iecset.1. (s/\fIfalse\fI,/\fIfalse\fP,/) Signed-off-by: Nicolas FRANCOIS <nicolas.francois@centraliens.net>
* arecordmidi enhancements by Pedro Lopez-CabanillasClemens Ladisch2004-04-062-3/+271
|
* Clemens Ladisch <clemens@ladisch.de>Jaroslav Kysela2004-02-235-0/+1735
add aplaymidi & arecordmidi utilities