Le lundi 3 janvier 2011 12:51:44, Vincent Cassé a écrit :
> Hi everybody and Happy New Year 2011 !
Hi,
Thanks !
> I'm blocked by two problems :
I think its actually 3 :)
> - I would a function that send an int with the volume of my source. Do
> is it possible ?
Not for now I think. But, first, what is the "volume" ? It is the RMS ?
> - How to get the "time" server ? And the length of a song (in a
> playlist, or in a request.queue) ?
For the length of a song, you have a function named "file.duration" that takes
a string containing the URI of a local file. It works for mp3, vorbis, wav and
flac.
What is the "time" server ?
> - How to stop the "output.file()" ?
You can use command id.stop where id is the id of the source.
In a script, this gives:
ignore(server.execute("#{source.id(s)}.stop"))
Romain
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users