From 80563668887b1c093872638983112c815f2645c7 Mon Sep 17 00:00:00 2001 From: David Trattnig <david@subsquare.at> Date: Fri, 11 Jun 2021 18:57:02 +0200 Subject: [PATCH] Interface tests. #1 --- .../device/alsa_focusrite_scarlett_18i20.liq | 32 ++++++++++++++++++ tests/device/alsa_focusrite_scarlett_2i2.liq | 32 ++++++++++++++++++ tests/device/alsa_ni_komplete_audio_6.liq | 33 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100755 tests/device/alsa_focusrite_scarlett_18i20.liq create mode 100755 tests/device/alsa_focusrite_scarlett_2i2.liq create mode 100755 tests/device/alsa_ni_komplete_audio_6.liq diff --git a/tests/device/alsa_focusrite_scarlett_18i20.liq b/tests/device/alsa_focusrite_scarlett_18i20.liq new file mode 100755 index 0000000..82b3346 --- /dev/null +++ b/tests/device/alsa_focusrite_scarlett_18i20.liq @@ -0,0 +1,32 @@ +#!/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("init.trace", true) +set("log.file.path", "../../logs/<script>.log") +set("log.level", 5) +set("ffmpeg.log.level", 5) + +# Successfully tested with ALSA 1.2.4 +set("frame.audio.size", 15052) +set("frame.video.framerate", 0) +input_analog = input.alsa(id="analog_input", device="sysdefault:CARD=USB", bufferize=false, start=true, fallible=true) +output.alsa(id="lineout", device="sysdefault:CARD=USB", input_analog, bufferize=false, fallible=true) \ No newline at end of file diff --git a/tests/device/alsa_focusrite_scarlett_2i2.liq b/tests/device/alsa_focusrite_scarlett_2i2.liq new file mode 100755 index 0000000..04814fb --- /dev/null +++ b/tests/device/alsa_focusrite_scarlett_2i2.liq @@ -0,0 +1,32 @@ +#!/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("init.trace", true) +set("log.file.path", "../../logs/<script>.log") +set("log.level", 5) +set("ffmpeg.log.level", 5) + +# Successfully tested with ALSA 1.2.4 +set("frame.audio.size", 7526) +set("frame.video.framerate", 0) +input_analog = input.alsa(id="analog_input", device="sysdefault:CARD=USB", bufferize=false, start=true, fallible=true) +output.alsa(id="lineout", device="sysdefault:CARD=USB", input_analog, bufferize=false, fallible=true) \ No newline at end of file diff --git a/tests/device/alsa_ni_komplete_audio_6.liq b/tests/device/alsa_ni_komplete_audio_6.liq new file mode 100755 index 0000000..fbc9dcf --- /dev/null +++ b/tests/device/alsa_ni_komplete_audio_6.liq @@ -0,0 +1,33 @@ +#!/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("init.trace", true) +set("log.file.path", "../../logs/<script>.log") +set("log.level", 5) +set("ffmpeg.log.level", 5) + + +# Successfully tested with ALSA 1.2.4 +set("frame.audio.size", 7526) +set("frame.video.framerate", 0) +input_analog = input.alsa(id="analog_input", device="sysdefault:CARD=K6", bufferize=false, start=true, fallible=true) +output.alsa(id="lineout", device="sysdefault:CARD=K6", input_analog, bufferize=false, fallible=true) -- GitLab