CC-3566: Preferences->"Fade In" is not respected when Show starts

- millisecond value of fade was sent wrong from php side.
- crossfade() call was removed and it was causing fade in/out not working.
This commit is contained in:
James 2012-04-11 11:03:13 -04:00
parent bc6e911673
commit f82aef2a85
4 changed files with 13 additions and 2 deletions

View file

@ -15,6 +15,15 @@ def append_title(m) =
end
end
def crossfade(s)
#duration is automatically overwritten by metadata fields passed in
#with audio
s = fade.in(type="log", duration=0., s)
s = fade.out(type="log", duration=0., s)
fader = fun (a,b) -> add(normalize=false,[b,a])
cross(fader,s)
end
def transition(a,b) =
log("transition called...")
add(normalize=false,

View file

@ -29,6 +29,7 @@ s3_namespace = ref ''
queue = on_metadata(notify, queue)
queue = map_metadata(append_title, queue)
queue = crossfade(queue)
ignore(output.dummy(queue, fallible=true))
server.register(namespace="vars", "pypo_data", fun (s) -> begin pypo_data := s "Done" end)