summaryrefslogtreecommitdiffstats
path: root/lass/2configs/radio.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-06-07 08:46:17 +0200
committerlassulus <lassulus@lassul.us>2021-06-07 08:46:17 +0200
commit87c02755d0572fd21f31bc35ca5bcf967ea58b29 (patch)
treeb9d7a4ee8e9070a393f1ee2be6eeda134f68f5b7 /lass/2configs/radio.nix
parentbb79bf0ae8aeb47c6f6c74bf205ca43c74d42213 (diff)
l radio: add mp3 output
Diffstat (limited to 'lass/2configs/radio.nix')
-rw-r--r--lass/2configs/radio.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 040f5b943..05412caf2 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -144,6 +144,19 @@ in {
extraConfig = ''
log_level "default"
auto_update "yes"
+ volume_normalization "yes"
+
+ audio_output {
+ type "httpd"
+ name "lassulus radio mp3"
+ encoder "lame" # optional
+ port "8002"
+ quality "5.0" # do not define if bitrate is defined
+ # bitrate "128" # do not define if quality is defined
+ format "44100:16:2"
+ always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped.
+ tags "yes" # httpd supports sending tags to listening streams.
+ }
audio_output {
type "httpd"
@@ -163,6 +176,7 @@ in {
tables = {
filter.INPUT.rules = [
{ predicate = "-p tcp --dport 8000"; target = "ACCEPT"; }
+ { predicate = "-p tcp --dport 8002"; target = "ACCEPT"; }
{ predicate = "-i retiolum -p tcp --dport 8001"; target = "ACCEPT"; }
];
};