hya!
with this new build i keep on getting 8 o'clock shutdown, i think it started
appearing two builds before when i switched to smart crossfade. here's my
switch hierarchy:
def chik(jingle,old,new) =
# Fade out old source
old = fade.final(old)
# Superpose the jingle
radio = add([jingle,old])
# Compose this in sequence with
# the new source
sequence([radio,new])
end
def smart_crossfade (~start_next=5.,~fade_in=3.,~fade_out=3.,
~default=(fun (a,b) -> sequence([a, b])),
~high=-15., ~medium=-32., ~margin=4.,
~width=2.,~conservative=true,s)
fade.out = fade.out(type="sin",duration=fade_out)
fade.in = fade.in(type="sin",duration=fade_in)
add = fun (a,b) -> add(normalize=false,[b, a])
log = log(label="smart_crossfade")
def transition(a,b,ma,mb,sa,sb)
list.iter(fun(x)-> log(level=4,"Before: #{x}"),ma)
list.iter(fun(x)-> log(level=4,"After : #{x}"),mb)
log("Transition: crossed, fade-in, fade-out.")
add(fade.out(sa),fade.in(sb))
end
smart_cross(width=width, duration=start_next, conservative=conservative,
transition,s)
end
# fallback system
radio = fallback(track_sensitive=false,
[pageidavimai, mm, lunmute, lawx, tiesiogiai,
switch(track_sensitive=true, transitions=[ chik(dzinglas) ],[
({ 1w and 13h-15h }, lietmuz),
({ 4w and 22h-23h59 }, ske),
({ 6w and 13h-15h00 }, ske)]),
laida, traktorius, lopageidavimai, lovebar,
switch(track_sensitive=true, transitions=[ chik(dzinglas) ],[
({ 2w and 10h }, minmon),
({ 2w and 21h-23h59 }, red1),
({ 3w and 15h-17h }, maumai),
({ 4w and 20h-21h59 }, coldtear),
({ 5w and 19h-23h }, mano),
({ 6w and 20h-22h00 }, beatz),
({ 7w and 14h}, lovekart)]),
switch(track_sensitive=true, transitions=[ chik(dzinglas) ],[
({ 8h-0h }, dieninis),
({ 0h-7h59 }, naktinis)])])
radio = smart_crossfade(radio)
and here's what i get on the log:
2019/03/26 08:00:35 [naktinis:1] Got ill-balanced activations (from
switch_6978)!
2019/03/26 08:00:35 [clock:2] Error when leaving output
radio(dot)audiomastering(dot)lt: File "source.ml", line 414, characters
10-16: Assertion failed!
2019/03/26 08:00:35 [clock:3] Raised at file "source.ml", line 414,
characters 10-22
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 421,
characters 30-58
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "operators/smartcross.ml",
line 94, characters 4-11
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "list.ml", line 106,
characters 12-15
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "source.ml", line 431,
characters 8-18
2019/03/26 08:00:35 [clock:3] Called from file "clock.ml", line 79,
characters 6-13
2019/03/26 08:00:35 [clock.wallclock_main:3] Streaming loop stopped.
2019/03/26 08:00:35 [threads:3] Thread "wallclock_main" terminated (0
remaining).
2019/03/26 08:00:35 [main:3] Threads terminated.
2019/03/26 08:00:35 [threads:3] Shutting down scheduler...
2019/03/26 08:00:35 [threads:3] Scheduler shut down.
2019/03/26 08:00:35 [threads:3] Thread "non-blocking queue #2" terminated.
2019/03/26 08:00:35 [threads:3] Thread "generic queue #2" terminated.
2019/03/26 08:00:35 [threads:3] Thread "generic queue #1" terminated.
2019/03/26 08:00:35 [threads:3] Shutting down queues...
2019/03/26 08:00:35 [threads:3] Thread "non-blocking queue #1" terminated.
2019/03/26 08:00:35 [threads:3] Queues shut down
2019/03/26 08:00:35 [server:3] Closing socket.
2019/03/26 08:00:35 [main:3] Cleaning downloaded files...
2019/03/26 08:00:35 [main:3] Freeing memory...
2019/03/26 08:00:35 >>> LOG END
i wonder what's happening here...
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users