I was thinking if and how could I have few constants in my liquidsoap script, not being a programmer also does probably not help me explaining the right way.
Immagine I have my radioX that stream with as much formats as possible to an icecast and I know that url genre stereo user ( and the password but I already include it from an external .liq, I love the code examles on your website :D) and a few other things will always be the same and I whould prefer not to write 3 times for each codec all this data in the form host=host0, user=user0 and so on but calling a function in wich I might give only the mount point and the quality/bitrate and repeat code More in practic I whould like to have some tips on how could I avoid repeating code over and over: output.icecast.$codec(stereo=true, restart=true, restart_delay=5, mount=mount0, name=name0, host=host0, port=port0, user=user0, password=passwd0, genre="NONE", url="NONE", description="NONE", public=true, quality=0.2, radio) and to change the default sets that are common to all streams in one shot. (I immagine something like output.icecast.$codec(alltheconstant,quality,source) I thought (suggested by a friend) I could also try to make an external with ffmpeg, so that I have only audio stuff variable but stuff like metadata and accountings constant. Thanks for the attention. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
