# Adding Audio Clips



ScriptableObjects for audio can be created by "Right Clicking anywhere in the project panel > Create > Sound" or duplicating an already created SO.

![](https://2353973356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbkr7k2TzEBCzIaxME2%2Fuploads%2FOt0im562n3g9RyrznWpD%2FFolderSO.JPG?alt=media\&token=8bb00b13-2443-471e-bdd6-4103af1549b7)

ScriptableObjects will all have specific settings that control the audio clip which is used, that you can change, the volume, pitch, variance and whether it can loop. All features of the default "AudioSource" component.&#x20;

![](https://2353973356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbkr7k2TzEBCzIaxME2%2Fuploads%2FwjT4I2jeoDW40gMLNvqx%2FMainSO.JPG?alt=media\&token=5842e013-2001-43cc-a0cf-054087eefeb2)

In the "AudioManager" is good to add the size of the "Sounds" array to the number of sounds which will play within this system. By default it has 8 SO audio clips, these should be added to access them all.

![](https://2353973356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbkr7k2TzEBCzIaxME2%2Fuploads%2FxVtRnb1KizJL8pJTFPKk%2FAudioManager.JPG?alt=media\&token=2860eda2-75ff-4643-865a-539e109cd490)

In the "**GenItem**" - Look at the inspector and you'll see slots for each of the applicable SO which you create in the project panel, add any of these to the appropriate slots. This allows you to play that specific SO from the audio manager.

![](https://2353973356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbkr7k2TzEBCzIaxME2%2Fuploads%2FZVfB0CVUUd2sqIpC8NM2%2FSoundEffects.JPG?alt=media\&token=b5ee35d0-2ef1-470f-ae0b-1f85e4e001e6)

{% hint style="info" %}
**Referencing the Audio Manager**\
&#x20; \
Use the code, within your scripts to reference your sounds to play
{% endhint %}

```csharp
GenAudioManager.instance.Play(VariableSound.name);
```
