Skip to content

Commit

Permalink
audio: update usage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Jun 19, 2013
1 parent b8e8a22 commit a38a03e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
2 changes: 1 addition & 1 deletion audio_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion audio_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a38a03e

Please sign in to comment.