Sound::FadeOut
function · sound · primitive
- Address
0x7a5a50· 104 bytes, up to0x7a5ab7- Meaning
- Fades a sound out over a time, or stops its stream at once below 0.1 s
- Confidence
- verified, proof one
- Finding
- sound/engine#fades
- Test
sound::channel_volume_rate_stream
Finding: Fades in sound: the engine
0x7a5730(seconds, level) fades a sound in from silence to level (0 to 255): with a stream and
seconds ≥ 0.1 it stores the target, a rate of level / (seconds · 1000) per ms and the start time,
and puts it on the fade list; below 0.1 it only reapplies the stored volume. 0x7a57b0(seconds, v)
passes ftol(v · 255). 0x7a5a50(seconds) fades out from the current level at
level / (seconds · −1000), or, below 0.1 s or without a channel, stops the stream at once.
Sound::Stop2(seconds) fades out and releases the record at silence, or releases it at once.
Sound::Stop destroys the record a slot points at and clears the slot.
The derivation is in the doc.
Callers 1
- Sound::Stop2 sound
Callees 4
- OsGetAsyncTimeMs core
- Sound::Stop3 sound
- Sound::GetVolumeLevel sound
- Sound::AddToFadeList sound
Calls and jumps by a bare address, from tables/calls.tsv.