[ 
http://dev.sourcefabric.org/browse/LS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21027#action_21027
 ] 

David Baelde commented on LS-609:
---------------------------------

Okay this took me more time than expected because the code was somehow dirty: 
it has obviously gone through several iterations without documentation or 
review. I have done a full pass of cleanup. The resulting operators should 
behave pretty much as before, and they have the requested feature. One change 
for the user: length has become max_blank, and the new param is called 
min_noise. This naming can be discussed until we merge. Please test.

I only played with strip_blank and on_blank using a sine:
$ ./src/liquidsoap scripts/utils.liq 
'output.dummy(visu.volume(mksafe(strip_blank(max_blank=1.,min_noise=1.,threshold=-1.,sine(0.1)))))'
$ ./src/liquidsoap scripts/utils.liq 
'output.dummy(visu.volume(mksafe(strip_blank(max_blank=1.,min_noise=1.,threshold=-1.,on_blank(max_blank=1.,min_noise=1.,threshold=-1.,{log("BLANK")},on_noise={log("NOISE")},sine(0.1))))))'

> add a "back_time" to "strip_blank"
> ----------------------------------
>
>                 Key: LS-609
>                 URL: http://dev.sourcefabric.org/browse/LS-609
>             Project: Liquidsoap
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: liquidsoap ubuntu 11
>            Reporter: jean duffas
>            Assignee: David Baelde
>
> Hello,
> I use strip_blank function because I got 2 streams, one normal and one spare.
> when normal stream fail, spare stream is used instead, everything is ok.
> but sometimes, my normal stream for some reason, does audio 'clic' about 
> every minutes, it makes liquid soap think that the normal stream is came 
> back, and put it back on air... for a 'clic'.
> would it be possible to add a variable "back_time" witch could define minimum 
> time before the stream would come back on air  after a sound is detected ?
> in that way, a little click wouldn't put back silence on air.
> I hope you understood what I tried to explain...
> don't hesitate to ask me.
> jean

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à