core1/code_5650.c progress
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# banjo (90.6988%)
|
# banjo (90.7255%)
|
||||||
|
|
||||||
<img src="./progress/progress_total.svg">
|
<img src="./progress/progress_total.svg">
|
||||||
|
|
||||||
|
@@ -140,9 +140,15 @@ typedef struct {
|
|||||||
u8 chan;
|
u8 chan;
|
||||||
} N_ALOscEvent;
|
} N_ALOscEvent;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
union {
|
||||||
|
s32 i;
|
||||||
|
f32 f;
|
||||||
|
}data[2];
|
||||||
|
} N_ALGenericEvent;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
s16 type;
|
u16 type;
|
||||||
union {
|
union {
|
||||||
ALMIDIEvent midi;
|
ALMIDIEvent midi;
|
||||||
ALTempoEvent tempo;
|
ALTempoEvent tempo;
|
||||||
@@ -155,6 +161,7 @@ typedef struct {
|
|||||||
ALSeqpSeqEvent spseq;
|
ALSeqpSeqEvent spseq;
|
||||||
ALSeqpBankEvent spbank;
|
ALSeqpBankEvent spbank;
|
||||||
N_ALOscEvent osc;
|
N_ALOscEvent osc;
|
||||||
|
N_ALGenericEvent generic;
|
||||||
} msg;
|
} msg;
|
||||||
} N_ALEvent;
|
} N_ALEvent;
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
</mask>
|
</mask>
|
||||||
<g mask="url(#anybadge_1)">
|
<g mask="url(#anybadge_1)">
|
||||||
<path fill="#555" d="M0 0h44v20H0z"/>
|
<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"/>
|
<path fill="url(#b)" d="M0 0h111v20H0z"/>
|
||||||
</g>
|
</g>
|
||||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
<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>
|
<text x="22.0" y="14">core1</text>
|
||||||
</g>
|
</g>
|
||||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
<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="78.5" y="15" fill="#010101" fill-opacity=".3">81.9915%</text>
|
||||||
<text x="77.5" y="14">81.8075%</text>
|
<text x="77.5" y="14">81.9915%</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -17,7 +17,7 @@
|
|||||||
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
|
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
|
||||||
</g>
|
</g>
|
||||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
<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="184.5" y="15" fill="#010101" fill-opacity=".3">90.7255%</text>
|
||||||
<text x="183.5" y="14">90.6988%</text>
|
<text x="183.5" y="14">90.7255%</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -2,6 +2,7 @@
|
|||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
#include "n_libaudio.h"
|
#include "n_libaudio.h"
|
||||||
|
#include "n_synth.h"
|
||||||
|
|
||||||
void func_802444C0(N_AL_Struct81s *arg0);
|
void func_802444C0(N_AL_Struct81s *arg0);
|
||||||
void func_80244050(ALEventQueue *arg0, N_AL_Struct81s *arg1, u16 arg2);
|
void func_80244050(ALEventQueue *arg0, N_AL_Struct81s *arg1, u16 arg2);
|
||||||
@@ -195,36 +196,33 @@ void func_80244190(N_AL_Struct81s *arg0) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NONMATCHING
|
|
||||||
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_5650/func_8024431C.s")
|
|
||||||
#else
|
|
||||||
N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
|
N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
|
||||||
s32 pad;
|
s32 sp24;
|
||||||
ALKeyMap *sp30;
|
ALKeyMap *sp30;
|
||||||
N_AL_Struct81s *temp_s0;
|
N_AL_Struct81s *temp_s0;
|
||||||
OSIntMask mask;
|
OSIntMask mask;
|
||||||
s32 sp24;
|
|
||||||
|
|
||||||
temp_s0 = D_802758C0.unk8;
|
temp_s0 = D_802758C0.unk8;
|
||||||
sp30 = sound->keyMap;
|
sp30 = sound->keyMap;
|
||||||
if (temp_s0 != NULL) {
|
if (temp_s0 != NULL) {
|
||||||
mask = osSetIntMask(OS_IM_NONE);
|
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);
|
alUnlink((ALLink *)temp_s0);
|
||||||
if (D_802758C0.unk0 != NULL) {
|
if (D_802758C0.unk0 != NULL) {
|
||||||
temp_s0->unk0.next = D_802758C0.unk0;
|
temp_s0->node.next = D_802758C0.unk0;
|
||||||
temp_s0->unk0.prev = NULL;
|
temp_s0->node.prev = NULL;
|
||||||
D_802758C0.unk0->unk0.prev = temp_s0;
|
D_802758C0.unk0->node.prev = temp_s0;
|
||||||
D_802758C0.unk0 = temp_s0;
|
D_802758C0.unk0 = temp_s0;
|
||||||
} else {
|
} else {
|
||||||
temp_s0->unk0.prev = NULL;
|
temp_s0->node.prev = NULL;
|
||||||
temp_s0->unk0.next = NULL;
|
temp_s0->node.next = NULL;
|
||||||
D_802758C0.unk0 = temp_s0;
|
D_802758C0.unk0 = temp_s0;
|
||||||
D_802758C0.unk4 = temp_s0;
|
D_802758C0.unk4 = temp_s0;
|
||||||
}
|
}
|
||||||
osSetIntMask(mask);
|
osSetIntMask(mask);
|
||||||
sp24 = ((sound->envelope->decayTime + 1) == 0) + 0x40;
|
sp24 = ((sound->envelope->decayTime + 1) == 0);
|
||||||
temp_s0->unk36 = sp24;
|
// sp24 = sp20 + 0x40;
|
||||||
|
temp_s0->unk36 = sp24 + 0x40;
|
||||||
temp_s0->unk40 = 5;
|
temp_s0->unk40 = 5;
|
||||||
temp_s0->unk38 = 2;
|
temp_s0->unk38 = 2;
|
||||||
temp_s0->unk8 = sound;
|
temp_s0->unk8 = sound;
|
||||||
@@ -239,7 +237,7 @@ N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
|
|||||||
} else {
|
} else {
|
||||||
temp_s0->unk28 = alCents2Ratio(((sp30->keyBase * 0x64) + sp30->detune) - 0x1770);
|
temp_s0->unk28 = alCents2Ratio(((sp30->keyBase * 0x64) + sp30->detune) - 0x1770);
|
||||||
}
|
}
|
||||||
if (sp24 != 0x40) {
|
if (sp24 != 0) {
|
||||||
temp_s0->unk3F |= 2;
|
temp_s0->unk3F |= 2;
|
||||||
}
|
}
|
||||||
temp_s0->unk3E = 0;
|
temp_s0->unk3E = 0;
|
||||||
@@ -248,7 +246,6 @@ N_AL_Struct81s *func_8024431C(ALBank *bank, ALSound *sound) {
|
|||||||
}
|
}
|
||||||
return temp_s0;
|
return temp_s0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void func_802444C0(N_AL_Struct81s *arg0){
|
void func_802444C0(N_AL_Struct81s *arg0){
|
||||||
N_AL_Struct81s *var_v0;
|
N_AL_Struct81s *var_v0;
|
||||||
|
Reference in New Issue
Block a user