#!/usr/bin/env liquidsoap # # Aura Engine (https://gitlab.servus.at/aura/engine) # # Copyright (C) 2017-now() - The Aura Engine Team. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. set("init.allow_root", true) set("init.catch_exn", false) set("log.file.path", "../logs/<script>.log") set("log.level", 5) set("ffmpeg.log.level", 5) set("audio.converter.samplerate.converters", ["ffmpeg"]) # Successfully tested with Liquidsoap 1.4.4 + 1.1.3 # High latency, no buffer underruns set("audio.converter.samplerate.converters", ["ffmpeg"]) set("frame.audio.size", 2048) set("alsa.alsa_buffer", 8192) set("alsa.buffer_length", 10) input_analog = input.alsa(device="default", bufferize=true) input_analog = mksafe(buffer(input_analog)) output.alsa(device="default", input_analog, bufferize=true)