REDIVIVUS

Proposals / #1409

Recover the Mac eight-entry sound-effect sample pointer table

checked · by eejitgames · submitted 2026-11-07

Mac00552eb8 is one undefined4, but five complete native functions create, stop/free, select, query and fade eight sample-pointer slots with4B stride. Apply D2SoundSmpStrc*[8] (32B), as already used at paired Windows008817dc. Independent loop bounds establish the extent through00552ed8; the56B next-label gap is not used. All five references to interior label00552ebc come from the same pointer-walking reads: slot1, not a separate object. Maintainer review should remove that stray label if retained. The current validator rejects Windows's existing gpaSoundEffectBuffers name, so this op retains the Mac default label and requests paired-name alignment through review. The API exposes no label deletion/chosen-name exception. The separate Mac sample layout repair remains1402; table elements are4B pointers. No source/build/runtime gain is claimed.

Changes 1, applied together

  1. Retype global mac 0x00552eb8

    typeundefined4 (4 bytes)→D2SoundSmpStrc *[8]