Le vendredi 12 février 2010 07:45:45, Romaric Petion a écrit : > Hi, Hi ! > I use liquidsoap with 2 sources: 1 from a playlist and the second from > equeue. > > I would like playlist active when equeue empty, and equeue active when > something inside. > I also want to skip to a new song from the playlist when come back to it. > I use the cross_fade for all transitions. > > > # my fallback > def myfallback(mixnottoskip,musictoskip) > def transition(a,b) = > source.skip(musictoskip) > sequence([a,fade.initial(b)]) > end > def crossfade(a,b) > add(normalize=false,[ sequence([blank(duration=1.), > fade.initial(duration=1.5,b) ]),fade.final(duration=1.5,a) ]) > end > > fallback(id="myfallback",track_sensitive=false,transitions=[crossfade,trans > i tion],[mixnottoskip,musictoskip]) > end > > radio = myfallback(equeue_input, playlist)
Nice example of a custom fallback ! > But I have a problem with the metadata: > - playlist active: metadata song A > - equeue active with a content: metadata equeue A > - equeue empty, go back to the playlist with a skip -> song B, but > still metadata A > - song B finished, song C start, and metadatas song C OK > > The problem is when fallback from equeue to playlist is done, the metadatas > used comes from the song A (song active when equeue becames actived). Hmm.. Just looking ono the surface, I would suspect the skip to mess with the metadata from the playlist. I suspect that since the skip is done at the same time as the source is transitioned to, the process to prepare a new song fails to transmit the new metadata. This may need to be investigated but, in the mean time, have you try to perform the skip when the fallback leaves the source ? Romain ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users