Skip to content
Snippets Groups Projects
Commit d536f8ee authored by David Trattnig's avatar David Trattnig
Browse files

Test: fallback folder timing

parent 2c7d36a5
No related branches found
No related tags found
1 merge request!3Liquidsoap 2 migration
#!/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"
def on_metadata_notification(meta) =
print("ON AIR: #{meta['on_air']}")
end
s = playlist(id="fallback_folder",
"../audio/fallback",
mode="randomize",
reload=300,
reload_mode="seconds")
s = amplify(id="fallback_folder", 1., override="replay_gain", s)
s = source.on_track(id="fallback_folder", s, on_metadata_notification)
s = mksafe(s)
output.alsa(id="lineout", device="default", s)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment