Hi Peter, and welcome to liquidsoap!

On Wed, Feb 17, 2010 at 1:03 AM, peter <k.p.odohe...@gmail.com> wrote:
> How would I adjust this code, which workd for playlists, to do live streaming?
>
> #!/usr/bin/liquidsoap
> # Log dir
> set("log.file.path","/tmp/basic-radio.log")
>
> myplaylist = playlist("/home/peter/liquidsoap/playlist.pls")
>
> radio = mksafe(myplaylist)
>
> output.icecast.vorbis(
>  host = "localhost", port = 8000,
>  password = "hackme", mount = "basic-radio.ogg",
>  radio)

In this script, the data flows from the source created by
playlist(...). Simply change it to input.jack(), and the sound will
flow from jack, to icecast. There's not much to read in the
documentation (http://savonet.sf.net) about that operator, it simply
creates a jack socket based on the source's ID (change it with
input.jack(id="foo")) and relays its data (plays silence when nothing
is connected to the jack socket).

Have fun!

-- David

PS: Make sure to subscribe to this list to get informed about the
project (https://lists.sourceforge.net/lists/listinfo/savonet-users)

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to