set("server.telnet", true)
set("log.file.path","/tmp/<script>.log")
set("log.stdout", true)
set("log.level",3)



air_switch = interactive.bool("air", false)

#morning = single("1.mp3")
#afternoon = single("2.mp3")
morning = mksafe(single("1.mp3"))
afternoon = mksafe(single("2.mp3"))
#afternoon = mksafe(blank(id="after"))

kill_switched = switch(track_sensitive=false, [(air_switch, afternoon), ({true}, fail())])
#radio = fallback(track_sensitive=false, [kill_switched, afternoon])
radio = smooth_add(delay=5.0, p=0.0, normal=morning, special=kill_switched)
output.pulseaudio(radio)

Изменить пасту