Add audio volume controls to settings

This commit is contained in:
Kelsi 2026-02-05 17:32:21 -08:00
parent 12a7604450
commit 1530900bc7
9 changed files with 79 additions and 5 deletions

View file

@ -159,7 +159,7 @@ bool FootstepManager::playRandomStep(FootstepSurface surface, bool sprinting) {
std::uniform_real_distribution<float> pitchDist(0.97f, 1.05f);
std::uniform_real_distribution<float> volumeDist(0.92f, 1.00f);
float pitch = pitchDist(rng);
float volume = volumeDist(rng) * (sprinting ? 1.0f : 0.88f);
float volume = volumeDist(rng) * (sprinting ? 1.0f : 0.88f) * volumeScale;
if (volume > 1.0f) volume = 1.0f;
if (volume < 0.1f) volume = 0.1f;