From 3d49597247a92848ab682db002f7a1250fad033b Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Tue, 25 Sep 2012 18:37:02 -0400 Subject: add --input/--output as an alternative flags. Input/output make more sense for applications, where the pulseaudio sink/source may feel backwards --- ponymix.1 | 4 ++-- ponymix.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ponymix.1 b/ponymix.1 index a9fb00b..ad709b4 100644 --- a/ponymix.1 +++ b/ponymix.1 @@ -12,11 +12,11 @@ perform many operations on both device and application sinks and source. Control input and output devices. .IP "\fB\-a\fR, \fB\-\-app\fR" Control the playback and recording streams. -.IP "\fB\-o\fR[\fR\fISINK\fR]\fR, \fB\-\-sink\fR[\fB=\fR\fISINK\fR]" +.IP "\fB\-o\fR[\fB=\fR\fISINK\fR]\fR, \fB\-\-sink\fR[\fB=\fR\fISINK\fR], \fB\-\-output\fR[\fB=\fR\fISINK\fR]" Specify the sink to control. If the argument is omitted, the default sink is used. \fISINK\fR must be the numeric index of the sink. -.IP "\fB\-i\fR[\fR\fISOURCE\fR]\fR, \fB\-\-source\fR[\fB=\fR\fISOURCE\fR]" +.IP "\fB\-i\fR[\fB=\fR\fISOURCE\fR]\fR, \fB\-\-source\fR[\fB=\fR\fISOURCE\fR], \fB\-\-input\fR[\fB=\fR\fISOURCE\fR]" Specify the source to control. If the argument is omitted, the default source is assumed. \fISOURCE\fR must be the numeric index of the source. diff --git a/ponymix.c b/ponymix.c index c79bd06..594be89 100644 --- a/ponymix.c +++ b/ponymix.c @@ -828,7 +828,9 @@ int main(int argc, char *argv[]) { "device", no_argument, 0, 'd' }, { "help", no_argument, 0, 'h' }, { "sink", optional_argument, 0, 'o' }, + { "output", optional_argument, 0, 'o' }, { "source", optional_argument, 0, 'i' }, + { "input", optional_argument, 0, 'i' }, { 0, 0, 0, 0 }, }; -- cgit v1.2.3