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

@ -65,8 +65,6 @@ ADTTerrain ADTLoader::load(const std::vector<uint8_t>& adtData) {
// Log first few chunks for debugging
char magic[5] = {0};
std::memcpy(magic, &header.magic, 4);
LOG_INFO("Chunk #", totalChunks, ": magic=", magic,
" (0x", std::hex, header.magic, std::dec, "), size=", chunkSize);
}
// Parse based on chunk type
@ -101,10 +99,6 @@ ADTTerrain ADTLoader::load(const std::vector<uint8_t>& adtData) {
}
terrain.loaded = true;
LOG_INFO("ADT loaded: ", chunkIndex, " map chunks, ",
terrain.textures.size(), " textures, ",
terrain.doodadNames.size(), " doodads, ",
terrain.wmoNames.size(), " WMOs");
return terrain;
}
@ -211,7 +205,6 @@ void ADTLoader::parseMWMO(const uint8_t* data, size_t size, ADTTerrain& terrain)
LOG_DEBUG("Loaded ", terrain.wmoNames.size(), " WMO names");
for (size_t i = 0; i < terrain.wmoNames.size(); i++) {
LOG_INFO(" WMO[", i, "]: ", terrain.wmoNames[i]);
}
}