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



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

morning = mksafe(single("1.mp3"))
afternoon = mksafe(single("2.mp3"))


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

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