Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
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
AURA
engine-core
Commits
96ded977
Commit
96ded977
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
test(queue): timely activation with pure alsa
#37
parent
a4de9c04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_queue_activate.liq
+11
-7
11 additions, 7 deletions
tests/test_queue_activate.liq
with
11 additions
and
7 deletions
tests/test_queue_activate.liq
+
11
−
7
View file @
96ded977
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
%include "base_config.liq"
%include "base_config.liq"
settings.log.level.set(3)
settings.log.level.set(3)
...
@@ -46,12 +46,10 @@ stripped_mixer = blank.strip(max_blank=5., mixer)
...
@@ -46,12 +46,10 @@ stripped_mixer = blank.strip(max_blank=5., mixer)
main_out = fallback(track_sensitive=false, [stripped_mixer, fallback_folder])
main_out = fallback(track_sensitive=false, [stripped_mixer, fallback_folder])
main_out.on_metadata(on_metadata_notification)
main_out.on_metadata(on_metadata_notification)
main_out.on_track(on_track_notification)
main_out.on_track(on_track_notification)
output.alsa(device="
default
", mksafe(main_out), bufferize=true)
output.alsa(device="
pcm.aura_engine
", mksafe(main_out), bufferize=true)
##################################################################################################
##################################################################################################
# Test case (Liquidsoap 2.1, final deb version)
# Test case (Liquidsoap 2.1, DEB or Docker version)
# $ liquidsoap --version
# Liquidsoap 2.1.0
# 1. Add requests
# 1. Add requests
r1 = request.create("assets/audio.mp3")
r1 = request.create("assets/audio.mp3")
...
@@ -79,6 +77,12 @@ thread.run(delay=5., { enable_queue() })
...
@@ -79,6 +77,12 @@ thread.run(delay=5., { enable_queue() })
# on_metadata - update (TRACK: Two Pianos), ON AIR: 2022/08/02 12:58:03
# on_metadata - update (TRACK: Two Pianos), ON AIR: 2022/08/02 12:58:03
# on_track - update (TRACK: Two Pianos), ON AIR: 2022/08/02 12:58:03
# on_track - update (TRACK: Two Pianos), ON AIR: 2022/08/02 12:58:03
# 5. FAIULURE: Audio from the queue starts playing only approx. 23 seconds later
# 5.
#
# FAILURE: When ALSA is used as a PulseAudio Plugin.
# Audio from the queue starts playing only approx. 23 seconds later
# This delay of 23 seconds is always the same, no matter when the server commands
# This delay of 23 seconds is always the same, no matter when the server commands
# are issued (e.g. 30secs later) nor how many requests are pushed to the queue
# are issued (e.g. 30secs later) nor how many requests are pushed to the queue
\ No newline at end of file
#
# SUCCESS: When ALSA is used directly, ensuring any PulseAudio server is shut down.
# Queued audio is played at the same time, as the metadata from 4.) is issued.
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