Add smooth crossfade transition between tracks
Insert a 3s crossfade after the fallback so it applies to both daemon-driven transitions and cache fallbacks, before mksafe. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
d1db6a11d8
commit
8774f5c2a1
1 changed files with 5 additions and 0 deletions
|
|
@ -39,6 +39,11 @@ backup = playlist(mode="randomize", reload_mode="watch", "/cache")
|
|||
# rien de prêt. track_sensitive=true : on ne coupe pas un morceau en cours.
|
||||
radio = fallback(track_sensitive=true, [main, backup])
|
||||
|
||||
# Transition douce entre les morceaux : fondu enchaîné de 3 s. La fin du
|
||||
# morceau courant se fond dans le début du suivant. fade_in/fade_out donnent
|
||||
# la durée des rampes, duration la zone de recouvrement.
|
||||
radio = crossfade(duration=3.0, fade_in=3.0, fade_out=3.0, radio)
|
||||
|
||||
# mksafe garantit un flux continu : silence plutôt que plantage si tout est vide.
|
||||
radio = mksafe(radio)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue