Correct the comment explaining the -35 dB scale

This commit is contained in:
刘皓 2024-09-02 22:12:16 -04:00
parent 9a3cfb7e96
commit 96c234fe4c
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -172,9 +172,10 @@ namespace Source
inline void setVolume(Source::ID id, float value)
{
/*
* RPG Maker uses a -35 decibel scale for volume. 100% volume is -0.35 dB, 99%
* volume is -0.7 dB, 98% volume is -1.05 dB and so on. 0% volume is an
* exception - the scale is hardcoded to be silent at 0% volume.
* RPG Maker uses a -35 decibel scale for volume. 100% volume is 0 dB, 99%
* volume is -0.35 dB, 98% volume is -0.7 dB, 97% volume is -1.05 dB and so
* on. 0% volume is an exception - the scale is hardcoded to be silent at 0%
* volume.
*
* This was deduced by running an RPG Maker XP game in Wine and attaching
* winedbg to the game, with a breakpoint set in the