benilla-re systems structs docs

Sound::UpdateSoundVolumes

function · sound · primitive

Address
0x7a6660 · 61 bytes, up to 0x7a669c
Meaning
Reapplies the volume of every sound whose category bits match a key
Confidence
verified, proof one
Name from
the community database (idb)
Finding
sound/engine#category-volumes

Finding: Category volumes in sound: the engine

The Sound, Music and Ambience volume setters clamp to [0, 1] (NaN becomes 1), store the factor and reapply every channel whose flags & 0xa is 0, 2 or 8. The master volume clamps the same way and calls FSOUND_SetSFXMasterVolume once with the rounded level. Turning sound effects off pauses every looped or ambience non-music sound under reason 1 and destroys the other non-music sounds, keeping records with flag 0x4 but stopping their streams; turning them on clears reason 1.

The derivation is in the doc.

Callers 3

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.