<?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>pcm</module>
            <param name="rate">44100</param>
            <param name="channels">2</param>
            <param name="metadatafilename">test</param>     <!-- read metadata from file on USR1 -->
            <!-- pipe for extracting raw pcm, if not defined stdin is assumed -->
            <param name="command">/home/ices/get_pcm.sh</param>
            <param name="timeout">5</param>                 <!-- If missing or zero then no timeout on reading PCM -->
        </input>

        <runner>
            <instance>
                <shout>
                    <hostname>the.hackers.club</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>/example.ogg</mount>

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

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

	</stream>
</ices>
