Skip to content

Commit

Permalink
Make dummy, pipe and stdout back ends truly optinal
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Aug 1, 2015
1 parent 5bd060f commit 55f57c1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ extern audio_output audio_pulse;
#ifdef CONFIG_ALSA
extern audio_output audio_alsa;
#endif
extern audio_output audio_dummy, audio_pipe, audio_stdout;
#ifdef CONFIG_DUMMY
extern audio_output audio_dummy;
#endif
#ifdef CONFIG_PIPE
extern audio_output audio_pipe;
#endif
#ifdef CONFIG_STDOUT
extern audio_output audio_stdout;
#endif

static audio_output *outputs[] = {
#ifdef CONFIG_SNDIO
Expand All @@ -56,7 +64,16 @@ static audio_output *outputs[] = {
#ifdef CONFIG_AO
&audio_ao,
#endif
&audio_dummy, &audio_pipe, &audio_stdout, NULL};
#ifdef CONFIG_DUMMY
&audio_dummy,
#endif
#ifdef CONFIG_PIPE
&audio_pipe,
#endif
#ifdef CONFIG_STDOUT
&audio_stdout,
#endif
NULL};

audio_output *audio_get_output(char *name) {
audio_output **out;
Expand Down

0 comments on commit 55f57c1

Please sign in to comment.