core1/code_5650.c progress

This commit is contained in:
Banjo Kazooie
2022-10-15 18:21:44 -05:00
parent 9602ab137d
commit 17c30f90ab
5 changed files with 26 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
# banjo (90.6988%)
# banjo (90.7255%)
<img src="./progress/progress_total.svg">

View File

@@ -140,9 +140,15 @@ typedef struct {
u8 chan;
} N_ALOscEvent;
typedef struct {
union {
s32 i;
f32 f;
}data[2];
} N_ALGenericEvent;
typedef struct {
s16 type;
u16 type;
union {
ALMIDIEvent midi;
ALTempoEvent tempo;
@@ -155,6 +161,7 @@ typedef struct {
ALSeqpSeqEvent spseq;
ALSeqpBankEvent spbank;
N_ALOscEvent osc;
N_ALGenericEvent generic;
} msg;
} N_ALEvent;

View File

@@ -9,7 +9,7 @@
</mask>
<g mask="url(#anybadge_1)">
<path fill="#555" d="M0 0h44v20H0z"/>
<path fill="#52e000" d="M44 0h67v20H44z"/>
<path fill="#51e000" d="M44 0h67v20H44z"/>
<path fill="url(#b)" d="M0 0h111v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
@@ -17,7 +17,7 @@
<text x="22.0" y="14">core1</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">81.8075%</text>
<text x="77.5" y="14">81.8075%</text>
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">81.9915%</text>
<text x="77.5" y="14">81.9915%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -17,7 +17,7 @@
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">90.6988%</text>
<text x="183.5" y="14">90.6988%</text>
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">90.7255%</text>
<text x="183.5" y="14">90.7255%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -2,6 +2,7 @@
#include "functions.h"
#include "variables.h"
#include "n_libaudio.h"
#include "n_synth.h"
void func_802444C0(N_AL_Struct81s *arg0);
void func_80244050(ALEventQueue *arg0, N_AL_Struct81s *arg1, u16 arg2);
@@ -195,36 +196,33 @@ void func_80244190(N_AL_Struct81s *arg0) {
}
#endif
#ifndef NONMATCHING
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_5650/func_8024431C.s")
#else
N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
s32 pad;
s32 sp24;
ALKeyMap *sp30;
N_AL_Struct81s *temp_s0;
OSIntMask mask;
s32 sp24;
temp_s0 = D_802758C0.unk8;
sp30 = sound->keyMap;
if (temp_s0 != NULL) {
mask = osSetIntMask(OS_IM_NONE);
D_802758C0.unk8 = (N_AL_Struct81s *) temp_s0->unk0.next;
D_802758C0.unk8 = (N_AL_Struct81s *) temp_s0->node.next;
alUnlink((ALLink *)temp_s0);
if (D_802758C0.unk0 != NULL) {
temp_s0->unk0.next = D_802758C0.unk0;
temp_s0->unk0.prev = NULL;
D_802758C0.unk0->unk0.prev = temp_s0;
temp_s0->node.next = D_802758C0.unk0;
temp_s0->node.prev = NULL;
D_802758C0.unk0->node.prev = temp_s0;
D_802758C0.unk0 = temp_s0;
} else {
temp_s0->unk0.prev = NULL;
temp_s0->unk0.next = NULL;
temp_s0->node.prev = NULL;
temp_s0->node.next = NULL;
D_802758C0.unk0 = temp_s0;
D_802758C0.unk4 = temp_s0;
}
osSetIntMask(mask);
sp24 = ((sound->envelope->decayTime + 1) == 0) + 0x40;
temp_s0->unk36 = sp24;
sp24 = ((sound->envelope->decayTime + 1) == 0);
// sp24 = sp20 + 0x40;
temp_s0->unk36 = sp24 + 0x40;
temp_s0->unk40 = 5;
temp_s0->unk38 = 2;
temp_s0->unk8 = sound;
@@ -239,7 +237,7 @@ N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
} else {
temp_s0->unk28 = alCents2Ratio(((sp30->keyBase * 0x64) + sp30->detune) - 0x1770);
}
if (sp24 != 0x40) {
if (sp24 != 0) {
temp_s0->unk3F |= 2;
}
temp_s0->unk3E = 0;
@@ -248,7 +246,6 @@ N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
}
return temp_s0;
}
#endif
void func_802444C0(N_AL_Struct81s *arg0){
N_AL_Struct81s *var_v0;