mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Add audio volume controls to settings
This commit is contained in:
parent
12a7604450
commit
1530900bc7
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