Fix crossfade

This commit is contained in:
2024-04-23 23:36:45 +02:00
parent 5beb1c6fdd
commit abef18f4ad
+2 -2
View File
@@ -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