From 2ec6eb9ed3575bfffe8b3f7ac890a27405bbecdf Mon Sep 17 00:00:00 2001 From: David Trattnig <david@subsquare.at> Date: Fri, 24 Jun 2022 10:24:29 +0200 Subject: [PATCH] Test: Metadata event handling --- tests/test_metadata.liq | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 tests/test_metadata.liq diff --git a/tests/test_metadata.liq b/tests/test_metadata.liq new file mode 100755 index 0000000..f02e069 --- /dev/null +++ b/tests/test_metadata.liq @@ -0,0 +1,29 @@ +#!/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/>. + + +%include "base_config.liq" +settings.frame.audio.samplerate.set(44100) + +input_fs = single(id="fs", "assets/audio.mp3") +def process(metadata) = + print(json.stringify(metadata)) +end +input_fs.on_metadata(process) +output.dummy(id="dummy", input_fs) \ No newline at end of file -- GitLab