Skip to content

Commit 3be04b8

Browse files
author
Niko
committed
XA Audio Progress
1 parent 7f0a459 commit 3be04b8

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

decompile/General/HOWL/h100_Audio_SetState.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,10 @@ void DECOMP_Audio_SetState(u_int state)
4747
}
4848
break;
4949
case 9:
50-
51-
// OG game would use desiredXA_RaceIntroIndex
52-
// to cycle through 4 different XAs (0,1,2,3),
53-
// but all the tracks are the same (unused beta)
54-
55-
XA_index = 0;
50+
XA_index = sdata->desiredXA_RaceIntroIndex;
51+
sdata->desiredXA_RaceIntroIndex += 1;
52+
sdata->desiredXA_RaceIntroIndex &= 3;
5653
goto PLAY_XA;
57-
//break;
5854

5955
case 10:
6056

decompile/General/HOWL/h99_Voiceline_SetDefaults.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
void DECOMP_Voiceline_SetDefaults(void)
44
{
55
sdata->unkAudioState = 0;
6-
7-
#if 0 // unused
86
sdata->desiredXA_RaceIntroIndex = 0;
9-
sdata->desiredXA_FinalLapIndex = 0;
10-
#endif
117

128
sdata->WrongWayDirection_bool = false;
139

include/regionsEXE.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,8 +3895,6 @@ struct sData
38953895
short unkAudioState;
38963896

38973897
// 8008d7f2
3898-
// unused, OG game would cycle through
3899-
// 4 RaceIntro XA files (0,1,2,3)
39003898
short desiredXA_RaceIntroIndex;
39013899

39023900
// 8008d7f4

0 commit comments

Comments
 (0)