SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0"?>
  2. <conga version="2.2.1">
  3.  
  4.   <plugin name="volume">
  5.     <arg name="media" scale="0:-50db 100:0db"/> <!-- control volume of media outputs. -->
  6.     <arg name="telephony" channels="left:0 right:1" scale="0:-50db 100:0db"/> <!-- control volume of telephony outputs. -->
  7.     <arg name="default" channels="left:0 right:1" scale="0:-50db 100:0db"/> <!-- control volume of default outputs. -->
  8.  
  9.     <arg name="tuner" channels="left:0 right:1"/> <!-- control volume (mute) of tuner input. -->
  10.   </plugin>
  11.  
  12.   <!-- Import all hardware specific configuration -->
  13.   <!--   <import config="/etc/conga/conga_hw_ulcb.xml"/> -->
  14.  
  15.   <!-- Allows only one instance of the session, replacing one another when starting -->
  16.   <session name="ATOMIC_SESSION">
  17.     <policy>
  18.       <rule action="abort" target="ATOMIC_SESSION"/>
  19.     </policy>
  20.   </session>
  21.  
  22.   <chain name="speaker_mixer_chain">
  23.  
  24.     <mixer name="speaker_mixer">
  25.       <interface mode="slave" sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  26.     </mixer>
  27.  
  28.     <node type="alsa" name="speaker">
  29.       <arg device="hw:2,0"/>
  30.       <interface mode="master" direction="sink" sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  31.     </node>
  32.   </chain>
  33.  
  34.  
  35.     <session name="soundcard">
  36.         <chain>
  37.           <node type="catmux"> <!-- 1 slot contains the name, the idx of the channel, and the number of channel -->
  38.             <arg slot="front     0  2"/>
  39.             <arg slot="surround  2  2"/>
  40.             <arg slot="center  4  2"/>
  41.             <arg slot="rear    6  2"/>
  42.             <interface direction="source" sample="s16" nbchan="8" rate="48000" nbframe="1024"/>
  43.           </node>
  44.           <node type="alsa" name="speaker">
  45.             <interface sample="s16" nbchan="8" rate="48000" nbframe="1024"/>
  46.             <arg device="hw:2,0"/>
  47.           </node>
  48.         </chain>
  49.     </session>
  50.  
  51.  
  52. <session name="b">
  53.     <chain>
  54.         <node type="generator">
  55.             <arg wavefreq="250"/>
  56.             <arg amplitude="0.5"/>
  57.             <interface sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  58.         </node>
  59.         <node type="format">
  60.             <interface direction="source" sample="s16"/>
  61.         </node>
  62.         <node type="catmux" name="surround"/>
  63.     </chain>
  64.   </session>
  65.  
  66.  
  67. <session name="c">
  68.   <chain>
  69.     <node type="stream" name="BUS0_MEDIA_ANDROID_out">
  70.       <interface sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  71.     </node>
  72.     <node type="queue"/>
  73.     <node type="format">
  74.       <interface direction="source" sample="s16"/>
  75.     </node>
  76.         <node type="catmux" name="front"/>
  77.   </chain>
  78. </session>
  79.  
  80.  
  81.  
  82.   <session name="BUS0_MEDIA_ANDROID">
  83.     <chain>
  84.       <node type="stream" name="BUS0_MEDIA_ANDROID_out"/>
  85.       <node type="queue">
  86.         <arg maxelem="4"/>
  87.         <arg poolsize="20000"/>
  88.         <interface direction="source" nbframe="1024"/>
  89.       </node>
  90.       <node type="format">
  91.         <interface direction="source" sample="s16"/>
  92.       </node>
  93.         <node type="catmux" name="front"/>
  94.  
  95.  
  96.     </chain>
  97.     <policy>
  98.       <inherit parent="ATOMIC_SESSION"/>
  99.     </policy>
  100.   </session>
  101.  
  102.   <session name="BUS1_TELEPHONY_ANDROID">
  103.     <chain>
  104.       <node type="stream" name="BUS1_TELEPHONY_ANDROID_out"/>
  105.       <node type="queue">
  106.         <arg maxelem="4"/>
  107.         <arg poolsize="20000"/>
  108.         <interface direction="source" nbframe="1024"/>
  109.       </node>
  110.       <node type="format">
  111.         <interface direction="source" sample="s16"/>
  112.       </node>
  113.       <node type="volume">
  114.         <arg stage="telephony"/>
  115.       </node>
  116.       <mix into="speaker_mixer"/>
  117.     </chain>
  118.     <policy>
  119.       <rule action="reject" target="PROJECTEDMODE_META"/>
  120.     </policy>
  121.   </session>
  122.  
  123.   <session name="BUS2_DEFAULT_ANDROID">
  124.     <chain>
  125.       <node type="stream" name="BUS2_DEFAULT_ANDROID_out"/>
  126.       <node type="queue">
  127.         <arg maxelem="4"/>
  128.         <arg poolsize="20000"/>
  129.         <interface direction="source" nbframe="1024"/>
  130.       </node>
  131.       <node type="format">
  132.         <interface direction="source" sample="s16"/>
  133.       </node>
  134.       <node type="volume">
  135.         <arg stage="default"/>
  136.       </node>
  137.       <mix into="speaker_mixer"/>
  138.     </chain>
  139.   </session>
  140.  
  141.   <session name="session_android_in">
  142.     <chain>
  143.       <node type="alsa" name="micro_in">
  144.         <arg device="hw:0,0"/>
  145.         <interface direction="source" mode="master"
  146.           sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  147.       </node>
  148.       <node type="stream" name="dev_android_in">
  149.         <interface direction="sink" mode="slave"
  150.           sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
  151.       </node>
  152.     </chain>
  153.   </session>
  154.  
  155.   <session name="session_android_radio">
  156.     <chain>
  157.       <node type="udpsrc" name="sinkpipeline">
  158.         <arg port="4243"/>
  159.         <interface direction="source" mode="master"
  160.           sample="s16" nbchan="2" rate="48000" nbframe="1920"/>
  161.       </node>
  162.       <node type="queue">
  163.         <arg maxelem="4"/>
  164.         <arg poolsize="40000"/>
  165.         <interface direction="source" nbframe="256"/>
  166.       </node>
  167.       <node type="format">
  168.         <interface direction="source" sample="s16"/>
  169.       </node>
  170.       <node type="volume">
  171.         <arg stage="tuner"/> <!-- control from android of the radio tuner input state -->
  172.       </node>
  173.       <node type="volume">
  174.         <arg stage="media"/>
  175.       </node>
  176.       <mix into="speaker_mixer"/>
  177.     </chain>
  178.   </session>
  179.  
  180.   <session name="system_sounds">
  181.     <chain>
  182.       <node type="stream" name="system_sounds_stream"/>
  183.       <node type="queue">
  184.         <arg maxelem="4"/>
  185.         <arg poolsize="20000"/>
  186.         <interface direction="source" nbframe="1024"/>
  187.       </node>
  188.       <node type="format">
  189.         <interface direction="source" sample="s16"/>
  190.       </node>
  191.       <mix into="speaker_mixer"/>
  192.     </chain>
  193.     <policy>
  194.       <rule action="abort" target="session_android_out"/>
  195.       <rule action="reject" target="PROJECTEDMODE_META"/>
  196.     </policy>
  197.   </session>
  198.  
  199.     <!-- <import config="/etc/conga/conga_iap_usb.xml"/> -->
  200.   <chain name="chain_iap_snk">
  201.     <node type="resamp">
  202.       <arg quality="bli12"/>
  203.       <interface direction="source" rate="48000" nbframe="256"/>
  204.     </node>
  205.     <node type="format">
  206.       <interface direction="source" sample="s16"/>
  207.     </node>
  208.     <node type="volume">
  209.       <arg stage="media"/>
  210.     </node>
  211.     <mix into="speaker_mixer"/>
  212.   </chain>
  213.  
  214.     <!-- <import config="/etc/conga/conga_projectedmodes.xml"/> -->
  215.  
  216.   <session name="PROJECTEDMODE_META">
  217.     <policy>
  218.       <inherit parent="ATOMIC_SESSION"/>
  219.       <rule action="cancel" target="BUS1_TELEPHONY_ANDROID"/>
  220.       <rule action="cancel" target="BUS2_DEFAULT_ANDROID"/>
  221.       <rule action="cancel" target="session_android_radio"/>
  222.       <rule action="cancel" target="session_iap_usb"/>
  223.     </policy>
  224.   </session>
  225.  
  226.   <session name="PROJECTEDMODE_VOICERECO"/>
  227.  
  228.   <chain name="chain_pm_snk">
  229.     <node type="format">
  230.       <interface direction="source" sample="s16"/>
  231.     </node>
  232.     <node type="volume">
  233.       <arg stage="media"/>
  234.     </node>
  235.     <node type="alsa" name="">
  236.       <arg device="hw:0,0"/>
  237.       <interface direction="sink" sample="s16" nbchan="2" rate="48000" nbframe="256"/>
  238.     </node>
  239.   </chain>
  240.  
  241. </conga>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top