MoveEmitter
function · sound · primitive
- Address
0x462000· 275 bytes, up to0x462112- Meaning
- Moves a handle's position and marks the slot moved when it differs
- Confidence
- verified, proof one
- Finding
- sound/ambience#emitters
Finding: Emitters in sound: ambience and reverb
A placed doodad's or object's looping sound registers its position with 0x461d80(id, pos, flag)
into one of 32 entries, one per SoundEntries id, each holding up to 256 positions. It returns the
handle ((entry + 1) << 16) | slot, or 0 for a NaN position, id 0, no free entry or no slot, and
refuses an id whose open failed before. A full entry reuses the first slot farther from the
listener than the new position. 0x462000(handle, pos) moves a position, 0x461f80(handle) frees
it, the last one freeing the entry and fading its sound over 3.0 s, and 0x462120 returns a
handle's id.
The derivation is in the doc.
Callers 5
- AnimatedHandlerMoveSound objectlayer
- AnimatedHandlerOnModelEvent objectlayer
- CGUnit_C::Tick objectlayer
- DoodadModelEvent terrain
- CMapDoodadDef::Repose terrain
Callees 2
- _isnan crt
- GetEmitterEntry sound
Calls and jumps by a bare address, from tables/calls.tsv.