More level, with peak protection
The planned gain calculation follows the requested decibel change rather than treating volume as an arbitrary percentage. A lookahead limiter is intended to protect peaks around a −1 dB ceiling instead of using hard sample clipping.