From 9a27077d5544b842ad21bba438aaf1254fc5a595 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 25 Feb 2023 14:53:31 +0400 Subject: [PATCH] Made use of replaygain and tweaked normalization, so my radio must become louder. --- configs/radio.liq | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/radio.liq b/configs/radio.liq index 4a5c707..fe0e861 100644 --- a/configs/radio.liq +++ b/configs/radio.liq @@ -26,6 +26,8 @@ settings.log.file.set(true) settings.log.file.path.set(log_file_path) settings.log.stdout.set(false) +enable_replaygain_metadata() + fallback_song = mksafe(single(fullpath("fallback.ogg"))) fallback_song = metadata.map(fallback_alter_title, fallback_song) @@ -34,17 +36,18 @@ live_show = input.harbor("adr-live-show", port = harbor_port, password = harbor_ live_show = metadata.map(fun (_) -> [("artist", radio_name), ("title", "Live Show")], live_show) playlist_random = playlist(fullpath("playlists/all-rand"), - prefix = fullpath("music/"), + prefix = string.concat(["replaygain:", fullpath("music/")]), mode = "normal", reload_mode = "watch") music = audio_to_stereo(playlist_random) +music = replaygain(music) +music = normalize(music, target = -7., threshold = -75.) radio = smooth_add(p = 0.18, normal = music, special = live_mixin) radio = fallback(track_sensitive = false, transitions = [xfade, xfade, xfade], [ blank.strip(max_blank=15., live_show), blank.strip(max_blank=90., radio), fallback_song]) -radio = normalize(radio) output.icecast(%vorbis.cbr(bitrate = 128, samplerate = 44100, channels = 2), host = icecast_host, port = icecast_port,