Mac WALL2_UpdateScheduledSound: __cdecl void (int32_t nDelayFrames, int32_t nSoundId)
Mac body reads two stack arguments: [EBP+0xc] is tested for non-zero and stored as the scheduled sound id; [EBP+8] is added to the current frame counter to give the trigger frame, and a second deadline at +0x32 frames is stored; no ECX/EDX input, plain RET. Windows twin WALL2_UpdateScheduledSound 0x004dce10 is void (int32_t nParam1, int32_t nParam2); the generic names are replaced by their observed roles.
Changes 1, applied together
Set prototype
mac 0x00097777signatureundefined WALL2_UpdateScheduledSound(void)→void WALL2_UpdateScheduledSound(int32_t nDelayFrames, int32_t nSoundId)conventionunknown→__cdecl