<device>
    <nickname offset-bytes="16" bytes="32"/>
	<mixer high="false">
		<inputs num="18" pin0="0x300"/>
		<mixes  num="10" pin0="0x300"/>
	</mixer>
	<inputs>
		<analogue   name="Analogue 1"   stereo-name="Analogue 1-2"      pin="0x080">
            <air    offset-bytes="149" bits="1" command="8"/>
            <mode   offset-bytes="124" bits="1" command="7">
                <enum value="Line" option="0"/>
                <enum value="Inst" option="1"/>
            </mode>
        </analogue>
        <analogue   name="Analogue 2"                                   pin="0x081">
            <air    offset-bytes="150" bits="1" command="8"/>
            <mode   offset-bytes="125" bits="1" command="7">
                <enum value="Line" option="0"/>
                <enum value="Inst" option="1"/>
            </mode>
        </analogue>
        <analogue   name="Analogue 3"   stereo-name="Analogue 3-4"      pin="0x082">
            <air    offset-bytes="151" bits="1" command="8"/>
        </analogue>
        <analogue   name="Analogue 4"                                   pin="0x083">
            <air    offset-bytes="152" bits="1" command="8"/>
        </analogue>
        <analogue   name="Analogue 5"   stereo-name="Analogue 5-6"      pin="0x084">
            <air    offset-bytes="153" bits="1" command="8"/>
        </analogue>
        <analogue   name="Analogue 6"                                   pin="0x085">
            <air    offset-bytes="154" bits="1" command="8"/>
        </analogue>
        <analogue   name="Analogue 7"   stereo-name="Analogue 7-8"      pin="0x086">
            <air    offset-bytes="155" bits="1" command="8"/>
        </analogue>
        <analogue   name="Analogue 8"                                   pin="0x087">
            <air offset-bytes="156" bits="1" command="8"/>
        </analogue>
		<spdif-rca  name="S/PDIF 1"     stereo-name="S/PDIF 1-2"        pin="0x180"/>
		<spdif-rca  name="S/PDIF 2"                                     pin="0x181"/>
		<adat       name="ADAT 1"       stereo-name="ADAT 1-2"          pin="0x200"/>
		<adat       name="ADAT 2"                                       pin="0x201"/>
		<adat       name="ADAT 3"       stereo-name="ADAT 3-4"          pin="0x202" pin-h="0x0"/>
		<adat       name="ADAT 4"                                       pin="0x203" pin-h="0x0"/>
		<adat       name="ADAT 5"       stereo-name="ADAT 5-6"          pin="0x204" pin-m="0x0"/>
		<adat       name="ADAT 6"                                       pin="0x205" pin-m="0x0"/>
		<adat       name="ADAT 7"       stereo-name="ADAT 7-8"          pin="0x206" pin-m="0x0"/>
		<adat       name="ADAT 8"                                       pin="0x207" pin-m="0x0"/>
		<playback   name="Playback 1"   stereo-name="Playback 1-2"      pin="0x600"/>
		<playback   name="Playback 2"                                   pin="0x601"/>
		<playback   name="Playback 3"   stereo-name="Playback 3-4"      pin="0x602"/>
		<playback   name="Playback 4"                                   pin="0x603"/>
		<playback   name="Playback 5"   stereo-name="Playback 5-6"      pin="0x604"/>
		<playback   name="Playback 6"                                   pin="0x605"/>
		<playback   name="Playback 7"   stereo-name="Playback 7-8"      pin="0x606"/>
		<playback   name="Playback 8"                                   pin="0x607"/>
		<playback   name="Playback 9"   stereo-name="Playback 9-10"     pin="0x608"/>
		<playback   name="Playback 10"                                  pin="0x609"/>
		<playback   name="Playback 11"  stereo-name="Playback 11-12"    pin="0x60a"/>
		<playback   name="Playback 12"                                  pin="0x60b"/>
		<playback   name="Playback 13"  stereo-name="Playback 13-14"    pin="0x60c"/>
		<playback   name="Playback 14"                                  pin="0x60d"/>
		<playback   name="Playback 15"  stereo-name="Playback 15-16"    pin="0x60e" pin-h="0x0"/>
		<playback   name="Playback 16"                                  pin="0x60f" pin-h="0x0"/>
		<playback   name="Playback 17"  stereo-name="Playback 17-18"    pin="0x610" pin-m="0x0"/>
		<playback   name="Playback 18"                                  pin="0x611" pin-m="0x0"/>
		<playback   name="Playback 19"  stereo-name="Playback 19-20"    pin="0x612" pin-m="0x0"/>
		<playback   name="Playback 20"                                  pin="0x613" pin-m="0x0"/>
	</inputs>
	<outputs>
		<analogue   name="Monitor Output 1" stereo-name="Monitor Outputs 1-2"   pin="0x080" monitor="true">
            <gain                       offset-bytes="52"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="102"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Monitor Output 2"                                     pin="0x081" monitor="true">
            <gain                       offset-bytes="54"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="103"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 3"    stereo-name="Line Outputs 3-4"      pin="0x082">
            <gain                       offset-bytes="56"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="104"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 4"                                        pin="0x083">
            <gain                       offset-bytes="58"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="105"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 5"    stereo-name="Line Outputs 5-6"      pin="0x084">
            <gain                       offset-bytes="60"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="106"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 6"                                        pin="0x085">
            <gain                       offset-bytes="62"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="107"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 7"    stereo-name="Line Outputs 7-8"      pin="0x086" headphone="1">
            <gain                       offset-bytes="64"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="108"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 8"                                        pin="0x087" headphone="1">
            <gain                       offset-bytes="66"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="109"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 9"    stereo-name="Line Outputs 9-10"     pin="0x088" headphone="2">
            <gain                       offset-bytes="68"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="110"  bits="2"    command="3"/>
		</analogue>
		<analogue   name="Line Output 10"                                       pin="0x089" headphone="2">
            <gain                       offset-bytes="70"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="111"  bits="2"    command="3"/>
		</analogue>
        
		<spdif-rca name="S/PDIF Output 1"   stereo-name="S/PDIF Outputs 1-2"    pin="0x180"/>
		<spdif-rca name="S/PDIF Output 2"                                       pin="0x181"/>
        
		<adat name="ADAT Output 1"          stereo-name="ADAT Outputs 1-2"      pin="0x200" pin-h="0x0"/>
		<adat name="ADAT Output 2"                                              pin="0x201" pin-h="0x0"/>
		<adat name="ADAT Output 3"          stereo-name="ADAT Outputs 3-4"      pin="0x202" pin-h="0x0"/>
		<adat name="ADAT Output 4"                                              pin="0x203" pin-h="0x0"/>
		<adat name="ADAT Output 5"          stereo-name="ADAT Outputs 5-6"      pin="0x204" pin-m="0x0"/>
		<adat name="ADAT Output 6"                                              pin="0x205" pin-m="0x0"/>
		<adat name="ADAT Output 7"          stereo-name="ADAT Outputs 7-8"      pin="0x206" pin-m="0x0"/>
		<adat name="ADAT Output 8"                                              pin="0x207" pin-m="0x0"/>
    </outputs>
    <record-outputs>
		<record pin="0x600"             input="0"/>
		<record pin="0x601"             input="1"/>
		<record pin="0x602"             input="2"/>
		<record pin="0x603"             input="3"/>
		<record pin="0x604"             input="4"/>
		<record pin="0x605"             input="5"/>
		<record pin="0x606"             input="6"/>
		<record pin="0x607"             input="7"/>
		<record pin="0x608"             input="8"/>
		<record pin="0x609"             input="9"/>
		<record pin="0x60a"             input="10"/>
		<record pin="0x60b"             input="11"/>
		<record pin="0x60c" pin-h="0x0" input="12"/>
		<record pin="0x60d" pin-h="0x0" input="13"/>
		<record pin="0x60e" pin-m="0x0" input="14"/>
		<record pin="0x60f" pin-m="0x0" input="15"/>
        <record pin="0x610" pin-m="0x0" input="16"/>
		<record pin="0x611" pin-m="0x0" input="17"/>
	</record-outputs>
    <monitoring offset-bytes="49" bytes="71">
        <preset>
            <enum value="1-2"   option="2" mapping="0, 0, x, x, x, x, x, x, x, x"/>
            <enum value="1-4"   option="4" mapping="0, 0, 0, 0, x, x, x, x, x, x"/>
            <enum value="1-6"   option="6" mapping="0, 0, 0, 0, 0, 0, x, x, x, x"/>
            <enum value="1-8"   option="8" mapping="0, 0, 0, 0, 0, 0, 0, 0, x, x"/>
            <enum value="All"   option="1" mapping="0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
            <enum value="None"  option="0" mapping="x, x, x, x, x, x, x, x, x, x"/>
        </preset>
        
        <hardware-controls>
            <group exclusive="true" strategy="red">
                <mute   offset-bytes="49"  bits="1"  command="2"/>
                <dim    offset-bytes="50"  bits="1"  command="2"/>
                <gain   offset-bytes="118" bits="16" command="2"/>
            </group>
        </hardware-controls>
    </monitoring>
	<clocking>
		<clock-source>
			<enum value="Internal"  option="41"/>
			<enum value="S/PDIF"    option="42"/>
			<enum value="ADAT"      option="43"/>
		</clock-source>
		<sample-rate>
			<enum value="44.1 kHz"  option="44100"/>
			<enum value="48 kHz"    option="48000"/>
			<enum value="88.2 kHz"  option="88200"/>
			<enum value="96 kHz"    option="96000"/>
            <enum value="176.4 kHz" option="176400"/>
            <enum value="192 kHz"   option="192000"/>
		</sample-rate>
	</clocking>
	<settings>
		<buffer-size>
			<enum value="32"/>
			<enum value="64"/>
			<enum value="128"/>
			<enum value="256"/>
			<enum value="512"/>
			<enum value="1024"/>
			<enum value="2048"/>
		</buffer-size>
        <meter-source offset-bytes="184" bits="8" command="8">
            <enum value="Analogue" option="1"/>
        </meter-source>
		<spdif-mode name="S/PDIF Source" num="0" >
            <mode>
                <enum value="RCA"       option="2"/>
                <enum value="Optical"   option="1"/>
            </mode>
            <input      offset-bytes="158" bits="2" command="4"/>
            <output     offset-bytes="140" bits="2" command="4"/>
		</spdif-mode>
        <standalone     offset-bytes="141" bits="1"/>
	</settings>
    <preset>
        <enum value="Direct Routing"/>
        <enum value="System Playback"/>
        <enum value="2 Channel Analogue"/>
        <enum value="8 Channel Analogue"/>
        <enum value="Digital"/>
        <enum value="Analogue + Digital"/>
        <enum value="Standalone Preamp"/>
        <enum value="Empty"/>
    </preset>
    <notifications>
        <notification name="dim-mute"   value="0x00200000"/>
        <notification name="monitor"    value="0x00400000"/>
    </notifications>
    <appspace appspace-size="8352" app-ofs="160" appstorage-size="8192" flash-command="6"/>
	<routing num="75" num-m="67" num-h="63"/>
    <firmware>
        <segment name="App_Upgrade" nickname="App" version="1195" file="Clarett_8Pre_USB.bin">
            <version offset-bytes="12" bits="32"/>
        </segment>
    </firmware>
</device>
