<?xml version="1.0"?>
<!-- 
This config is used to take a list of ogg files from a playlist and 
processes them without any speed restrictions. The sleep param is the
tag that disables the timing, if set to 0, make sure that an icecast
server isn't used as that will saturate the service quickly.

The once tag will cause ices to stop after the last input ends, normally
it would loop back to the first one, in the case below the playlist would
be restarted again.

The passthru tag prevents ogg vorbis data being re-encoded to the
default encoder settings (q3)
-->
<ices>

    <background>0</background> <!-- run in background? (unimplemented) -->
    <logpath>/tmp</logpath> <!-- where logs, etc go. -->
    <logfile>ices.log</logfile>
    <loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
    <logsize>2048</logsize> <!-- the size the log file must be before rotation -->
    <consolelog>0</consolelog> <!-- logfile is ignored if this is set to 1 -->
    <pidfile>/var/ices/ices.pid</pidfile> <!-- file to write process id to -->

    <stream>
        <name>Example stream name</name>
        <genre>Example genre</genre>
        <description>A short description of your stream</description>

        <once>1</once>
        <input>
            <module>playlist</module>
            <param name="type">basic</param>
            <param name="file">playlist.txt</param>
            <param name="random">0</param>
            <param name="once">1</param>
            <param name="sleep">0</param>
        </input>

        <runner>
            <instance>
                <passthru>1</passthru>
                <savestream>
                    <!-- this splits the file on each header update -->
                    <!-- save-1.ogg save-2.ogg .... -->
                    <on-metadata>1</on-metadata>
                    <fmask>0644</fmask>
                    <dmask>0755</dmask>
               </savestream>

            </instance>
        </runner>

	</stream>
</ices>
