# Multiple Volume Controls

Volume controls can be applied to audio played using GC Actions and Audio Source attached to a Game Object. To use the Multiple Volume Controls Action, you need to define two new Game Object **Tags.**&#x20;

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-LhjTxGeYH_9Qkn_j55q%2F-LhjZAmOFZCQPkkZMEcl%2Ftags.png?alt=media\&token=5d30f5d8-dbeb-4ef0-9c23-2c75b8149301)

* SoundTag1
* SoundTag2
*

{% hint style="danger" %}
If these Tags are not defined, Unity will throw an error and the Action will not complete.
{% endhint %}

These tags can be assigned to any GameObject that has an Audio Source component attached to it. This will allow the volume of that particular sound to be controlled. At present, there are two groups, Tag 1 and Tag 2, and these can be controlled using the Mulitple Volume Controls Action.

{% hint style="danger" %}
Do not assign a Sound tag to an Object WITHOUT an Audio Source. This will result in an Error.
{% endhint %}

This Action can be Triggered from an input, or from a Variable. All values can be obtained using Game Creator Variables. See the Canvas example scene for options.

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-LhjTxGeYH_9Qkn_j55q%2F-LhjU3TueZTBmvOeyiNV%2FsoundAction.png?alt=media\&token=4c1e7a05-4f79-4c96-9b1a-7542e99e0761)

The Default Volume is 1 and this is the level at which the sound is recorded. Unity does not provide a facility to increase the Volume, only decrease. Using the slider, or by select a variable, each of the Game Creator sounds and the two TAG groups can each be reduced independanlty of each other.&#x20;

{% hint style="info" %}
Default settings are:

* GC Music Volume: 1 (can be reduced to 0)
* GC Sound Volume: 1 (can be reduced to 0)
* GC Voice Volume: 1 (can be reduced to 0)
* Audio Source Volume (SoundTag1): 1 (can be reduced to 0)
* Audio Source Volume (SoundTag2): 1 (can be reduced to 0)
{% endhint %}

Game Creator sounds are those that have been started or player using Game Creator Audion Actions. Audio Source sounds are those where the Audio Source is attached to a Game Object. The Game Object must have either SoundTag1 or SoundTag2 to enable volume control.

{% hint style="success" %}
**Recommended Settings for players with Cognitive impairments:**

* GC Music Volume: **0.3**
* GC Sound Volume: **0.8**
* GC Voice Volume: **1**&#x20;
* Audio Source Volume (SoundTag1): **1 (for important sounds)**
* Audio Source Volume (SoundTag2): **0.5 (for environment sounds)**

Or allow the player to choose their own levels using an in-game settings panel.&#x20;
{% endhint %}

{% hint style="info" %}
See the Examples Scenes and Settings Canvas provided with this Module.
{% endhint %}

