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