Hi David,

I'm back again to your suggested solution. I think I understand your code,
my confusion stems from another source.

My understanding of Liquidsoap is that when it starts, it generates a tree
of sources and sinks as in this figure:
http://savonet.sourceforge.net/images/basic-radio-graph.png

Your code seems to imply I have to change my tree dynamically during
runtime? From what I understand add() and sequence() both return new
sources, but I dont know what to do with them since my tree is already
"complete".

Martin

2011/5/19 David Baelde <[email protected]>

> Hi Martin,
>
> I've been 100% taken by other activities in the past few weeks, I'm
> catching up only now. Here is a quick answer...
>
> 2011/5/13 Martin Konečný <[email protected]>:
> > I understand the part of setting a boolean
> > flag to indicate that I've called the skip command, but where would I
> read
> > this flag to change the behaviour?
>
> You transition function takes two sources and returns the compound
> source. You can make that function behave differently based on the
> flag, for example:
>
> def transition(from,to)
>  if !has_skipped then
>    add([fade.initial(to),fade.final(from)])
>  else
>    sequence([from,to])
>  end
> end
>
> Hope this helps,
> --
> David
>



-- 
Martin Konecny
Software Developer, Sourcefabric
[email protected]

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to