<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<panel
 border="true"
 follows="all"
 height="408"
 label="Sounds"
 layout="topleft"
 left="102"
 name="Preference Media panel"
 top="1"
 width="517">
    <slider
     control_name="AudioLevelMaster"
     follows="left|top"
     font.style="BOLD"
     height="15"
     increment="0.025"
     initial_value="0.5"
     label="Master volume"
	   label_width="120"
     layout="topleft"
     left="0"
     name="System Volume"
     show_text="false"
     slider_label.halign="right"
     top="10"
     volume="true"
     width="300">
        <slider.commit_callback
         function="Pref.setControlFalse"
         parameter="MuteAudio" />
    </slider>
    <button
     control_name="MuteAudio"
     follows="top|left"
     height="16"
     image_selected="AudioMute_Off"
     image_unselected="Audio_Off"
     is_toggle="true"
     layout="topleft"
	   left_pad="5"
     name="mute_audio"
     tab_stop="false"
     width="16" />
    <check_box
     control_name="MuteWhenMinimized"
     height="15"
     initial_value="true"
     label="Mute when minimized"
     layout="topleft"
     name="mute_when_minimized"
	   top_delta="3"
     left_pad="5"
     width="235" />
	<slider
		control_name="AudioLevelUI"
		disabled_control="MuteAudio"
		follows="left|top"
		height="15"
		increment="0.025"
		initial_value="0.5"
		label="Buttons"
		label_width="120"
		layout="topleft"
		left="0"
		name="UI Volume"
		show_text="false"
		slider_label.halign="right"
		top_pad="7"
		volume="true"
		width="300">
	  <slider.commit_callback
		  function="Pref.setControlFalse"
		  parameter="MuteUI" />
	</slider>
	<button
		control_name="MuteUI"
		disabled_control="MuteAudio"
		follows="top|left"
		height="16"
		image_selected="AudioMute_Off"
		image_unselected="Audio_Off"
		is_toggle="true"
		layout="topleft"
		left_pad="5"
		name="mute_audio"
		tab_stop="false"
		width="16" />
    <slider
     control_name="AudioLevelAmbient"
     disabled_control="MuteAudio"
     follows="left|top"
     height="15"
     increment="0.025"
     initial_value="0.5"
     label="Ambient"
     label_width="120"
     layout="topleft"
     left="0"
     name="Wind Volume"
     show_text="false"
     slider_label.halign="right"
     top_pad="7"
     volume="true"
     width="300">
        <slider.commit_callback
         function="Pref.setControlFalse"
         parameter="MuteAmbient" />
    </slider>
        <button
    control_name="MuteAmbient"
     disabled_control="MuteAudio"
     follows="top|left"
     height="16"
     image_selected="AudioMute_Off"
     image_unselected="Audio_Off"
     is_toggle="true"
     layout="topleft"
     left_pad="5"
     name="mute_audio"
     tab_stop="false"
     width="16" />
    <slider
     control_name="AudioLevelSFX"
     disabled_control="MuteAudio"
     follows="left|top"
     height="15"
     increment="0.025"
     initial_value="0.5"
     label="Sound Effects"
     label_width="120"
     slider_label.halign="right"
     layout="topleft"
     left="0"
     name="SFX Volume"
     show_text="false"
     top_pad="7"
     volume="true"
     width="300">
        <slider.commit_callback
         function="Pref.setControlFalse"
         parameter="MuteSounds" />
    </slider>
   <button
     control_name="MuteSounds"
     disabled_control="MuteAudio"
     follows="top|left"
     height="16"
     image_selected="AudioMute_Off"
     image_unselected="Audio_Off"
     is_toggle="true"
     layout="topleft"
     left_pad="5"
     name="mute_audio"
     tab_stop="false"
     width="16" />
    <slider
     control_name="AudioLevelMusic"
     disabled_control="MuteAudio"
     follows="left|top"
     height="15"
     increment="0.025"
     initial_value="0.5"
     label="Streaming music"
     label_width="120"
     layout="topleft"
     left="0"
     name="Music Volume"
     slider_label.halign="right"
     show_text="false"
     top_pad="7"
     volume="true"
     width="300">
        <slider.commit_callback
         function="Pref.setControlFalse"
         parameter="MuteMusic" />
	</slider>
    <button
     control_name="MuteMusic"
	   disabled_control="MuteAudio"
     follows="top|left"
     height="16"
     image_selected="AudioMute_Off"
     image_unselected="Audio_Off"
     is_toggle="true"
     layout="topleft"
	   left_pad="5"
     name="mute_audio"
     tab_stop="false"
	 width="16" />
	<check_box
		control_name="AudioStreamingMusic"
		height="16"
		label="Enabled"
		layout="topleft"
		left_pad="5"
		name="music_enabled"
		top_delta="2"
		width="350"/>
	<slider
		control_name="AudioLevelMedia"
		disabled_control="MuteAudio"
		follows="left|top"
		height="16"
		increment="0.025"
		initial_value="0.5"
		label="Media"
		label_width="120"
		layout="topleft"
		left="0"
		name="Media Volume"
		show_text="false"
		slider_label.halign="right"
		top_pad="7"
		volume="true"
		width="300">
	  <slider.commit_callback
		  function="Pref.setControlFalse"
		  parameter="MuteMedia" />
	</slider>
	<button
		control_name="MuteMedia"
		disabled_control="MuteAudio"
		follows="top|left"
		height="16"
		image_selected="AudioMute_Off"
		image_unselected="Audio_Off"
		is_toggle="true"
		layout="topleft"
		left_pad="5"
		name="mute_audio"
		tab_stop="false"
		width="16" />
	<check_box
		label_text.halign="left"
		follows="left|top"
		height="16"
		control_name ="AudioStreamingMedia"
		label="Enabled"
		layout="topleft"
		top_delta="2"
		left_pad="5"
		name="enable_media"
		width="110"/>
	<slider
		control_name="AudioLevelVoice"
		disabled_control="MuteAudio"
		follows="left|top"
		height="16"
		increment="0.025"
		initial_value="0.5"
		label="Voice Chat"
		label_width="120"
		layout="topleft"
		left="0"
		top_delta="20"
		name="Voice Volume"
		show_text="false"
		slider_label.halign="right"
		volume="true"
		width="300">
	  <slider.commit_callback
		  function="Pref.setControlFalse"
		  parameter="MuteVoice" />
	</slider>
	<button
		control_name="MuteVoice"
		disabled_control="MuteAudio"
		follows="top|left"
		height="16"
		image_selected="AudioMute_Off"
		image_unselected="Audio_Off"
		is_toggle="true"
		layout="topleft"
		left_pad="5"
		name="mute_audio"
		tab_stop="false"
		width="16" />
	<check_box
		label_text.halign="left"
		follows="left|top"
		height="16"
		control_name ="EnableVoiceChat"
		disabled_control="CmdLineDisableVoice"
		label="Enabled"
		layout="topleft"
		top_delta="2"
		left_pad="5"
		name="enable_voice_check"
		width="110"/>
	<!-- -->
	<check_box
		name="media_auto_play_btn"
		control_name="ParcelMediaAutoPlayEnable"
		value="true"
		follows="left|bottom|right"
		height="15"
		tool_tip="Check this to let media auto-play if it wants"
		label="Allow Media to auto-play"
		top_pad="5"
		left="25"/>
	<check_box
		name="media_show_on_others_btn"
		control_name="MediaShowOnOthers"
		value="true"
		follows="left|bottom|right"
		height="15"
		tool_tip="Uncheck this to hide media attached to other avatars nearby"
		label="Play media attached to other avatars"
		left="25"/>

    <text
     type="string"
     length="1"
     follows="left|top"
     height="20"
     layout="topleft"
     left="25"
     name="voice_chat_settings"
     width="200"
     top="210">
	  Voice Chat Settings
    </text>
    <text
     type="string"
     length="1"
     follows="left|top"
     layout="topleft"
	   left="80"
	   top_delta="16"
     name="Listen from"
     width="142">
        Listen from:
    </text>
	<icon
		follows="left|top"
		height="18"
		image_name="Cam_FreeCam_Off"
		layout="topleft"
		name="camera_icon"
		mouse_opaque="false"
		visible="true"
		width="18"
		left_pad="0"
		top_delta="-5"/>
	<icon
		follows="left|top"
		height="18"
		image_name="Move_Walk_Off"
		layout="topleft"
		name="avatar_icon"
		mouse_opaque="false"
		visible="true"
		width="18"
		top_delta="20" />
   <radio_group
     enabled_control="EnableVoiceChat"
     control_name="VoiceEarLocation"
     draw_border="false"
     follows="left|top"
     layout="topleft"
     left_pad="2"
     width="221"
     height="38"
     name="ear_location">
    <radio_item
     height="16"
     label="Camera position"
     follows="left|top"
     layout="topleft"
     name="0"
     width="200"/>
    <radio_item
     height="16"
     follows="left|top"
     label="Avatar position"
     layout="topleft"
     name="1"
     width="200" />
   </radio_group>
  <button
   control_name="ShowDeviceSettings"
   follows="left|top"
   height="23"
   is_toggle="true"
   label="Input/Output devices"
   layout="topleft"
   left="80"
   top_pad="5"
   name="device_settings_btn"
   width="190">
  </button>
    <panel
     background_visible="false"
     bg_alpha_color="DkGray"
     visiblity_control="ShowDeviceSettings"
     border="false"
     follows="top|left"
     height="120"
     label="Device Settings"
     layout="topleft"
     left="0"
     name="device_settings_panel"
     class="panel_voice_device_settings"
     width="501"
     top="285">
      <panel.string
        name="default_text">
        Default
      </panel.string>
      <panel.string
        name="default system device">
        Default system device
      </panel.string>
      <panel.string
        name="no device">
        No device
      </panel.string>
      <icon
             height="18"
             image_name="Microphone_On"
             left="80"
             name="microphone_icon"
             mouse_opaque="false"
             top="7"
             visible="true"
             width="18" />
    <text
     type="string"
     length="1"
      font.style="BOLD"
     follows="left|top"
     height="16"
     layout="topleft"
     left_pad="3"
     name="Input"
     width="200">
        Input
    </text>
    <combo_box
     height="23"
     control_name="VoiceInputAudioDevice"
     layout="topleft"
     left="165"
     max_chars="128"
     name="voice_input_device"
     top_pad="-2"
     width="200" />
   <text
     type="string"
     length="1"
     follows="left|top"
     height="16"
     layout="topleft"
     left="165"
     name="My volume label"
     top_pad="5"
     width="200">
        My volume:
    </text>
      <slider_bar
        control_name="AudioLevelMic"
     follows="left|top"
     height="17"
     increment="0.025"
     initial_value="1.0"
     layout="topleft"
     left="160"
     max_val="2"
     name="mic_volume_slider"
     tool_tip="Change the volume using this slider"
     top_pad="-2"
     width="220" />
    <text
     type="string"
     text_color="EmphasisColor"
     length="1"
     follows="left|top"
     height="18"
     layout="topleft"
     left_pad="5"
     name="wait_text"
     top_delta="0"
     width="110">
        Please wait
    </text>
    <locate
     height="20"
     layout="topleft"
     left_delta="0"
     name="bar0"
     top_delta="0"
     width="20" />
    <locate
     height="20"
     layout="topleft"
     left_pad="5"
     name="bar1"
     top_delta="0"
     width="20" />
    <locate
     height="20"
     layout="topleft"
     left_pad="5"
     name="bar2"
     top_delta="0"
     width="20" />
    <locate
     height="20"
     layout="topleft"
     left_pad="5"
     name="bar3"
     top_delta="0"
     width="20" />
    <locate
     height="20"
     layout="topleft"
     left_pad="5"
     name="bar4"
     top_delta="0"
     width="20" />
          <icon
             height="18"
             image_name="Parcel_Voice_Light"
             left="80"
             name="speaker_icon"
             mouse_opaque="false"
             top_pad="-8"
             visible="true"
             width="22" />
    <text
     font.style="BOLD"
     type="string"
     length="1"
     follows="left|top"
     height="15"
     layout="topleft"
     left_pad="0"
     name="Output"
     width="200">
        Output
    </text>
    <combo_box
     control_name="VoiceOutputAudioDevice"
     height="23"
     layout="topleft"
     left="165"
     max_chars="128"
     name="voice_output_device"
     top_pad="-2"
     width="200" />
    </panel>
    </panel>