From 79d2d196dfc40f0bbe08ee66444faa19d2d42a9e Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Fri, 28 May 2021 16:40:14 +0200 Subject: [PATCH] Tests for file and analog in. #6 --- tests/test_alsa_default_analog.liq | 32 +++++++++++++++++++ ...default.liq => test_alsa_default_file.liq} | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 tests/test_alsa_default_analog.liq rename tests/{test_alsa_default.liq => test_alsa_default_file.liq} (96%) diff --git a/tests/test_alsa_default_analog.liq b/tests/test_alsa_default_analog.liq new file mode 100644 index 0000000..9462b18 --- /dev/null +++ b/tests/test_alsa_default_analog.liq @@ -0,0 +1,32 @@ +#!/usr/bin/liquidsoap --verbose +# +# Aura Engine (https://gitlab.servus.at/aura/engine) +# +# Copyright (C) 2017-2020 - 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("log.file.path", "../logs/<script>.log") + +set("server.telnet", true) +set("server.telnet.bind_addr", "0.0.0.0") +set("server.telnet.port", 1234) + +set("frame.audio.samplerate", 44100) +set("frame.audio.size", 16000) + +input_analog = input.alsa(id="analog_input", device="default", bufferize=false, fallible=false, start=true) +output.alsa(id="lineout", device="default", input_analog, bufferize=false) \ No newline at end of file diff --git a/tests/test_alsa_default.liq b/tests/test_alsa_default_file.liq similarity index 96% rename from tests/test_alsa_default.liq rename to tests/test_alsa_default_file.liq index e54e131..d87bf86 100644 --- a/tests/test_alsa_default.liq +++ b/tests/test_alsa_default_file.liq @@ -26,7 +26,6 @@ set("server.telnet.bind_addr", "0.0.0.0") set("server.telnet.port", 1234) set("frame.audio.samplerate", 44100) -# set("frame.audio.samplerate", 48000) input_fs = single(id="fs", "audio.mp3") output.alsa(id="lineout", device="default", input_fs) \ No newline at end of file -- GitLab