From fcfb3c0951b6e2e06e7bf282e867576d8abb00c4 Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Wed, 17 Feb 2016 11:31:59 +0100 Subject: 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 --- plugins/audio/audio-pulse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/audio/audio-pulse.c') diff --git a/plugins/audio/audio-pulse.c b/plugins/audio/audio-pulse.c index 4caf3db5..ceffcf7d 100644 --- a/plugins/audio/audio-pulse.c +++ b/plugins/audio/audio-pulse.c @@ -94,6 +94,8 @@ PUBLIC unsigned char _pulse_init (const char *name, audioCtxHandleT *ctx) { client_count++; + if (verbose) fprintf (stderr, "Successfully initialized PulseAudio backend.\n"); + return 0; } -- cgit 1.2.3-korg