REDIVIVUS

Proposals / #1400

Recover the Mac sound-quality getter's paired identity and DWORD cdecl API

checked · by eejitgames · submitted 2026-11-07

Mac002e76d5 still stores undefined(void)/unknown, although its complete20B leaf returns a full32-bit sound-quality code with no inputs. It zero-extends the byte at00552e1d, doubles it and returns EAX; observed initializer stores0/1 yield codes0/2. Its sole caller SOUNDSMP_SetVolume compares full EAX with2 to select attenuation, exactly matching Windows005157e8's call to SOUND_GetSoundQualityFlag00513b90. Complete paired caller bodies share the scaling, flag-bit4 guard, compare2 branch and native assert line0x2cb, with build-specific sample offsets. Recover that verified name and DWORD cdecl(void), using the existing Windows getter's API spelling. Windows retains its own mode implementation/ABI; no Mac mode1 is invented. No global, caller, sample layout or runtime-helper edit. This persists the stored API/name; current decompile already infers int and no compiler/runtime gain is claimed.

Changes 2, applied together

  1. Set prototype mac 0x002e76d5

    signatureundefined FUN_002e76d5(void)→DWORD FUN_002e76d5(void)
    conventionunknown→__cdecl
  2. Rename function mac 0x002e76d5

    nameFUN_002e76d5→SOUND_GetSoundQualityFlag