Sound::FadeInVolume
function · sound · primitive
- Address
0x7a57b0· 37 bytes, up to0x7a57d4- Meaning
- Fades a sound in to a volume over a time
- Confidence
- verified, proof one
- Finding
- sound/engine#fades
- Test
sound::volume_to_byte
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
- RefreshZoneAmbience sound
Callees 2
- __ftol crt
- Sound::FadeIn sound
Calls and jumps by a bare address, from tables/calls.tsv.