mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +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
|
|
@ -30,6 +30,8 @@ public:
|
|||
void playWaterEnter();
|
||||
void playWaterExit();
|
||||
void playMeleeSwing();
|
||||
void setVolumeScale(float scale) { volumeScale = scale; }
|
||||
float getVolumeScale() const { return volumeScale; }
|
||||
|
||||
private:
|
||||
struct Sample {
|
||||
|
|
@ -66,6 +68,7 @@ private:
|
|||
std::chrono::steady_clock::time_point lastMeleeSwingAt{};
|
||||
bool meleeSwingWarned = false;
|
||||
std::string voiceProfileKey;
|
||||
float volumeScale = 1.0f;
|
||||
|
||||
void preloadCandidates(std::vector<Sample>& out, const std::vector<std::string>& candidates);
|
||||
void preloadLandingSet(FootstepSurface surface, const std::string& material);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue