Skip to content

reimplement: SHC_3BB0A8C1_0x0047B590 100%#124

Draft
TheRedDaemon wants to merge 1 commit into
mainfrom
reimpl/SHC_3BB0A8C1_0x0047B590
Draft

reimplement: SHC_3BB0A8C1_0x0047B590 100%#124
TheRedDaemon wants to merge 1 commit into
mainfrom
reimpl/SHC_3BB0A8C1_0x0047B590

Conversation

@TheRedDaemon

Copy link
Copy Markdown
Contributor

Yep, once again full circle:
I suggest to remove the UnkSoundFlagsAndLoopCount as value type completely and instead try to use bit operations.
This function here basically consists out of nothing and assuming there are no weird optimizations related to knowing the called functions, only plain values produce the required order.
The only other way would be compiler differences, but these have lesser probability.

That being said, I would prefer if we could use some constants/macros for this with specific names. These here in the PR are only examples. I am open for better suggestions.

@TheRedDaemon TheRedDaemon requested a review from gynt June 20, 2026 21:29
@TheRedDaemon TheRedDaemon added the declaration/type change This requires changes to the generated/exported types or definitions. label Jun 20, 2026
Comment thread src/OpenSHC/Audio/mss/UnkSoundFlagsAndLoopCount.hpp

@gynt gynt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desired changes have been implemented upstream a1f7e6d
bitfield UnkSoundFlagsAndLoopCount has become typedef unsigned int SoundFlagsAndLoopCount

Comment thread src/OpenSHC/Audio/mss/UnkSoundFlagsAndLoopCount.hpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

declaration/type change This requires changes to the generated/exported types or definitions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants