Hello there,

2010/11/14 David Baelde <[email protected]>

> Congratulations for having hacked liquidsoap! Few people dare do it,
> and it might be useful in the future again. However, this time it was
> unnecessary: we have references for that. Create one using e.g. x =
> ref "foo", get it using !x, and set it using x := "bar".
>

Nice, thanks ! I did not see that in the online documentation.


> Congratulations again for having used source.dynamic()! It makes me
> realize that I should have marked this experiment as very unfinished:
> I made it, played with it on a few examples, realized a few
> limitations, and stopped working on it. But now that you've started
> playing with it, and since you seem to be able to play with our source
> code, let's try to make some progress...
>
> Back to your change in switch: I doubt that this is the good solution,
> but it points in the right direction. Rather, I would suspect the
> #is_ready method in source.dynamic(): it only answers true if there is
> an underlying source that is ready, but never attempts to create a new
> source. It looks like it would be a good idea to try to create a
> source, and see if it's ready.
>

I indeed had to modify that #is_ready method by putting a call to select()
to keep running the dynamic code even if the returned source fails. Then,
finally, I could manage it by rewriting my .liq script : I have to fine-tune
my call to source.dynamic by handmade scheduling, not using switch or at.
And finally, it works fine ! I can even embed one source.dynamic() into
another !

Best,

Benoit Avarapi
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to