# Audio System

You can add new musics or sound effects by below steps:

1. On Project Window, search "settings data" -> select "Settings Data" asset on The Project Window.\ <br>

   <figure><img src="/files/vLMPEnpIw9G3i7QWxdkz" alt="" width="563"><figcaption></figcaption></figure>

2. On The Settings Data Inspector Window, click on add musics button -> input music name and add the audio clip you like.\ <br>

   <figure><img src="/files/gQ2BO5Us8iLP2rfSPSxM" alt="" width="499"><figcaption></figcaption></figure>

3. In the script where you want to play new musics, add namespace *<mark style="background-color:blue;">BK.RacingGame2DTemplate.Common</mark>* at the top of script -> add the line code *<mark style="background-color:blue;">AudioManager.Instance.PlayMusic("GameplayNew")</mark>*.

{% hint style="info" %}
For playing new sound effect, add line code *<mark style="background-color:blue;">AudioManager.Instance.PlaySFX("YourNameSoundEffect")</mark>*.
{% endhint %}

{% hint style="info" %}
For re-skin game, you can easily replace audio clips on The Settings Data Inspector Window.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-knight.gitbook.io/2d-racing-multiplayer-game-template/customization/audio-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
