nobody can help ?
Do I have to duplicate handlers?
Thk
Yoann
Le 08.05.2014 01:18, Yoann QUERET a écrit :
> Hi,
>
> With this simple example how i can use the source ID (my_src_1 or
> my_src_2) in hdl_src_blank and hdl_src_noise handlers ? I have trying
> with #{source.id(s)} but have error on config check.
>
>
> # ---- HANDLERS ----------------------------------
> def hdl_src_blank()
> log("Blank detected on src: ")
> end
>
> def hdl_src_noise()
> log("Noise return detected on src: ")
> end
>
> # ---- SOURCES -----------------------------------
> src_1 = input.http(
> id="my_src_1",
> autostart=true,
> "http://my.domain.tld:8000/stream1.mp3"
> )
> src_1 = on_blank(
> max_blank=5.,
> min_noise=20.,
> on_noise=hdl_src_noise,
> threshold=-30.,
> track_sensitive=false,
> hdl_src_blank,
> src_1
> )
>
> src_2 = input.http(
> id="my_src_2",
> autostart=true,
> "http://my.domain.tld:8000/stream2.mp3"
> )
> src_2 = on_blank(
> max_blank=5.,
> min_noise=20.,
> on_noise=hdl_src_noise,
> threshold=-30.,
> track_sensitive=false,
> hdl_src_blank,
> src_2
> )
>
> Etc ...
>
> Many thk
> Yoann
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to
> find out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users