diff --git a/src/liquidsoap/in_queue.liq b/src/liquidsoap/in_queue.liq index d8290f34c36b7bc868fec9c16cd8d433e1fec368..6181080b0376f0eac09be39dad01a7702e10c061 100644 --- a/src/liquidsoap/in_queue.liq +++ b/src/liquidsoap/in_queue.liq @@ -17,14 +17,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -# # Called when some new metadata info is available -# def on_metadata_notification(meta) = -# filename = meta["filename"] -# # artist = meta["artist"] -# # title = meta["title"] -# system('#{list.assoc(default="", "install_dir", ini)}/guru.py --on_play "#{filename}"') -# end - ##################################### # QUEUE SOURCES # diff --git a/tests/liquidsoap/test_alsa_mixer.liq b/tests/liquidsoap/test_alsa_mixer.liq new file mode 100644 index 0000000000000000000000000000000000000000..8a913448302bfc6dbbca75984b0f420a7228ae69 --- /dev/null +++ b/tests/liquidsoap/test_alsa_mixer.liq @@ -0,0 +1,48 @@ +# +# engine +# +# Playout Daemon for autoradio project +# +# +# Copyright (C) 2017-2018 Gottfried Gaisbauer <gottfried.gaisbauer@servus.at> +# +# This file is part of engine. +# +# engine is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# engine 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with engine. If not, see <http://www.gnu.org/licenses/>. +# + +set("log.file.path", "./<script>.log") + +set("server.telnet", true) +set("server.telnet.bind_addr", "0.0.0.0") +set("server.telnet.port", 1234) + +# ALSA / pulse settings +# durch ausprobieren herausgefunden für asus xonar dgx 5.1 +# chip: CMI8788 +# driver: snd_oxygen + +set("frame.duration", 0.30) +set("alsa.alsa_buffer", 8192) # 7168) # 6144) # 8192) # 10240) #15876 +set("alsa.buffer_length", 25) +set("alsa.periods", 0) # assertion error when setting periods other than 0 => alsa default + +input_linein = input.alsa(id="linein", bufferize = false) +#input_fs = single(id="fs", "/var/audio/fallback/output.flac") +#input_http = input.http(id="http", "http://stream.fro.at/fro-128.ogg") + +#mixer = mix(id="mixer", [input_fs, input_http, input_linein]) + +#output.alsa(id="lineout", bufferize = false, mixer) + diff --git a/tests/liquidsoap/test_alsa_settings.liq b/tests/liquidsoap/test_alsa_settings.liq new file mode 100644 index 0000000000000000000000000000000000000000..f1a4490728962206820c7796ccb13d19cdea12e6 --- /dev/null +++ b/tests/liquidsoap/test_alsa_settings.liq @@ -0,0 +1,48 @@ +# +# engine +# +# Playout Daemon for autoradio project +# +# +# Copyright (C) 2017-2018 David Trattnig <david@subsquare.at> +# +# This file is part of engine. +# +# engine is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# engine 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with engine. If not, see <http://www.gnu.org/licenses/>. +# + +set("log.file.path", "./<script>.log") + +set("server.telnet", true) +set("server.telnet.bind_addr", "0.0.0.0") +set("server.telnet.port", 1234) + +set("frame.duration", 0.30) +set("alsa.alsa_buffer", 8192) +set("alsa.buffer_length", 25) +set("alsa.periods", 0) # assertion error when setting periods other than 0 => alsa default + +#input_linein = input.alsa(id="linein", bufferize = false) + +audio1 = single(id="fs1", "./sources/1.flac") +audio2 = single(id="fs2", "./sources/2.flac") + +#input_http = input.http(id="http", "http://stream.fro.at/fro-128.ogg") + +#mixer = mix(id="mixer", [audio1, audio2]) +#mixer = mix(id="mixer", [input_fs, input_http, input_linein]) + +mixed = add([audio1, audio2]) +output.alsa(id="lineout", bufferize = false, mixed) + diff --git a/tests/liquidsoap/test_icecast_output.liq b/tests/liquidsoap/test_icecast_output.liq new file mode 100644 index 0000000000000000000000000000000000000000..04c9a0da82f3e5bf2eb9ca6ae6d0e753a7c48d32 --- /dev/null +++ b/tests/liquidsoap/test_icecast_output.liq @@ -0,0 +1,24 @@ +set("log.file.path", "./<script>.log") + +#%include "readini.liq" +#ini = read_ini("/etc/aura/engine.ini") + +# output_source = mksafe(blank()) + +# %include "stream.liq" + +# stream = get_stream(0) + +# output_stream = input.external("arecord -f S16_LE -c2 -r44100 -t raw -D dsnoop:1,0 -") + +output.icecast( + %vorbis(quality = 0.5), + mount="aura-test.ogg", + host="develop.servus.at", + port=8000, + name="LQSTest", + user="source", + password="A7E7tst1", + fallible=true, + input.alsa(device="pcm.plugj") +)