From 2524b9ea2a47aac8aab3c2008cbef353b415c69f Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Fri, 15 Nov 2019 19:40:20 +0100 Subject: [PATCH] Default output for ALSA in case no device is set. --- modules/liquidsoap/library.liq | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/liquidsoap/library.liq b/modules/liquidsoap/library.liq index a8ac70e8..85e75e9d 100644 --- a/modules/liquidsoap/library.liq +++ b/modules/liquidsoap/library.liq @@ -105,16 +105,21 @@ end # line out # ############ -def get_output(source, device, name) = +def get_output(source, device, name) if device != "" then if use_alsa == true then - output.alsa(id=name, device=device, bufferize = false, source) - + if device == "default" then + output.alsa(id="lineout", bufferize = false, source) + else + output.alsa(id=name, device=device, bufferize = false, source) + end + log("--- Set ALSA Output ---") elsif use_jack == true then output.jack(id=name, source) - + log("--- Set JACK AUDIO Output ---") else output.pulseaudio(id=name, client="AuraEngine Line OUT", source) + log("--- Set PULSE AUDIO Output ---") end else log("OUTPUT DUMMY") -- GitLab