# Volume slider issue

**URL:** <https://qa.fmod.com/t/volume-slider-issue/20774>\
**Category:** FMOD Engine\
**Created:** [October 15, 2023, 11:28pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774 "2023-10-15T23:28:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [October 15, 2023, 11:28pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/1 "2023-10-15T23:28:04Z")

</div>

There are strange inconsistencies in the volume sliders that my programmer has made.

Video here: [FrankenStorm\_h4rB5u5fX6.mp4](https://1drv.ms/v/s!AnrdhL_rprSCissWSCXskCEl_j8HsA?e=4oT5Hk)

In FMOD, I simply have made several VCA sliders and routed the group channels to these VCA’s.

As you can see in the video, each slider is inconsistent.

This is the code:  
\_volumeMasterId = RuntimeManager.GetVCA(“vca:/Master”);  
\_volumeSfxId = RuntimeManager.GetVCA(“vca:/SFX”);  
\_volumeUIId = RuntimeManager.GetVCA(“vca:/UI”);  
\_volumeVoiceId = RuntimeManager.GetVCA(“vca:/Dialogue”);  
\_volumeMusicId = RuntimeManager.GetVCA(“vca:/Music”);  
\_volumeAmbienceId = RuntimeManager.GetVCA(“vca:/Ambience”);

…

```
        _volumeMasterId.setVolume(_localData.VolumeMaster * 0.01f);
        _volumeSfxId.setVolume(_localData.VolumeSfx * 0.01f);
        _volumeUIId.setVolume(_localData.VolumeUI * 0.01f);
        _volumeVoiceId.setVolume(_localData.VolumeVoice * 0.01f);
        _volumeMusicId.setVolume(_localData.VolumeMusic * 0.01f);
        _volumeAmbienceId.setVolume(_localData.VolumeAmbience * 0.01f);

```

This is a screen shot of FMOD:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/8dfb3347824c33a2710ac6831ff33eba7e89f39b.png)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 18, 2023, 6:19am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/2 "2023-10-18T06:19:33Z")

</div>

Hi,

Thank you for the video.

Could you explain what the intended behavior is for the sliders? Should the interaction sounds change with the sliders or remain consistent?

Just to confirm the `_localData` is the values being returned from the sliders?

---

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [October 25, 2023, 11:52pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/3 "2023-10-25T23:52:40Z")

</div>

The intended behaviour: the interaction sound should change in volume to match the volume of the slider. So if the slider is close to 0, then you should barely be able to hear the sound. If the slider is near max, then you should hear it loud and clear. The master volume should be factored into this. The problem that the video shows is that the volumes are not acting consistently:

- the master volume slider is not having its volume change for some reason
- the interface volume slider does get louder and quieter, but is overall much quieter than the others, even when it and master are at full volume

Regarding `_localData` , yes that is indeed the values being returned from the sliders, which ranges from 0 to 100.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 1, 2023, 12:23am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/4 "2023-11-01T00:23:46Z")

</div>

Hi,

Thank you for the explanation. the issue may be with the scaling you are using with the sliders. I would suggest using the function `VCA::getVolume()` ([FMOD Engine | Studio API Reference - VCA](https://fmod.com/docs/2.02/api/studio-api-vca.html#studio_vca_getvolume)) to make sure that the values are what you expect.

The Volume does not have a linear scale, so the difference between `1 - 0.5` is less than you will hear compared to `0.5 - 0`. Try changing the min and max values of the sliders to find the right range.

Have you connected [FMOD Studio | Live Update](https://fmod.com/docs/2.02/studio/editing-during-live-update.html), it will allow you to change the VCA values as well during runtime to get the values right.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [November 20, 2023, 12:07am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/5 "2023-11-20T00:07:38Z")

</div>

Hey thanks for reaching out.

I understand scaling can be an issue…However, all the scaling is set the same for each slider, so there shouldn’t be inconsistent differences in the audio clicks for each slider?

As you can hear in the video, each sub slider is different… and it shouldn’t be.

For example, you can hear that “interface” and “music” are quieter than the other sub sliders.

And of course, the most obvious and worse issue is the master slider, which doesn’t even change volume at all as you slide up and down.

Once again, these have all been set to the same value and scaling, so I would expect it all to sound the same from min to max, should it not?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 21, 2023, 10:12pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/6 "2023-11-21T22:12:43Z")

</div>

Hi,

Would it be possible to get your FMOD Studio project package with the following settings:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/104bec63f2428585dfa4782ebdf41812ba9054ae.png)  
[uploaded](https://fmod.com/profile#uploads) to your [profile](https://fmod.com/profile) to test on my side? Please note you will have to register a project with us to be able to upload.

> [@RobbieHart](#):
>
> Once again, these have all been set to the same value and scaling, so I would expect it all to sound the same from min to max, should it not?

Yes, it may be the way the VCA’s hierarchy is influencing the volumes. It will help being able to have a look at the project to identify the issue.

---

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [November 23, 2023, 11:07pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/7 "2023-11-23T23:07:07Z")

</div>

Cool, thanks for that.

Ive sent a project request.

I just realised you asked for a website… I gave my own personal music website.  
However, upon reflection, I imagine you were probably wanting a website of the game itself??  
If so, we don’t have a website, rather a download link to a pitch deck PDF.  
You can also search ‘Frankenstorm TD’ in Steam if you want to see the trailer, info etc…

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 27, 2023, 1:46am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/8 "2023-11-27T01:46:46Z")

</div>

Hi,

Your account has been verified and you should now be able to upload the project.

Thank you for the information.

---

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [November 28, 2023, 12:36am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/9 "2023-11-28T00:36:51Z")

</div>

cool, uploaded!  
Thanks

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [December 3, 2023, 11:07pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/10 "2023-12-03T23:07:22Z")

</div>

Hi,

Thank you for the project. Unfortunately, I was not able to reproduce the issue. The only sliders that influenced the `UI_ClickSlider` event volume for me were the Master`and`UI`. Have you had a chance to connect Live Update and check that the behavior is as you expect on that side? Are the sliders only affecting the VCAs you’d expect them to?

I have dm’d you the test project I set up along with the code I used to see if this is the functionality you were looking for.

---

<div class="post-metadata">

**Author:** ![RobbieHart](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@RobbieHart](https://qa.fmod.com/u/RobbieHart)\
**Post date:** [December 17, 2023, 10:34pm UTC](https://qa.fmod.com/t/volume-slider-issue/20774/11 "2023-12-17T22:34:20Z")

</div>

Hey, thanks, yeah I’ve sent a reply back with details from my programmer, if you have a chance to check.

In regards to the slider behaving on my end in FMOD, I checked that out, I can’t see any _visible_ changes to the sliders themselves, are the sliders supposed to move in conjunction with me sliding the sliders in Unity whilst in Liveconnect?

I can, however, _hear_ the changes being made as I move the sliders in Unity.  
I can see they are effecting the appropriate submaster channels, I can also see the blip, blip blip sound is coming through the sub channels…

But yeah, the inconsistencies of course still there

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [December 18, 2023, 3:54am UTC](https://qa.fmod.com/t/volume-slider-issue/20774/12 "2023-12-18T03:54:22Z")

</div>

> [@RobbieHart](#):
>
> are the sliders supposed to move in conjunction with me sliding the sliders in Unity whilst in Liveconnect?

No, you will not see the sliders changing in the Mixer.

I have noticed there are spatializers on the `ClickSlider` events, is there a specific reason for this?

I also noticed there are different effects on some of the busses e.g. `Submaster_Music` has its `Fader` set to `-5.50 dB` and a compressor. These may be factors influencing the audibility of the `ClickSlider` events.

Thanks for the extra info.
