# Scaling units for masterVolume?

**URL:** https://qa.fmod.com/t/scaling-units-for-mastervolume/19944
**Category:** Unity
**Created:** [March 7, 2023, 8:34pm UTC](https://qa.fmod.com/t/scaling-units-for-mastervolume/19944 "2023-03-07T20:34:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 7, 2023, 8:34pm UTC](https://qa.fmod.com/t/scaling-units-for-mastervolume/19944/1 "2023-03-07T20:34:16Z")

</div>

I’ve seen a number of script examples involving things like

> ```
> FMOD.Studio.Bus Master;
> float masterVolume = 1f;
> 
> ```

How does this map to units like decibels? Is 2f +6 dB since that’s twice as loud?

Like in FMOD Studio I’m very used to thinking in terms of each gain slider going from infinity (∞) to 0 dB and then +10 dB.

What are best practices for translating this?

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [March 8, 2023, 6:04am UTC](https://qa.fmod.com/t/scaling-units-for-mastervolume/19944/2 "2023-03-08T06:04:43Z")

</div>

FMOD converts from a linear value to decibels relative to full scale (dBFS) using the equation `dBFS = 20 * log10(linear)`, and also clips the signal at a low audibility level of -80dB. However, it’s also worth noting that [`Studio::Bus::setVolume`](https://www.fmod.com/docs/2.02/api/studio-api-bus.html#studio_bus_setvolume), alongside other similar functions, actually apply the volume argument as a factor to the existing volume set in Studio.

---

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 8, 2023, 2:27pm UTC](https://qa.fmod.com/t/scaling-units-for-mastervolume/19944/3 "2023-03-08T14:27:54Z")

</div>

@Leah_FMOD Appreciate the precise clarity, hope your answer will also help others looking. Thank you!
