SoundDefinition::SoundDefinition
function · sound · primitive
- Address
0x45bd90· 89 bytes, up to0x45bde8- Meaning
- Builds a definition with volume 1.0, distances 27.777779 and 83.333336 and no reverb
- Confidence
- verified, proof one
- Finding
- sound/entries#sound-definitions
Finding: Sound definitions in sound: sound entries and plays
A definition is a 0x98-byte record from a block pool: ten file slots of 12 bytes (+0x00 name,
+0x04 remaining weight, +0x08 weight), the volume (+0x78), the flags (+0x7c), the minimum
distance (+0x80), the distance cutoff (+0x84), the remaining total (+0x88), the EAX definition
(+0x8c), the last file picked (+0x90) and the file count (+0x94). The loader makes one per
SoundEntries row from columns 24 to 28 and the file columns, and keeps it in an array indexed by
the row's id. A row with no files gets no definition, so its id plays nothing. 0x45cda0(id)
returns the definition or null for an id past the array.
The derivation is in the doc.
Callers 1
- LoadSoundEntries sound
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.