Sound::ProcessFadeList
function · sound · primitive
- Address
0x7a4c20· 299 bytes, up to0x7a4d4a- Meaning
- Steps each fading sound's level and ends finished fades
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#the-fade-pump
- Test
sound::ramp_step
Finding: The fade pump in sound: the engine
Each frame, for a fading sound with a channel, level = ftol((now − start) · rate) is added to the
start level for a fade out, or taken as is for a fade in. A fade out at or below 0 ends: the sound
leaves the fade list, then is released (flag 0x20000), suspended (cut off), stopped with its record
kept (flag 0x4), or released. A fade in stops at its target. Otherwise the level is applied with
Sound::SetVolume. A fading sound without a channel is released if flagged 0x20000 and left alone
otherwise.
The derivation is in the doc.
Callers 1
- Sound::Update sound
Callees 9
- __ftol crt
- OsGetAsyncTimeMs core
- CDataAllocator::PutData base
- Sound::Destructor sound
- Sound::IsCutOff sound
- Sound::Suspend sound
- Sound::Stop3 sound
- Sound::SetVolume sound
- Sound::RemoveFromFadeList sound
Calls and jumps by a bare address, from tables/calls.tsv.