[
http://dev.sourcefabric.org/browse/LS-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852#action_15852
]
Romain Beauxis commented on LS-517:
-----------------------------------
Excellent!
For documentation purposes, here is a way to list ticks and time on the
different clocks:
frame_length = get(default=0.04,"frame.duration")
l = get_clock_status()
def f(x) =
name = fst(x)
ticks = snd(x)
time = float_of_int(snd(x)) * frame_length
log("clock #{name} has time #{ticks} ticks = #{time} sec")
end
list.iter(f,l)
Now I guess the only remaining question is: how can one get the name of the
clock attached to a given source?
> Get local clock time
> --------------------
>
> Key: LS-517
> URL: http://dev.sourcefabric.org/browse/LS-517
> Project: Liquidsoap
> Issue Type: New Feature
> Components: Liquidsoap
> Affects Versions: 1.0
> Reporter: Romain Beauxis
>
> I have been contacted by a user who wants to generate audio streams offline
> using liquidsoap.
> Since he is not broadcasting, he would like to use an unsynced clock.
> However, he would also like to stop processing after 60 min have been
> processes.
> I think that currently he cannot do that. The solution for me would be to be
> able to grab a source's clock local elapsed time.
> I also think that it could be an interesting function in general.
> I have looked at the code. For now, this data is bound inside the run method
> of the default wallclock..
> We could extract it and make it a first-class value in the main clock class..
> David, what do you think about this?
--
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
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl