Sound::SetMasterVolume
function · sound · host
- Address
0x7a6500· 105 bytes, up to0x7a6568- Meaning
- Clamps the master volume and passes its level to FSOUND_SetSFXMasterVolume
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#category-volumes
- Test
sound::sfx_master_volume
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
- SndInterfaceInitialize sound
- MasterVolumeHandler sound
Callees 1
- _FSOUND_SetSFXMasterVolume@4 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.