benilla-re systems structs docs

s_minusThousand

global · unassigned

Address
0x801448 · 4 bytes, up to 0x80144b
Type
const float
Meaning
Holds -1000.0, the fade-out rate's scale
Confidence
verified, proof one
Finding
sound/engine#fades

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.