Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Kruse
aura-engine
Commits
5b2cf274
Commit
5b2cf274
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Added scheduled fallback playlist source. #43
parent
8f152443
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/liquidsoap/engine.liq
+1
-1
1 addition, 1 deletion
modules/liquidsoap/engine.liq
modules/liquidsoap/in_filesystem.liq
+7
-16
7 additions, 16 deletions
modules/liquidsoap/in_filesystem.liq
with
8 additions
and
17 deletions
modules/liquidsoap/engine.liq
+
1
−
1
View file @
5b2cf274
...
@@ -92,7 +92,7 @@ output_source = fallback(
...
@@ -92,7 +92,7 @@ output_source = fallback(
id="fallback-scheduled",
id="fallback-scheduled",
track_sensitive=false,
track_sensitive=false,
replay_metadata=true,
replay_metadata=true,
[ stripped_stream,
input_
fallback_
scheduled
])
[ stripped_stream, fallback_
playlist
])
output_source = fallback(
output_source = fallback(
id="fallback-station-playlist",
id="fallback-station-playlist",
...
...
This diff is collapsed.
Click to expand it.
modules/liquidsoap/in_filesystem.liq
+
7
−
16
View file @
5b2cf274
...
@@ -47,7 +47,11 @@ input_filesystem_1 = on_metadata(id="in_filesystem_1", on_metadata_notification,
...
@@ -47,7 +47,11 @@ input_filesystem_1 = on_metadata(id="in_filesystem_1", on_metadata_notification,
# FALLBACK SOURCES #
# FALLBACK SOURCES #
#####################################
#####################################
input_fallback_scheduled = request.equeue(id="in_fallback_scheduled")
fallback_playlist = playlist(
id="playlist_fallback_scheduled",
"",
mode="normal",
reload_mode="watch")
station_playlist = playlist(
station_playlist = playlist(
id="station_playlist",
id="station_playlist",
...
@@ -64,12 +68,12 @@ station_folder = mksafe(
...
@@ -64,12 +68,12 @@ station_folder = mksafe(
reload_mode="seconds"))
reload_mode="seconds"))
# Apply ReplayGain Normalization
# Apply ReplayGain Normalization
input_
fallback_
scheduled
= amplify(id="
in
_fallback_scheduled", 1., override="replay_gain",
input_
fallback_
scheduled
)
fallback_
playlist
= amplify(id="
playlist
_fallback_scheduled", 1., override="replay_gain", fallback_
playlist
)
station_playlist = amplify(id="station_playlist", 1., override="replay_gain", station_playlist)
station_playlist = amplify(id="station_playlist", 1., override="replay_gain", station_playlist)
station_folder = amplify(id="station_folder", 1., override="replay_gain", station_folder)
station_folder = amplify(id="station_folder", 1., override="replay_gain", station_folder)
# Add Event Handlers
# Add Event Handlers
input_
fallback_
scheduled
= on_metadata(id="
in
_fallback_scheduled", on_metadata_notification,
input_
fallback_
scheduled
)
fallback_
playlist
= on_metadata(id="
playlist
_fallback_scheduled", on_metadata_notification, fallback_
playlist
)
station_playlist = on_metadata(id="station_playlist", on_metadata_notification, station_playlist)
station_playlist = on_metadata(id="station_playlist", on_metadata_notification, station_playlist)
station_folder = on_metadata(id="station_folder", on_metadata_notification, station_folder)
station_folder = on_metadata(id="station_folder", on_metadata_notification, station_folder)
...
@@ -121,19 +125,6 @@ server.register(namespace=source.id(input_filesystem_1),
...
@@ -121,19 +125,6 @@ server.register(namespace=source.id(input_filesystem_1),
end
end
)
)
# Clear Scheduled Fallback Queue
server.register(namespace=source.id(input_fallback_scheduled),
description="Clear all items of the scheduled fallback queue.",
usage="clear",
"clear",
fun (s) ->
begin
clear_queue(input_fallback_scheduled)
"Clearing done."
end
)
# Seek Filesystem Queue A
# Seek Filesystem Queue A
server.register(namespace = source.id(input_filesystem_0),
server.register(namespace = source.id(input_filesystem_0),
description="seek to relative position in #{source.id(input_filesystem_0)}",
description="seek to relative position in #{source.id(input_filesystem_0)}",
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment