-
Notifications
You must be signed in to change notification settings - Fork 0
/
lofiscifi.liq
37 lines (29 loc) · 1.26 KB
/
lofiscifi.liq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/liquidsoap
# Retrieve Secrets
%include "lofiscifi_config.liq"
# Log dir
set("log.file.path",log_file_path_and_filename)
# Programs
programmes = playlist(reload=600,"/home/phil/oldtimeradio/audio_sources/station_programmes.m3u")
# Some station idents
station_idents = playlist(reload=600,"/home/phil/oldtimeradio/audio_sources/station_idents/station_idents.m3u")
# Some promos
drop_ins = playlist(reload=600,"/home/phil/oldtimeradio/audio_sources/scifi_dropins/scifi_dropins.m3u")
# If something goes wrong, we'll play this
security = single("/home/phil/oldtimeradio/audio_sources/default.mp3")
# Add the programs and promos/commercials
radio = random(weights=[1,3,2],[ drop_ins, programmes, station_idents ])
# And finally the security
radio = fallback(track_sensitive = false, [radio, security])
# later if we want to add a sequential playlsit, e.g. a serialized show
# playlist(mode="normal", "/home/phil/oldtimeradio/audio_sources/some_serialized_thing.m3u")
radio_stereo = audio_to_stereo(radio)
# Stream it out
output.icecast(%mp3,
host = "localhost", port = 8000,
password = icecast_password, mount = "lofiscifi-mp3",
radio_stereo)
output.icecast(%vorbis,
host = "localhost", port = 8000,
password = icecast_password, mount = "lofiscifi-ogg",
radio_stereo)