# Music/SFX

You can add musics on you server with an edition gui **/ba edit**

To add music from autohost, put you audio files in plugins/BoostedAudio/webhost/audio\
And when you need to put audio link in plugin you can directly put as link:\
\&#xNAN;***audio/audioFile.wav***\
\
You can create many subfolders as you want in the audio dir to organize your audios

\
You can use **radio audio stream** as link it works great with both speaker and region

Region music system works with priority, so you can have one region in another region with audio, the biggest priority will override, if same priority the both region audio will be played

![](https://4138639394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpceKl1TSykDw7tc1SlPO%2Fuploads%2FwlRZbukPpGHQh1a4ZDyJ%2Fimage.png?alt=media\&token=f47d5ab7-e9c5-49a0-8077-8606c44ea2ad)

<div align="left"><figure><img src="https://4138639394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpceKl1TSykDw7tc1SlPO%2Fuploads%2FWXgQoukhaWyAN9wAZwOg%2Fimage.png?alt=media&#x26;token=c2f3c4e1-85f8-40a0-aca7-db4d6a7b4787" alt="" width="375"><figcaption></figcaption></figure></div>

![](https://4138639394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpceKl1TSykDw7tc1SlPO%2Fuploads%2F3GqaEzqtGPTDOkmwRcmA%2Fimage.png?alt=media\&token=e9f32fff-e8ec-40f0-8a24-53acc63149dc)

**Parameters explaination:**

<pre class="language-yaml"><code class="lang-yaml">links # The audio urls

synchronous # If the audio will be synced between player

fadeIn / fadeOut # The duration in ms of the fade effect

loop # If the audio play once, of it it's loop
<strong>
</strong><strong>maxVoiceDistance # The max distance a thing could be heard, used to calculate redDistance when not specified
</strong>
distanceModel # The calculation model for the distance volume attenuation, linear, inverse, exponential

refDistance # This property defines the distance from which the sound begins to attenuate

rolloffFactor # This property controls how quickly the sound attenuates as distance increases
</code></pre>


---

# 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://supermax-8.gitbook.io/boostedaudio/basics/music-sfx.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.
