- Home /
Linear volume control of AudioMixer groups
I am trying to use sliders for volume control through the AudioMixer. I have followed the Unity tutorials and am able to correctly control volume of Main, Music, and Effects mixer groups.
The issue is that volume changes exponentially as the slider adjusts linearly.
The sliders are used to adjust the volume between 0 and -80 decibels. As the slider increases the perceived volume changes on an exponential scale. The difference between -20 and -10 db is far more noticeable than the difference between -20 and -60 which basically translates to the player only using the upper quarter of the slider.
This is the solution suggested in the docs but it is not ideal or very professional. It seems like there should be one last step to make volume adjustment more linear. Can someone help?
I tried messing with the Normalize effect on mixer groups but it is not well documented. On a single mixer group I was able to create a more linear volume adjustment effect but using it on multiple subgroups gave me feedback issues and problems with dynamically shifting volume levels.
Unity tutorial on AudioMixer here: https://unity3d.com/de/learn/tutorials/modules/beginner/5-pre-order-beta/audiomixer-and-audiomixer-groups
-adapted from an unanswered post by @GameDev_Chuck