diff --git a/tests/test_metadata.liq b/tests/test_metadata.liq new file mode 100755 index 0000000000000000000000000000000000000000..f02e0691105aa47654294b11f8ecf86ea78aa771 --- /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