documentation. Include nonmatched functions in README

This commit is contained in:
Banjo Kazooie
2024-06-29 14:38:03 -05:00
parent a3648a5084
commit 955312954f
79 changed files with 784 additions and 612 deletions

View File

@@ -51,7 +51,7 @@ void __n_seqpReleaseVoice(ALSeqPlayer *seqp, ALVoice *voice, ALMicroTime deltaT
* 1 Fine Tuning
* 2 Coarse Tuning
*/
void func_8025D7C0(ALCSPlayer *seqp);
void __n_CSPPostNextSeqEvent(ALCSPlayer *seqp);
static ALMicroTime __n_CSPVoiceHandler(void *node);
static void __CSPHandleNextSeqEvent(ALCSPlayer *seqp);
@@ -232,7 +232,7 @@ static ALMicroTime __n_CSPVoiceHandler(void *node)
{
seqp->state = AL_PLAYING;
func_80250650();
func_8025D7C0(seqp); /* seqp must be AL_PLAYING before we call this routine. */
__n_CSPPostNextSeqEvent(seqp); /* seqp must be AL_PLAYING before we call this routine. */
}
break;
@@ -344,7 +344,7 @@ static ALMicroTime __n_CSPVoiceHandler(void *node)
is no target sequence.
sct 11/7/95
*/
void func_8025D7C0(ALCSPlayer *seqp)
void __n_CSPPostNextSeqEvent(ALCSPlayer *seqp)
{
ALEvent evt;
s32 deltaTicks;
@@ -383,12 +383,12 @@ __CSPHandleNextSeqEvent(ALCSPlayer *seqp)
{
case AL_SEQ_MIDI_EVT:
__n_CSPHandleMIDIMsg(seqp, &evt);
func_8025D7C0(seqp);
__n_CSPPostNextSeqEvent(seqp);
break;
case AL_TEMPO_EVT:
__CSPHandleMetaMsg(seqp, &evt);
func_8025D7C0(seqp);
__n_CSPPostNextSeqEvent(seqp);
break;
case AL_SEQ_END_EVT:
@@ -400,7 +400,7 @@ __CSPHandleNextSeqEvent(ALCSPlayer *seqp)
case AL_TRACK_END:
case AL_CSP_LOOPSTART:
case AL_CSP_LOOPEND:
func_8025D7C0(seqp);
__n_CSPPostNextSeqEvent(seqp);
break;
default:

View File

@@ -258,7 +258,7 @@ void musicInstruments_init(void){
func_8024FB8C();
}
ALBank *func_8024F758(void){
ALBank *music_get_sound_bank(void){
return D_80282108;
}

View File

@@ -329,10 +329,10 @@ void func_802432F8(N_ALSndPlayer *sndp, N_ALEvent *event) {
case 0x200:
if (temp_s0->unk3F & 0x10) {
sp68 = func_80244608(var_s5->msg.midi.duration, (s16)var_s5->msg.generic.data[1].i, temp_s0->unk30);
func_80244978(sp68, 8, temp_s0->unk34);
func_80244978(sp68, 4, temp_s0->unk3D);
func_80244978(sp68, AL_SEQP_PROG_EVT, temp_s0->unk34);
func_80244978(sp68, AL_SEQ_END_EVT, temp_s0->unk3D);
func_80244978(sp68, 0x100, temp_s0->unk3E);
func_80244978(sp68, 0x10, reinterpret_cast(s32, temp_s0->unk2C));
func_80244978(sp68, AL_SEQP_STOP_EVT, reinterpret_cast(s32, temp_s0->unk2C));
}
break;

View File

@@ -318,28 +318,38 @@ void func_80248098(f32 arg0) {
func_80248520();
}
//letter to font index???
s32 func_8024824C(s32 arg0) {
//lowercase_letter
if ((arg0 >= (s32) D_80275BE8[0]) && ((s32) D_80275BE8[1] >= arg0)) {
return (arg0 - D_80275BE8[0]) + 0xA;
}
//uppercase_letter
if ((arg0 >= (s32) D_80275BE8[2]) && ((s32) D_80275BE8[3] >= arg0)) {
return (arg0 - D_80275BE8[2]) + 0xA;
}
//number
if ((arg0 >= (s32) D_80275BE8[4]) && ((s32) D_80275BE8[5] >= arg0)) {
return (arg0 - D_80275BE8[4]);
}
//.
if (arg0 == D_80275BE8[6]) {
return 0x24;
}
//:
if (arg0 == D_80275BE8[7]) {
return 0x25;
}
//-
if (arg0 == D_80275BE8[8]) {
return 0x26;
}
//
if (arg0 == D_80275BE8[9]) {
return 0x27;
}