Hi,

I've just started to use liquidsoap (== newbee)

I would like my source to skip to next track after a certain amout of time. 
I've tried to use add_timeout() in this purpose but I can't figure out how I 
can access my source from there.

Below my code :

def chrono()
        print( "timeout")
    source.skip(s) # --> is it possible to access s from here?
        (-1.)
end
def newtrack(m)
        print( "new tack")
        add_timeout(2.,chrono)
end

s = playlist(...)
s = on_track(newtrack,s)

Thanks for your help.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to