StartWaterLoop
function · sound · primitive
- Address
0x462830· 300 bytes, up to0x46295b- Meaning
- Opens a water group's SoundWaterType sound as a 3D loop fading in over 5.0 s
- Confidence
- verified, proof one
- Finding
- sound/ambience#water-sounds
- Test
sound::source_pos_compose
Finding: Water sounds in sound: ambience and reverb
Each frame, while MapWaterSounds is on, the camera is not submerged and the player is in the world, the terrain reports the nearest liquid within 9.0 yards in twelve slots, one per liquid class (0 to 3) and speed (0 to 2). Class 1 is ignored indoors. The classes are served in order and at most two play; each plays the SoundWaterType sound of its lowest speed present as a 3D loop, fading in over 5.0 s to level 255 (volume 1.0, not the definition's), and fading out over 5.0 s when its class goes away, changes speed, or is past the first two.
The derivation is in the doc.
Callers 1
- UpdateWaterGroup sound
Callees 12
- ApplySoundDefVolumePitch sound
- ApplySoundDefDistances sound
- ApplySoundDefReverb sound
- PickSoundDefFile sound
- GetSoundDefinition sound
- PlaceWaterLoop sound
- Sound::Play3DLooped sound
- Sound::Stop sound
- Sound::FadeIn sound
- Sound::SetPaused sound
- Sound::SetPosition sound
- Sound::SetVolume2 sound
Calls and jumps by a bare address, from tables/calls.tsv.