-
Im trying to use cross.simple with no luck OS: ubuntu:20.04 on docker def transition(a,b)
if b.metadata["source"] != "music" then
cross.smart(fade_in=0.5, fade_out=0.1, a, b)
else
# Else, apply the standard fade
# cross.smart(fade_in=7., fade_out=3., a, b)
cross.simple(fade_in=7., fade_out=3., a, b)
end
end Error: At /home/liquidsoap/config/radio-to-icecast.liq, line 95, char 27-37:
Error 5: this value has type
(_.{source : source(_), db_level : _, metadata : _}, ...) -> _ (inferred at /home/liquidsoap/config/radio-to-icecast.liq, line 82 char 0 - line 92 char 3)
but it should be a subtype of
(_.{source : unit}, ...) -> _ I tried also give a little nudge to the typechecker Interesting that for example above cross.smart works without any tricks |
Beta Was this translation helpful? Give feedback.
Answered by
toots
Mar 24, 2022
Replies: 2 comments 3 replies
-
Still, no answers, looks like hard to solve :( |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it should be: def transition(a,b)
if b.metadata["source"] != "music" then
cross.smart(fade_in=0.5, fade_out=0.1, a, b)
else
# Else, apply the standard fade
# cross.smart(fade_in=7., fade_out=3., a, b)
cross.simple(fade_in=7., fade_out=3., a.source, b.source)
end
end |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
rrolla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it should be: