From 87c02755d0572fd21f31bc35ca5bcf967ea58b29 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 7 Jun 2021 08:46:17 +0200 Subject: l radio: add mp3 output --- lass/2configs/radio.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"; } ]; }; -- cgit v1.2.3