From abef18f4ad04985c2bf1f22ca1131eb5d33cb883 Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 23 Apr 2024 23:36:45 +0200 Subject: [PATCH] Fix crossfade --- conjurer_musician/radio_conjurer.liq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conjurer_musician/radio_conjurer.liq b/conjurer_musician/radio_conjurer.liq index b6373cf..19d40d8 100644 --- a/conjurer_musician/radio_conjurer.liq +++ b/conjurer_musician/radio_conjurer.liq @@ -67,7 +67,6 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia # Apply audio processing effects s = nrj(normalize(s)) - s = crossfade(fade_out=3., fade_in=3., duration=5., s) s = amplify(a, s) # Skip blank sections in the stream @@ -89,7 +88,8 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3") # Create a fallback stream with the main stream and emergency track - radio = fallback(id="switcher", track_sensitive=false, [requests_queue, s, emergency]) + radio = crossfade(fade_out=3., fade_in=3., duration=5., fallback(id="switcher", track_sensitive=false, [requests_queue, s, emergency])) + thread.run(every=60., queue_processing) # Handle metadata events