You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "PlaySound" method is at S4_Main + 0x10C390
Arguments seem to be:
arg1(ecx) - SoundSystem*
arg2(esi) - Debug related string - seems to be always nullptr
arg3 - Sound Id
arg4 - possibly volume
arg5 - sound effect panning maybe (A high value played a sound on the right channel) - seems to point at the first variable in the SoundSystem struct
arg6 - Again a pointer to the SoundSystem*
arg7 - Unknown, seems to always be 0
The global SoundSystem* is at S4_Main + 0x10540C4
Other findings regarding sound and music:
MusicVolume = (DWORD*)(S4_Main + 0xDB596C);
MusicToggle = (DWORD*)(S4_Main + 0xDB5978);
SoundVolume = (DWORD*)(S4_Main + 0xDB5984);
SoundToggle = (DWORD*)(S4_Main + 0xDB5990);
SetMusicVolume Method at S4_Main + 0x10C4A0
SetSoundVolume Method at S4_Main + 0x10C500
Both need a reference to the SoundSystem* at 0x10540C4 on ecx.
The text was updated successfully, but these errors were encountered:
//UI:
BUTTON_CLICK = 7;
BUTTON_RELEASE_NOT_ACTIVATE = 6; //Happens when you move away from a button without activating it
//Ingame:
HAMMER_HIT = 5;
Variations of Sound Effects are baked into an ID, with 5 being a good example. Playing the same ID multiple times gives different sound samples of the same type
Okay, just found out about every ID. Clear names are at S4_Main + 0xC15374
I already RE a bit of the sound system
The "PlaySound" method is at
S4_Main + 0x10C390
Arguments seem to be:
The global SoundSystem* is at
S4_Main + 0x10540C4
Other findings regarding sound and music:
The text was updated successfully, but these errors were encountered: