summaryrefslogtreecommitdiff
path: root/usr.bin/midiplay
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-03-11 22:54:07 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-03-11 22:54:07 +0000
commit7e8257f5304c57834ec1830956a1ee670472086e (patch)
treef8f44d002b29b2489e29fe4127d60cf3f60a6a09 /usr.bin/midiplay
parent9706d6898941fa5f975fe7043fc44b7c2f9071e4 (diff)
- synopsis according to style(9)
- add missing -q option - sync usage() - minor tweaks while here
Diffstat (limited to 'usr.bin/midiplay')
-rw-r--r--usr.bin/midiplay/midiplay.117
-rw-r--r--usr.bin/midiplay/midiplay.c6
2 files changed, 10 insertions, 13 deletions
diff --git a/usr.bin/midiplay/midiplay.1 b/usr.bin/midiplay/midiplay.1
index 5f47634fb7f..f52d078e203 100644
--- a/usr.bin/midiplay/midiplay.1
+++ b/usr.bin/midiplay/midiplay.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: midiplay.1,v 1.8 2001/08/17 11:13:58 mpech Exp $
+.\" $OpenBSD: midiplay.1,v 1.9 2005/03/11 22:54:06 jmc Exp $
.\" $NetBSD: midiplay.1,v 1.3 1998/08/13 18:26:36 augustss Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,23 +42,20 @@
.Nd play MIDI files
.Sh SYNOPSIS
.Nm midiplay
+.Op Fl lmqvx
.Op Fl d Ar devno
.Op Fl f Ar file
-.Op Fl l
-.Op Fl m
.Op Fl t Ar tempo
-.Op Fl v
-.Op Fl x
.Op Ar file ...
.Sh DESCRIPTION
The
.Nm
command plays MIDI files using the sequencer device.
-If no file name is given it will play from standard input, otherwise
-it will play the named files.
+If no file name is given it will play from standard input;
+otherwise it will play the named files.
.Pp
The options are as follows:
-.Bl -tag -width Ds
+.Bl -tag -width "-d devnoXX"
.It Fl d Ar devno
Specifies the number of the MIDI device used for output (as listed
by the
@@ -70,7 +67,7 @@ Specifies the name of the sequencer device.
.It Fl l
List the possible devices without playing anything.
.It Fl m
-Show MIDI file meta events (copyright, lyrics, etc).
+Show MIDI file meta events (copyright, lyrics, etc.).
.It Fl q
Do not play the MIDI file, just parse it.
.It Fl t Ar tempo
@@ -78,7 +75,7 @@ Specifies the tempo.
Default is 100.
.It Fl v
Be verbose.
-If the flag is repeated the verbosity increases.
+If the flag is repeated, the verbosity increases.
.It Fl x
Play a small sample sound.
.El
diff --git a/usr.bin/midiplay/midiplay.c b/usr.bin/midiplay/midiplay.c
index be0c81de98e..4f6d456bea6 100644
--- a/usr.bin/midiplay/midiplay.c
+++ b/usr.bin/midiplay/midiplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midiplay.c,v 1.5 2004/05/14 04:27:26 tedu Exp $ */
+/* $OpenBSD: midiplay.c,v 1.6 2005/03/11 22:54:06 jmc Exp $ */
/* $NetBSD: midiplay.c,v 1.8 1998/11/25 22:17:07 augustss Exp $ */
/*
@@ -132,8 +132,8 @@ u_char sample[] = {
void
usage(void)
{
- printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo]"
- "[-v] [-x] [file ...]\n", __progname);
+ printf("Usage: %s [-lmqvx] [-d devno] [-f file] [-t tempo] "
+ "[file ...]\n", __progname);
exit(1);
}