aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-alsa.c
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-02-17 11:31:59 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2016-02-17 11:31:59 +0100
commitfcfb3c0951b6e2e06e7bf282e867576d8abb00c4 (patch)
treea035500aa54ab230387e453c8ec704436ad502c4 /plugins/audio/audio-alsa.c
parent8ea2dc9f4df0a6d61e430d53d19eb0ea3633bf23 (diff)
Audio plugin: choose between Pulse/ALSA at runtime
If the AFB_AUDIO_OUTPUT environment variable is defined to "Pulse/Alsa", it will try to initialize the given backend (still falling back to Alsa for now). Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-alsa.c')
-rw-r--r--plugins/audio/audio-alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/audio/audio-alsa.c b/plugins/audio/audio-alsa.c
index 7310ea89..bc777fce 100644
--- a/plugins/audio/audio-alsa.c
+++ b/plugins/audio/audio-alsa.c
@@ -130,6 +130,8 @@ PUBLIC unsigned char _alsa_init (const char *name, audioCtxHandleT *ctx) {
ctx->mute = _alsa_get_mute (num);
ctx->idx = num;
+ if (verbose) fprintf (stderr, "Successfully initialized ALSA backend.\n");
+
return 0;
}