-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio PlaybackSettings volume setting doesn't correspond to human perception of volume well #8835
Comments
As far as I understand, this is intentional. The documentation of the original
Audio volume is logarithmic. This means that if the volume is set to 0.01 compared to the original 1.0, the sound will be exactly two times quieter than the default1, not 100x quieter. My opinion is that this isn't a problem. However this should probably be indicated in the documentation. OR, probably make a more intuitive setter method based on Footnotes
|
With an amplitude (volume) of 0.01 your power would be 0.01^2 = 0.0001. Perceived doubling of audio goes by every 10 dB, so if we go the other way, -10dB: |
And when I try this I'm definitely getting different results, 0.01 is barely audible (as expected), almost less than 1% on youtube. |
@Telov Do you have the same issue with this file? The download link for yours seems to have expired https://github.com/bevyengine/bevy/blob/main/assets/sounds/Windless%20Slopes.ogg |
# Objective - Fixes [#8835](#8835) ## Solution - Added a note to the `set_volume` docstring which explains how volume is interpreted. --------- Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: GitGhillie <[email protected]> Co-authored-by: François <[email protected]>
# Objective - Fixes [bevyengine#8835](bevyengine#8835) ## Solution - Added a note to the `set_volume` docstring which explains how volume is interpreted. --------- Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: GitGhillie <[email protected]> Co-authored-by: François <[email protected]>
Bevy version 0.10.1
If I set volume to 0.01 only then will it be subjectively about 3-5 times quieter than on default. 3-5 as in lowering volume on youtube to 33% or 20%
How to reproduce:
audiofile: https://fastupload.io/pKOtqjihV6SkJlH/file
The text was updated successfully, but these errors were encountered: