benilla-re systems structs docs

s_playingAmbienceSound

global · sound

Address
0xb06d40 · 4 bytes, up to 0xb06d43
Type
uint32_t
Meaning
Holds the sound id of the playing ambience loop
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.