1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-11 17:30:25 +00:00

[ntsc-1.2] Match audio (#2122)

* general.c mostly ok

* match remaining audio funcs

* comments

* Finish matching audio

---------

Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
This commit is contained in:
cadmic 2024-09-03 17:32:38 -07:00 committed by GitHub
parent 3e200769f1
commit e44c7c656c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 207 additions and 34 deletions

View file

@ -341,8 +341,11 @@ void Audio_ChooseActiveSfx(u8 bankId) {
"flag:%04X ptr:%08X pos:%f-%f-%f" VT_RST "\n",
entry->sfxId, entry->posX, entry->posZ, *entry->posX, *entry->posY, *entry->posZ);
}
entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76));
#if PLATFORM_GC
temp3 = entry->sfxId; // fake
entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76)) + temp3 - temp3;
entry->priority = entry->priority + temp3 - temp3;
#endif
if (*entry->posZ < 0.0f) {
entry->priority += (s32)(-*entry->posZ * 6.0f);
}