<?xml version="1.0"?>
<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>

        <input>
            <module>oss</module>
            <param name="rate">44100</param>        <!-- samplerate -->
            <param name="channels">2</param>        <!-- number of channels -->
            <param name="device">/dev/dsp</param>   <!-- audio device -->
            <param name="metadatafilename">metadata</param>
        </input>

        <input>
            <module>pcm</module>
            <param name="rate">44100</param>
            <param name="channels">2</param>
            <param name="metadatafilename">test</param>
            <param name="command">/usr/bin/ogg123</param>
            <param name="arg">--device=raw</param>
            <param name="arg">--quiet</param>
            <param name="arg">--file=-</param>
            <param name="arg">/path/or/url.ogg</param>
            <!-- limit of about 10 args currently -->
        </input>

        <runner>
            <instance>
                <shout>
                    <hostname>localhost</hostname>
                    <port>8000</port>
                    <password>hackme</password>
                    <mount>/example1.ogg</mount>

                    <reconnectdelay>5</reconnectdelay>
                    <reconnectattempts>-1</reconnectattempts> 
                </shout>

                <encode>  
                    <quality>0</quality>
                </encode>
            </instance>

            <instance>
                <shout>
                    <hostname>localhost</hostname>
                    <port>8000</port>
                    <password>hackme</password>
                    <mount>/example2.ogg</mount>

                    <reconnectdelay>5</reconnectdelay>
                    <reconnectattempts>-1</reconnectattempts> 
                </shout>

                <!-- by default passthru is enabled which means that any
                     vorbis data coming from the input will inot be
                     re-encoded. Set to 0 if you want to re-encode  tor
                     the settings in the encode section -->
                <passthru>0</passthru>

                <encode>  
                    <quality>-1</quality>
                </encode>
            </instance>
        </runner>

	</stream>
</ices>
