-
Notifications
You must be signed in to change notification settings - Fork 1
/
receivers.liq
52 lines (45 loc) · 1.22 KB
/
receivers.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/local/bin/liquidsoap -v
# Bolted on by Matthew Stratford 2018 <[email protected]>
%include "conf/ice.conf"
#%include "conf/jukebox.conf"
#%include "conf/am.conf"
set("init.daemon.pidfile.path", "/usr/local/var/run/liquidsoap/recievers.pid")
set("log.stdout",true)
set("log.level",3)
set("log.file", true)
set("log.file.path","/usr/local/var/log/liquidsoap/receivers.log")
set("frame.audio.channels",2)
set("frame.audio.samplerate",48000)
# Sources
dab = input.jack(id="dab")
dab = amplify(1.0, dab)
fm = input.jack(id="fm")
fm = amplify (2.5, fm)
clock.assign_new(id="dabStream",
[output.icecast(
%mp3(bitrate=192, samplerate=48000, stereo=true),
host=icehost,
port=iceport,
password=icepass,
mount="dab",
url=website,
description=description,
name="Our shiny new DAB Reciever Feed | " ^ name,
genre="Student Radio",
start=true,
mksafe(buffer(dab)))],
)
clock.assign_new(id="fmStream",
[output.icecast(
%mp3(bitrate=192, samplerate=48000, stereo=true),
host=icehost,
port=iceport,
password=icepass,
mount="fm",
url=website,
description=description,
name="FM Reciever Feed | " ^ name,
genre="Student Radio",
start=true,
mksafe(buffer(fm)))],
)