mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 07:12:09 +00:00
Fix crossfade
This commit is contained in:
@@ -67,7 +67,6 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia
|
|||||||
|
|
||||||
# Apply audio processing effects
|
# Apply audio processing effects
|
||||||
s = nrj(normalize(s))
|
s = nrj(normalize(s))
|
||||||
s = crossfade(fade_out=3., fade_in=3., duration=5., s)
|
|
||||||
s = amplify(a, s)
|
s = amplify(a, s)
|
||||||
|
|
||||||
# Skip blank sections in the stream
|
# 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")
|
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
|
# 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)
|
thread.run(every=60., queue_processing)
|
||||||
|
|
||||||
# Handle metadata events
|
# Handle metadata events
|
||||||
|
|||||||
Reference in New Issue
Block a user