mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +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
|
|
@ -32,6 +32,8 @@ public:
|
|||
|
||||
void update(float deltaTime);
|
||||
void playFootstep(FootstepSurface surface, bool sprinting);
|
||||
void setVolumeScale(float scale) { volumeScale = scale; }
|
||||
float getVolumeScale() const { return volumeScale; }
|
||||
|
||||
bool isInitialized() const { return assetManager != nullptr; }
|
||||
bool hasAnySamples() const { return sampleCount > 0; }
|
||||
|
|
@ -61,6 +63,7 @@ private:
|
|||
std::chrono::steady_clock::time_point lastPlayTime = std::chrono::steady_clock::time_point{};
|
||||
|
||||
std::mt19937 rng;
|
||||
float volumeScale = 1.0f;
|
||||
};
|
||||
|
||||
} // namespace audio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue