Skip to content

Instantly share code, notes, and snippets.

@MathieuDuponchelle
Created November 17, 2016 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MathieuDuponchelle/b2d04839a398a10a587266cca5523ae0 to your computer and use it in GitHub Desktop.
Save MathieuDuponchelle/b2d04839a398a10a587266cca5523ae0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<c:configuration xmlns:c="controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="controller audiomanagertypes.xsd ">
<listSources>
<source>
<domainName>GStreamer</domainName>
<name>GstTestSourceWhiteNoise</name>
<className>TEST</className>
<registrationType>REG_ROUTER</registrationType>
</source>
<source>
<domainName>GStreamer</domainName>
<name>GstTestSourceSine</name>
<className>TEST</className>
<registrationType>REG_ROUTER</registrationType>
</source>
</listSources>
<listSinks>
<sink>
<domainName>GStreamer</domainName>
<name>GstAutoAudioSink</name>
<className>TEST</className>
<registrationType>REG_ROUTER</registrationType>
</sink>
</listSinks>
<listGateways>
</listGateways>
<listDomains>
<domain>
<name>GStreamer</name>
<registrationType>REG_ROUTER</registrationType>
</domain>
</listDomains>
<listClasses>
<class>
<name>TEST</name>
<type>C_PLAYBACK</type>
<priority>1</priority>
<topology>GstAutoAudioSink=GstTestSourceSine^GstTestSourceWhiteNoise</topology>
</class>
</listClasses>
<listPolicies>
<policy>
<trigger>USER_CONNECTION_REQUEST</trigger>
<process>
<condition>connectionState(CONNECTIONOFSOURCE, REQUESTING) NE CS_SUSPENDED</condition>
<action>
<type>ACTION_SET_VOLUME</type>
<param>
<sinkName>REQUESTING</sinkName>
<mainVolume>50</mainVolume>
</param>
</action>
<action>
<type>ACTION_SET_VOLUME</type>
<param>
<sourceName>REQUESTING</sourceName>
<volume>10</volume>
</param>
</action>
<action>
<type>ACTION_CONNECT</type>
<param>
<sourceName>REQUESTING</sourceName>
<sinkName>REQUESTING</sinkName>
</param>
</action>
</process>
<process>
<condition>name(SOURCE, REQUESTING) EQ "GstTestSourceWhiteNoise"</condition>
<condition>connectionState(CONNECTIONOFSOURCE, REQUESTING) EQ CS_SUSPENDED</condition>
<action>
<type>ACTION_RESUME</type>
<param>
<className>REQUESTING</className>
</param>
</action>
</process>
</policy>
<policy>
<trigger>USER_DISCONNECTION_REQUEST</trigger>
<process>
<condition>name(SOURCE, REQUESTING) EQ "GstTestSourceWhiteNoise"</condition>
<action>
<type>ACTION_SUSPEND</type>
<param>
<sourceName>REQUESTING</sourceName>
<sinkName>REQUESTING</sinkName>
</param>
</action>
</process>
<process>
<condition>name(SOURCE, REQUESTING) NE "GstTestSourceWhiteNoise"</condition>
<action>
<type>ACTION_DISCONNECT</type>
<param>
<sourceName>REQUESTING</sourceName>
<sinkName>REQUESTING</sinkName>
</param>
</action>
</process>
</policy>
</listPolicies>
</c:configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment