UserTrackSkip button detection and removal of duplicate definitions in eSoundID - #327
UserTrackSkip button detection and removal of duplicate definitions in eSoundID#327KharonGitHub wants to merge 4 commits into
Conversation
Added the User Track Skip button (F5, only in radio mode) press detection.
Added the User Track Skip button (F5, only in radio mode) press detection.
Parity with rest of the functions.
|
Can you create some example plugin showing usage of eSoundID? |
35347b8 to
108f8c3
Compare
|
|
||
| void CPad::ClearMouseHistory() { | ||
| plugin::Call<0x541BD0>(); | ||
| } No newline at end of file |
There was a problem hiding this comment.
What are these unrelated changes?
| VALIDATE_OFFSET(CPad, AverageEntries, 0x128); | ||
| VALIDATE_OFFSET(CPad, NoShakeBeforeThis, 0x12C); | ||
| VALIDATE_OFFSET(CPad, NoShakeFreq, 0x130); | ||
| VALIDATE_SIZE(CPad, 0x134); No newline at end of file |
|
Thanks for asking for clarification as that eSoundID would've been completely wrong! eSoundID - Testing Verison.txt In this version I've renamed every "repeating" definition to use prefix _2 as it would not compile with redefinitions. Overview: Key 3 uses "CommandCommands::LOAD_MISSION_AUDIO" Results: All _2 instances seem to be playing the right sound that corresponds to their names. From my understanding, what I've learned over at GTA SA Reversed repo, is that the ids are hardcoded into functions themselves, so a lot of ids can actually be unused, it's not just these 42 that i've found. One outlier was SOUND_SECURITY_ALARM, as it was defined as ID 41800 and 42801. |
|
You get there and start randomly renaming stuff. That is no improvement of any kind, and if so you would need to update breaking changes readme file. I still do not see example project showing usage of the enum. Unused probably does not mean there is nothing to play. |
|
Valid concern, once I have some time I'll update the breaking changes readme file and show you an example of my radio mod I've been working on which needed another native to SA audio classes which use eSoundID.h. I didn't try to just change it for the sake of it, at the moment whenever i would include this enum anywhere it would stop the SDK from compiling at all due to redefinition hence why i created that test to verify if these are actually getting played. |
CPad:
Added the User Track Skip button (F5, only in radio mode) press detection.
eSoundID:
Whenever there was an explicit value assigned, i kept that definition