From 70be768e8ea5ffa00eda1d190c9500b5614448d5 Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Fri, 15 Nov 2019 20:37:05 +0100
Subject: [PATCH] Fixed ALSA handling.

---
 modules/liquidsoap/library.liq | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/liquidsoap/library.liq b/modules/liquidsoap/library.liq
index 85e75e9d..d0b19028 100644
--- a/modules/liquidsoap/library.liq
+++ b/modules/liquidsoap/library.liq
@@ -105,21 +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
+            log("--- Set ALSA Output ---")
             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 ---")
+            output.jack(id=name, source)
         else
-            output.pulseaudio(id=name, client="AuraEngine Line OUT", source)
             log("--- Set PULSE AUDIO Output ---")
+            output.pulseaudio(id=name, client="AuraEngine Line OUT", source)
         end
     else
         log("OUTPUT DUMMY")
-- 
GitLab