RefillSoundDefWeights
function · sound · primitive
- Address
0x45bd40· 78 bytes, up to0x45bd8d- Meaning
- Restores every file weight of a definition except one
- Confidence
- verified, proof one
- Finding
- sound/entries#picking-a-file
Finding: Picking a file in sound: sound entries and plays
0x45bb70(def, sequential, out, index) returns a file name. An index other than −1 takes
min(index, count − 1). One file is always file 0. A sequential pick takes the file after the last.
Otherwise it draws from the client's shared generator and takes the first file whose running sum
of remaining weights exceeds MulHigh32(total, r); that file's remaining weight goes to 0, and when
the total reaches 0 every weight is restored except that file's. The pick is stored as the last.
The derivation is in the doc.
Callers 1
- PickSoundDefFile sound
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.