2013/5/31 Thomas Bühlmann <[email protected]>:
> Hello List!
hi!
> I'm fighting with a problem:
> I have a fixed name dfile. It's regulary replaced by an external script.
> What is the recommendet way to implement this?
> Can i use single() or is playlist() better?
>
> I think of the following:
>
> clock=single(....)
> radio=playlist(..)
> ....
> radio =
> smooth_add(delay=0.5,p=0.3,normal=radio,special=switch([({30m00s},clock)]))
>
> Strangely this works for the first time. After this i simply get a short
> duck of the normal source, but no playout of clock.
> This makes me think that single() may not be appropriate for this use.
> Am i right? What is the recommended way?
One thing that might fail here is that, upon starting up, if
liquidsoap sees a single() source, it will try to find out if its file
is a local file. If that is the case, it will make the assumption that
it is a static file, open it and never re-open it (I think). So, if
you change the file later, it will fail.
What you can do to remedy this is to trick liquidsoap into resolving
the file each time it plays it, through a dummy annotate protocol like
this:
s = single("annotate:foo=\"bla\":/path/to/file/mp3")
Hope this helps,
Romain
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users