benilla-re systems structs docs

SetSoundEmitterCallbacks

function · terrain · unreached

Address
0x6723c0 · 13 bytes, up to 0x6723cc
Signature
void __fastcall (void *create, void *destroy)
Meaning
Stores the two sound emitter callbacks 0xca82c4 and 0xca82c0
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.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.