Sound::SetSoundVolume
function · sound · orchestration
- Address
0x7a6390· 112 bytes, up to0x7a63ff- Meaning
- Clamps and stores the Sound factor and reapplies the Sound category's channels
- 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 2
- SoundVolumeHandler sound
- StepSoundDuck sound
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.