Permalink
Browse files

add --input/--output as an alternative flags.

Input/output make more sense for applications, where the pulseaudio
sink/source may feel backwards
  • Loading branch information...
1 parent 08b77eb commit 3d49597247a92848ab682db002f7a1250fad033b @vodik vodik committed with Sep 25, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −2 ponymix.1
  2. +2 −0 ponymix.c
View
4 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.
View
2 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 },
};

0 comments on commit 3d49597

Please sign in to comment.