From: David B. <dav...@en...> - 2009-06-25 08:08:20
|
Hi, nos...@no... wrote: > If it's only a question of name, on_detect is a nice one : ) Sorry for the long silence on that issue, I should have done it before. I chose on_noise and the patch is ready. I cannot commit right now (failure on sourceforge's side) but will do it ASAP. Note that the blank detection is reset on new tracks. We can make it tweakable later if needed. > goforit = fallback(transitions=[startit,stopit],[strip_blank(jack),blank()]) > > return me : > ERROR: This script is not well typed! This is the right syntax but not the right types for the transitions. IIRC your startit/stopit functions are ()->unit, they don't take any parameter. But the source transitions should take two parameters: the track before and the track after the transition. In your case you don't want to create a transition so you just sequence those tracks: def transition_start(before,after) startit() sequence([before,after]) end >> (2) The second will work soon: directly stream the stripped source in >> fallible mode output.icecast.vorbis(fallible=true,strip_blank(jack)). >> The fallible mode is arriving these days, currently only available for >> file outputs, but it's a matter of little time: the idea is that the >> operator simply starts/stops automatically when there is/isn't a track >> to play from the source. >> > > Have you some news about this, and it's on the 0.9.1 ? It's only SVN, it's too new and not implemented in all outputs. Cheers, David |