Reading: http://savonet.sourceforge.net/doc-svn/clocks.html
....
Typically, if you run several outputs that do not share much (any)
code, you can put each of them in a separate clock. For example the
following script takes one file and encodes it as MP3 twice. You
should run it as liquidsoap EXPR -- FILE and observe that it fully
exploits two cores:
def one()
clock(sync=false,
output.file(%mp3,"/dev/null",single(argv(1))))
end
one()
one()
What does it mean "if you run several outputs that do not share much
(any) code"? Actually outputs that I run do share some code, like
several functions that mix in jingles, wouldn't this approach work in
this case? I'm getting:
Error when initializing source ...: a source cannot belong to two
clocks (wallclock_4814[src_4819[],src_4803[]], wallclock_4830[]).
Davit Barbakadze
On Sat, Mar 26, 2011 at 8:24 PM, David Baelde <[email protected]> wrote:
> Hi Davit,
>
> I said "channel" for "output", but clocks can be used to separate any
> active source from another (as long as they don't rely on each other,
> although you can use a buffer() operator in that case too). You can
> read more about it in the doc:
> http://savonet.sourceforge.net/doc-svn/clocks.html
>
> Anyway, you don't _need_ to use clocks. It's one solution, but having
> separate processes is a simple solution too.
>
> Cheers,
> --
> David
>
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users