mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Add audio volume controls to settings
This commit is contained in:
parent
f5185c08cf
commit
7060c80b81
9 changed files with 79 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue