# Creating sound groups

**URL:** https://qa.fmod.com/t/creating-sound-groups/15372
**Category:** FMOD Studio
**Created:** [January 9, 2020, 3:34pm UTC](https://qa.fmod.com/t/creating-sound-groups/15372 "2020-01-09T15:34:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 9, 2020, 3:34pm UTC](https://qa.fmod.com/t/creating-sound-groups/15372/1 "2020-01-09T15:34:05Z")

</div>

Hello people, I was wondering if you had any examples for me (in JavaScript) on how to create a SoundGroup. I need it to lower my game volume when sound is already running, so I really do need this.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [January 10, 2020, 1:52am UTC](https://qa.fmod.com/t/creating-sound-groups/15372/2 "2020-01-10T01:52:17Z")

</div>

You will first need to create the SoundGroup (via System), then assign sounds to that group (via Sound), then adjust the volume as needed (via SoundGroup).

[https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system\_createsoundgroup](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_createsoundgroup)

[https://fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html#sound\_setsoundgroup](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html#sound_setsoundgroup)

[https://fmod.com/resources/documentation-api?version=2.0&page=core-api-soundgroup.html#soundgroup\_setvolume](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-soundgroup.html#soundgroup_setvolume)

---

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 10, 2020, 12:57pm UTC](https://qa.fmod.com/t/creating-sound-groups/15372/3 "2020-01-10T12:57:30Z")

</div>

But what is “sound” in sound\_setsoundgroup?

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [January 12, 2020, 11:59pm UTC](https://qa.fmod.com/t/creating-sound-groups/15372/4 "2020-01-12T23:59:33Z")

</div>

An FMOD Sound is a container for the audio file you wish to use.

[https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html)

Is your game using the FMOD Core system or are you using an FMOD Studio project? As these would be a different approach.

---

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 13, 2020, 7:12am UTC](https://qa.fmod.com/t/creating-sound-groups/15372/5 "2020-01-13T07:12:11Z")

</div>

I’m using FMOD Studio

---

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 13, 2020, 10:42am UTC](https://qa.fmod.com/t/creating-sound-groups/15372/6 "2020-01-13T10:42:34Z")

</div>

Also, what does the “adress of the variable” mean? I see it a lot but do not (fully) understand it

---

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 13, 2020, 11:47am UTC](https://qa.fmod.com/t/creating-sound-groups/15372/7 "2020-01-13T11:47:08Z")

</div>

Is it possible to do something like this: currentMusic.setVolume(audioLevel) ?

---

<div class="post-metadata">

### Author: ![GiantDad](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@GiantDad](https://qa.fmod.com/u/GiantDad)
#### Post date: [January 13, 2020, 2:30pm UTC](https://qa.fmod.com/t/creating-sound-groups/15372/8 "2020-01-13T14:30:44Z")

</div>

Right now i’m using gSystem.createChannelGroup and it’s not at all working. Can you use functions for FMODL in FMODSTUDIOL? I’m pretty sure it can’t but I’m not entirely sure

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [January 15, 2020, 12:42am UTC](https://qa.fmod.com/t/creating-sound-groups/15372/9 "2020-01-15T00:42:55Z")

</div>

> [@GiantDad](#):
>
> I’m using FMOD Studio

If you’re using an FMOD Studio project and calling events in your game, you need to assign those events to group buses in the project. If needed, you can also assign the group buses to VCAs. You can then use `setVolume()` on the bus or VCA in order to adjust the volume of a bunch of events at once.

> [@GiantDad](#):
>
> Also, what does the “adress of the variable” mean? I see it a lot but do not (fully) understand it

It is the location of the variable in memory. This is more of a programming question that I would recommend looking up or asking in a specialty forum.

> [@GiantDad](#):
>
> Is it possible to do something like this: currentMusic.setVolume(audioLevel) ?

It depends entirely what the `currentMusic` variable is. If this is an event or a bus then yes, this is fine.

> [@GiantDad](#):
>
> Right now i’m using gSystem.createChannelGroup and it’s not at all working. Can you use functions for FMODL in FMODSTUDIOL? I’m pretty sure it can’t but I’m not entirely sure

If `gSystem` is the FMOD Studio system, then you will need to use `gSystem::getCoreSystem` to get the FMOD Core system needed to create channel groups.
