# Bus volume linear vs logarithmic

**URL:** <https://qa.fmod.com/t/bus-volume-linear-vs-logarithmic/15535>\
**Category:** FMOD Engine\
**Created:** [March 10, 2020, 7:24pm UTC](https://qa.fmod.com/t/bus-volume-linear-vs-logarithmic/15535 "2020-03-10T19:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [March 10, 2020, 7:24pm UTC](https://qa.fmod.com/t/bus-volume-linear-vs-logarithmic/15535/1 "2020-03-10T19:24:54Z")

</div>

I’m setting my volume using FMOD\_Studio\_VCA\_SetVolume() and it seems to be logarithmic rather than linear (or maybe the other way around). I’m using this function when the player sets volume and while it’s probably technically correct, it’s not what user/players expect. Volume of 0.10 sounds like it’s only 1/2 of full volume where as it should be barely audible (from a players perspective).

Is there a formula I should send “player volume” through to get “FMOD volume” so if they have the game UI volume slider at 50%, it should sound 1/2 as loud?

---

<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:** [March 11, 2020, 6:11am UTC](https://qa.fmod.com/t/bus-volume-linear-vs-logarithmic/15535/2 "2020-03-11T06:11:03Z")

</div>

It appears that `VCA::setVolume()` is linear but can be set outside the range 0-1, which we’ll look into fixing it for a future release.

My testing has VCA’s set to `0.10` does make it sound quiet but depending on how loud your event is, you may need to set the VCA to `0.01` instead to get the result you’re looking for, maybe using a function to treat the slider like percentages?
