<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=WG%2Fradio%2FAirtime_Customization</id>
	<title>WG/radio/Airtime Customization - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=WG%2Fradio%2FAirtime_Customization"/>
	<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=WG/radio/Airtime_Customization&amp;action=history"/>
	<updated>2026-05-08T14:24:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.occupyboston.org/wiki/index.php?title=WG/radio/Airtime_Customization&amp;diff=10488&amp;oldid=prev</id>
		<title>Brandon at 03:15, 28 January 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=WG/radio/Airtime_Customization&amp;diff=10488&amp;oldid=prev"/>
		<updated>2012-01-28T03:15:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Airtime package's main Liquidsoap script is found by default in /usr/lib/airtime/pypo/bin/liquidsoap_bin/ls_script.liq.&lt;br /&gt;
&lt;br /&gt;
We've made some changes to this script to add additional functionality:&lt;br /&gt;
&lt;br /&gt;
(only the relevant bits of code are shown)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#we change this variable to true.&lt;br /&gt;
#web_stream_enabled = ref false&lt;br /&gt;
web_stream_enabled = ref true&lt;br /&gt;
&lt;br /&gt;
#rather than monitor an http stream, we're going to use liquidsoap's built in functionality for collecting an http stream &lt;br /&gt;
#(it emulates icecast's).  We'll define two streams, one for mono and another for stereo.&lt;br /&gt;
#web_stream_source = input.http(id=&amp;quot;web_stream&amp;quot;, autostart = false, buffer=0.5, max=20., &amp;quot;&amp;quot;)&lt;br /&gt;
web_stream_source_mono = audio_to_stereo((input.harbor(&amp;quot;oblive-mono&amp;quot;, port=8001, password=&amp;quot;xxx&amp;quot;):source(1,0,0)))&lt;br /&gt;
web_stream_source_stereo = input.harbor(&amp;quot;oblive-stereo&amp;quot;, port=8001, password=&amp;quot;xxx&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#once the stream is started, give it a sink so that liquidsoap doesn't&lt;br /&gt;
#create buffer overflow warnings in the log file.&lt;br /&gt;
output.dummy(fallible=true, web_stream_source_mono)&lt;br /&gt;
output.dummy(fallible=true, web_stream_source_stereo)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#the next two blocks add the live streams to the fallback list.  We give priority to the stereo stream, then the mono stream, &lt;br /&gt;
#then whatever happens to be scheduled in airtime.&lt;br /&gt;
#We'll use some transitions defined in ls_lib.liq.&lt;br /&gt;
s = switch(track_sensitive = false,&lt;br /&gt;
    transitions=[to_live,to_live],&lt;br /&gt;
    [&lt;br /&gt;
      ({ !web_stream_enabled }, web_stream_source_mono),&lt;br /&gt;
      ({ true }, s)&lt;br /&gt;
    ]&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
s = switch(track_sensitive = false,&lt;br /&gt;
    transitions=[to_live,to_live],&lt;br /&gt;
    [&lt;br /&gt;
      ({ !web_stream_enabled }, web_stream_source_stereo),&lt;br /&gt;
      ({ true }, s)&lt;br /&gt;
    ]&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TODO: add a backup playlist at the bottom of the fallback list.&lt;/div&gt;</summary>
		<author><name>Brandon</name></author>
	</entry>
</feed>