UpdateServerSoundRegistry
function · sound · primitive
- Address
0x457a50· 131 bytes, up to0x457ad2- Meaning
- Drops ended or cut-off server sounds from the registry and starts the duck's return ramp when empty
- Confidence
- verified, proof one
- Finding
- sound/objects#the-duck
Finding: The duck in sound: object and combat sounds
The first server sound to fill an empty registry records the current SoundVolume and starts a ramp.
Each frame the registry drops ended or cut-off sounds; while any remains the Sound factor ramps
linearly from the recorded volume V to V · 0.5 over 500 ms, and when the last one goes it ramps
back from V · 0.5 to the SoundVolume CVar over 3000 ms. Each ramp's end applies its target: V · 0.5 for the ramp down, the CVar for the return. Changes to SoundVolume are ignored while a slot is
held or a ramp runs, so only the return ramp picks them up.
The derivation is in the doc.
Callers 1
- StepSoundDuck sound
Callees 3
- Sound::Stop sound
- Sound::IsPlaying sound
- Sound::IsCutOff sound
Calls and jumps by a bare address, from tables/calls.tsv.