[pulseaudio-discuss] [PATCH] pactl: Document @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@

David Henningsson david.henningsson at canonical.com
Tue Jan 29 08:29:00 PST 2013

I went to implement the possibility to use the default sink/source
but found that it was already working. So I figured I'd update
the help text instead.

Signed-off-by: David Henningsson <david.henningsson at canonical.com>
 src/utils/pactl.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/utils/pactl.c b/src/utils/pactl.c
index 79b1545..8f6bedc 100644
--- a/src/utils/pactl.c
+++ b/src/utils/pactl.c
@@ -1499,6 +1499,8 @@ static void help(const char *argv0) {
     printf("%s %s %s %s\n", argv0, _("[options]"), "set-sink-formats", _("#N FORMATS"));
     printf("%s %s %s %s\n", argv0, _("[options]"), "set-port-latency-offset", _("CARD-NAME|CARD-#N PORT OFFSET"));
     printf("%s %s %s\n",    argv0, _("[options]"), "subscribe");
+    printf(_("\nThe special names @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@\n"
+             "can be used to specify the default sink, source and monitor.\n"));
              "  -h, --help                            Show this help\n"

More information about the pulseaudio-discuss mailing list