REDIVIVUS

Proposals / #1339

Mac SOUND_Initialize: void __cdecl (uint32_t dwLanguageCode, BOOL bSoundInBackground)

checked · by KierTaylor · submitted 2026-11-06

The Mac body stores [EBP+8] and [EBP+0xc] into two consecutive sound-config globals, then runs the one-time init behind the initialized flag. The caller ApplicationMain 0x0019efc8 stores [ESP]=the config's first dword (the language) and [ESP+4]=MOVZX byte [config+0x224] (the sound-in-background flag), and does not read EAX afterwards. Matches the Windows twin 0x00514530 (void; dwLanguageCode, bSoundInBackground), passed on the stack on Mac.

Changes 1, applied together

  1. Set prototype mac 0x002e71c0

    signatureundefined SOUND_Initialize(void)→void SOUND_Initialize(uint32_t dwLanguageCode, BOOL bSoundInBackground)
    conventionunknown→__cdecl