-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Audio Support #778
base: develop
Are you sure you want to change the base?
Custom Audio Support #778
Conversation
…kinian into customAudio2
Is this in SoH too? |
Custom audio is in SoH. Streamed audio is not. I plan on back porting this when it is merged. |
clang one more forgot to revert Co-authored-by: mckinlee <[email protected]>
…kinian into customAudio2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial pass on some things from my end. Also don't forget to clang-format.
@@ -7,3 +7,6 @@ | |||
[submodule "ZAPDTR"] | |||
path = ZAPDTR | |||
url = https://github.com/louist103/ZAPDTR.git | |||
[submodule "mm/2s2h/Enhancements/Audio/dr_libs"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just fetch the drlibs via cmake with Fetch_Content, this way it's controlled like our other dependencies.
Here is LUS doing it https://github.com/Kenix3/libultraship/blob/main/cmake/dependencies/common.cmake
@@ -165,6 +165,7 @@ list(FILTER src__ EXCLUDE REGEX "src/libultra/libc/*") | |||
list(FILTER src__ EXCLUDE REGEX "src/libultra/os/*") | |||
list(FILTER src__ EXCLUDE REGEX "src/libultra/rmon/*") | |||
list(FILTER src__ EXCLUDE REGEX "src/libultra/*") | |||
list(FILTER ship__ EXCLUDE REGEX "2s2h/Enhancements/Audio/dr_libs/*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this once drlib is moved to cmake fetch.
// 2S2H [Custom Audio] was originally `seqId + 7F00` This value did not work with the bit packing done | ||
// for 16 bit seqIds. | ||
temp_a0 = ((((AudioThread_NextRandom() % 30) & 0xFF) + 1) << 0x10) | (seqId + 0x7800); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify what wasn't working with the original math here? What is the impact of this change?
Based on your comments, although we now made the seqId a u16, it seems like we can't use the full range of the data type for new songs. Should be capture somewhere or have a check to limit the amount of sequences that can be added? |
Adds custom audio support.
Needs:
Build Artifacts