KRAmbientZone now using KRAudioSampleBinding

This commit is contained in:
2025-11-19 23:29:49 -08:00
parent 8c52ed697f
commit 635278022e
3 changed files with 23 additions and 13 deletions

View File

@@ -1424,7 +1424,7 @@ void KRAudioManager::startFrame(float deltaTime)
if (zi.weight > 0.0f) {
if (m_ambient_zone_weights.find(sphere->getZone()) == m_ambient_zone_weights.end()) {
zi.ambient_zone = sphere;
zi.ambient_sample = get(sphere->getAmbient());
zi.ambient_sample = sphere->getAmbient();
m_ambient_zone_weights[sphere->getZone()] = zi;
m_ambient_zone_total_weight += zi.weight;
} else {