Hi again David,
>> 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.
Thanks for this feature, do you think it's better (or easier) than the
solution below ?
> Note that the blank detection is reset on new tracks. We can make it
tweakable
> later if needed.
For me it's not a problem apparently, because there's only one track (Jack
input) and it's only to stop the Icecast stream when there's no sound
input.
>> 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
On my config, startit and stopit looks like :
def startit()
log("Sound is back !")
ignore(server.execute("outputicecast.start"))
end
def stopit()
log("No sound !")
ignore(server.execute("outputicecast.stop"))
end
In my case, where's linking before & start ?
Not sure I've fully understand.. sorry.
>>> (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.
Ok, don't hesitate to ask me to test something if needed.
Cheers,
Thomas
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users