RefreshZoneAmbience
function · sound · orchestration
- Address
0x460b00· 201 bytes, up to0x460bc8- Meaning
- Switches the ambience loop to the chosen sound, at once or with 5.0 s fades
- Confidence
- verified, proof one
- Finding
- sound/ambience#zone-ambience-changes
Finding: Zone ambience changes in sound: ambience and reverb
A refresh compares the chosen sound with the playing one and does nothing when they match. A different sound fades the old loop out over 5.0 s and starts the new one silent, fading to the definition's volume over 5.0 s. A submerged change swaps at once: the old loop is destroyed and the new one starts at full volume. The ghost, day-night and weather changes refresh with the fade. With EnableAmbience off nothing starts; turning it off destroys the loop and silences the water sounds, turning it on starts the chosen sound at once.
The derivation is in the doc.
Callers 6
- RefreshAmbienceNow sound
- RefreshAmbienceForGhost sound
- RefreshAmbienceForWorld sound
- RefreshAmbienceForWeather sound
- SetAreaAmbience sound
- SetAmbienceOff sound
Callees 8
- PlayAmbienceLoop sound
- GetSoundDefinition sound
- ChooseZoneAmbience sound
- Sound::Stop sound
- Sound::FadeInVolume sound
- Sound::Stop2 sound
- Sound::SetPaused sound
- Sound::SetVolume2 sound
Calls and jumps by a bare address, from tables/calls.tsv.