benilla-re systems structs docs

s_soundEmitterCreate

global · terrain

Address
0xca82c4 · 4 bytes, up to 0xca82c7
Type
void *
Meaning
Holds the sound emitter callback; 0 at start, set only by the unreached 0x6723c0
Confidence
verified, proof one
Finding
terrain/chunk#sound-emitters

Finding: Sound emitters in terrain: chunk

CMapChunk::LoadSoundEmitters (0x6af810) would make one 88-byte record per 52-byte MCSE entry and pass it to the callback 0xca82c4, but the callback is always null in this build, so the records are never made and MCSE is never read. The walk copies the entry's first eight dwords, widens its words +0x20, +0x22, +0x24, +0x28, +0x2a, +0x2c, +0x2e, +0x30 and +0x32 and bytes +0x26 and +0x27 to dwords, links the record into the chunk's list at +0x10c, and calls the callback with the record's +4.

The derivation is in the doc.