libretime/playout/libretime_playout
Marvin d2f93f7c8a
fix(playout): when shows ends, next shows starts without fade-in/fade-out (#2412)
Tracks are not fading with the crossfade function which leads to hard cuts at the end of tracks and shows. Therefore the explicit fade functions are used.

In Liquidsoap version 1.4.3. crossfade is implemented as a cross with a custom transition (fade_in and fade_out).
9f730f2c5f/src/libs/fades.liq (L433-L436)

The "duration" argument is passed through to the cross function.
In the implementation of the cross operator the value duration is used to determine how log the crossfade should take.

It is set to the cross_lenght parameter

f075905715/src/operators/cross.ml (L30-L34)

This can be overwritten with metadata, but the current annotation does not include a "override_duration" field so in our case it is always 0.
f075905715/src/operators/cross.ml (L186-L198)

So I assume the crossfade is starting to fade.out the track but because the duration is set to 0. the "cross" is completed immediately and the next source of the queue is started. Our queues do only ever contain one track at a time so there is no next source to play.
The next queue is activated and the same happens for the fade.in.

Replacing the crossfade with a fade.in/out removes this time boundary as there is no longer a "cross" function involved.

Until the tag 3.0.0-alpha.8 there was a custom crossfade_airtime function.
In tag 3.0.0-alpha.9 it was replaced with the crossfade function but was unable to find why.
ecd302068c/python_apps/pypo/liquidsoap/1.4/ls_script.liq (LL76C9-L76C18)

Co-authored-by: Marvin <Marvin>
2023-03-02 20:20:09 +01:00
..
history refactor: don't use f-string on logging statements 2023-02-26 19:09:51 +02:00
liquidsoap fix(playout): when shows ends, next shows starts without fade-in/fade-out (#2412) 2023-03-02 20:20:09 +01:00
notify feat(playout): use shared app for cli commands 2023-02-26 20:41:38 +02:00
player refactor(playout): add typings and fix linting errors 2023-02-26 20:05:12 +01:00
__init__.py chore: rename pypo dir to libretime_playout 2022-01-04 09:18:58 +02:00
config.py refactor(playout): add typings and fix linting errors 2023-02-26 20:05:12 +01:00
main.py chore(playout): remove banner in logs 2023-02-27 06:42:33 +02:00
message_handler.py refactor(playout): add typings and fix linting errors 2023-02-26 20:05:12 +01:00
recorder.py refactor: don't use f-string on logging statements 2023-02-26 19:09:51 +02:00
timeout.py chore: raise from specific exceptions 2023-02-03 07:36:58 +02:00
utils.py refactor(playout): remove date_interval_to_seconds function 2022-07-17 13:29:03 +02:00