RandomDelayMs
function · sound · primitive
- Address
0x460100· 236 bytes, up to0x4601eb- Meaning
- Returns lo plus a fixed fraction of hi - lo from a generator seeded with 0, or hi when hi <= lo
- Confidence
- verified, proof one
- Finding
- sound/music#silence-between-tracks
Finding: Silence between tracks in sound: music
When a zone track ends the next starts at once with SoundZoneMusicNoDelay on, 6 s later when no row
is recorded (never, since the ended track's row still is), and otherwise after 0x460100(min, max) ms with the row's day or night silence
interval. 0x460100(lo, hi) returns hi when hi ≤ lo, else lo + MulHigh32(hi − lo, r) with
r the first value of a generator seeded with 0 on each call: always 0x16be8aa9, so the delay is
always lo + 0.0888·(hi − lo) and never random. After a server track that is 32665 ms.
The derivation is in the doc.
Callers 2
- ZoneMusicPump sound
- ScheduleNextZoneTrack sound
Callees 2
- NTempest::CRndSeed::SetSeed random
- MulHigh32 cmath
Calls and jumps by a bare address, from tables/calls.tsv.