From a38a03ed7d1612a8ea8ad0e46bbd4d7cc956a1d3 Mon Sep 17 00:00:00 2001 From: James Laird Date: Thu, 20 Jun 2013 01:06:08 +1000 Subject: [PATCH] audio: update usage messages --- audio.c | 6 ++++++ audio_dummy.c | 2 +- audio_pipe.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/audio.c b/audio.c index d0bcf988..df5f8825 100644 --- a/audio.c +++ b/audio.c @@ -64,4 +64,10 @@ void audio_ls_outputs(void) { printf("Available audio outputs:\n"); for (out=outputs; *out; out++) printf(" %s%s\n", (*out)->name, out==outputs ? " (default)" : ""); + + for (out=outputs; *out; out++) { + printf("\n"); + printf("Options for output %s:\n", (*out)->name); + (*out)->help(); + } } diff --git a/audio_dummy.c b/audio_dummy.c index 67245267..24007d53 100644 --- a/audio_dummy.c +++ b/audio_dummy.c @@ -69,7 +69,7 @@ static void stop(void) { } static void help(void) { - printf("There are no options for dummy audio.\n"); + printf(" There are no options for dummy audio.\n"); } audio_output audio_dummy = { diff --git a/audio_pipe.c b/audio_pipe.c index d6e5dee2..912f647d 100644 --- a/audio_pipe.c +++ b/audio_pipe.c @@ -72,7 +72,7 @@ static void deinit(void) { } static void help(void) { - printf("pipe takes 1 argument: the name of the FIFO to write to.\n"); + printf(" pipe takes 1 argument: the name of the FIFO to write to.\n"); } audio_output audio_pipe = {