Add ambient sound system and eliminate log spam

- Implement AmbientSoundManager with tavern/outdoor ambience
- Fix audio buffer limit (5s → 60s) for long ambient loops
- Set log level to INFO to eliminate DEBUG spam (130MB → 3.2MB logs)
- Remove excessive terrain/model/network logging
- Fix ambient sound timer sharing and pitch parameter bugs
This commit is contained in:
Kelsi 2026-02-09 14:50:14 -08:00
parent 4a7e599764
commit dab23f1895
24 changed files with 701 additions and 138 deletions

View file

@ -22,6 +22,7 @@ public:
void update(float deltaTime);
void setVolume(int volume);
int getVolume() const { return volumePercent; }
void setUnderwaterMode(bool underwater);
bool isPlaying() const { return playing; }
bool isInitialized() const { return assetManager != nullptr; }
@ -33,6 +34,7 @@ private:
bool currentTrackIsFile = false;
bool playing = false;
int volumePercent = 30;
bool underwaterMode = false;
// Crossfade state
bool crossfading = false;