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

test(queue): timely activation with pure alsa #37

parent a4de9c04
No related branches found
No related tags found
No related merge requests found
...@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment