Decompile _n_handleEvent
This commit is contained in:
parent
5aa831107c
commit
624c084c65
|
@ -402,9 +402,12 @@ Acmd *alAudioFrame(Acmd *cmdList, s32 *cmdLen, s16 *outBuf, s32 outLen);
|
|||
/*
|
||||
* Play states
|
||||
*/
|
||||
#define AL_STOPPED 0
|
||||
#define AL_PLAYING 1
|
||||
#define AL_STOPPING 2
|
||||
#define AL_STOPPED 0
|
||||
#define AL_PLAYING 1
|
||||
#define AL_STOPPING 2
|
||||
#define AL_STATE3 3
|
||||
#define AL_STATE4 4
|
||||
#define AL_STATE5 5
|
||||
|
||||
#define AL_DEFAULT_PRIORITY 5
|
||||
#define AL_DEFAULT_VOICE 0
|
||||
|
@ -439,12 +442,7 @@ enum ALMsg {
|
|||
/*0x16*/ AL_TREM_OSC_EVT,
|
||||
/*0x17*/ AL_VIB_OSC_EVT,
|
||||
/*0x18*/ AL_18_EVT,
|
||||
/*0x19*/ AL_19_EVT,
|
||||
/*0x20*/ AL_20_EVT = 0x20, // AL_SNDP_API_EVENT? But is already used and is internal
|
||||
/*0x80*/ AL_80_EVT = 0x80,
|
||||
/*0x200*/ AL_200_EVT = 0x200,
|
||||
/*0x400*/ AL_400_EVT = 0x400,
|
||||
/*0x800*/ AL_800_EVT = 0x800
|
||||
/*0x19*/ AL_19_EVT
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -19,7 +19,7 @@ void bcutsceneInit(void)
|
|||
for (j = 0; j < 1; j++) {
|
||||
struct hand *hand = &g_Vars.players[i]->hands[j];
|
||||
|
||||
if (hand->audiohandle && audioIsPlaying(hand->audiohandle)) {
|
||||
if (hand->audiohandle && sndGetState(hand->audiohandle) != AL_STOPPED) {
|
||||
audioStop(hand->audiohandle);
|
||||
hand->audiohandle = NULL;
|
||||
}
|
||||
|
|
|
@ -6041,7 +6041,7 @@ glabel var7f1ac320
|
|||
/* f09a9e8: 8e0401cc */ lw $a0,0x1cc($s0)
|
||||
/* f09a9ec: 50800008 */ beqzl $a0,.L0f09aa10
|
||||
/* f09a9f0: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
/* f09a9f4: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f09a9f4: 0c00cdfc */ jal sndGetState
|
||||
/* f09a9f8: 00000000 */ nop
|
||||
/* f09a9fc: 50400004 */ beqzl $v0,.L0f09aa10
|
||||
/* f09aa00: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
|
@ -6051,7 +6051,7 @@ glabel var7f1ac320
|
|||
.L0f09aa10:
|
||||
/* f09aa10: 10800007 */ beqz $a0,.L0f09aa30
|
||||
/* f09aa14: 00000000 */ nop
|
||||
/* f09aa18: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f09aa18: 0c00cdfc */ jal sndGetState
|
||||
/* f09aa1c: 00000000 */ nop
|
||||
/* f09aa20: 10400003 */ beqz $v0,.L0f09aa30
|
||||
/* f09aa24: 00000000 */ nop
|
||||
|
@ -6371,7 +6371,7 @@ glabel var7f1ac320
|
|||
/* f09a9e8: 8e0401cc */ lw $a0,0x1cc($s0)
|
||||
/* f09a9ec: 50800008 */ beqzl $a0,.L0f09aa10
|
||||
/* f09a9f0: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
/* f09a9f4: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f09a9f4: 0c00cdfc */ jal sndGetState
|
||||
/* f09a9f8: 00000000 */ nop
|
||||
/* f09a9fc: 50400004 */ beqzl $v0,.L0f09aa10
|
||||
/* f09aa00: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
|
@ -6381,7 +6381,7 @@ glabel var7f1ac320
|
|||
.L0f09aa10:
|
||||
/* f09aa10: 10800007 */ beqz $a0,.L0f09aa30
|
||||
/* f09aa14: 00000000 */ nop
|
||||
/* f09aa18: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f09aa18: 0c00cdfc */ jal sndGetState
|
||||
/* f09aa1c: 00000000 */ nop
|
||||
/* f09aa20: 10400003 */ beqz $v0,.L0f09aa30
|
||||
/* f09aa24: 00000000 */ nop
|
||||
|
@ -6692,7 +6692,7 @@ glabel var7f1ac320
|
|||
/* f098a00: 8e0401cc */ lw $a0,0x1cc($s0)
|
||||
/* f098a04: 50800008 */ beqzl $a0,.NB0f098a28
|
||||
/* f098a08: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
/* f098a0c: 0c00d360 */ jal audioIsPlaying
|
||||
/* f098a0c: 0c00d360 */ jal sndGetState
|
||||
/* f098a10: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f098a14: 50400004 */ beqzl $v0,.NB0f098a28
|
||||
/* f098a18: 8e0401d0 */ lw $a0,0x1d0($s0)
|
||||
|
@ -6702,7 +6702,7 @@ glabel var7f1ac320
|
|||
.NB0f098a28:
|
||||
/* f098a28: 10800007 */ beqz $a0,.NB0f098a48
|
||||
/* f098a2c: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f098a30: 0c00d360 */ jal audioIsPlaying
|
||||
/* f098a30: 0c00d360 */ jal sndGetState
|
||||
/* f098a34: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f098a38: 10400003 */ beqz $v0,.NB0f098a48
|
||||
/* f098a3c: 00000000 */ sll $zero,$zero,0x0
|
||||
|
@ -6915,11 +6915,11 @@ const char var7f1ab898[] = "rofftime";
|
|||
// osSetThreadPri(0, osGetThreadPri(&g_AudioManager.thread) + 1);
|
||||
//#endif
|
||||
//
|
||||
// if (hand->audiohandle2 && audioIsPlaying(hand->audiohandle2)) {
|
||||
// if (hand->audiohandle2 && sndGetState(hand->audiohandle2) != AL_STOPPED) {
|
||||
// audioStop(hand->audiohandle2);
|
||||
// }
|
||||
//
|
||||
// if (hand->audiohandle3 && audioIsPlaying(hand->audiohandle3)) {
|
||||
// if (hand->audiohandle3 && sndGetState(hand->audiohandle3) != AL_STOPPED) {
|
||||
// audioStop(hand->audiohandle3);
|
||||
// }
|
||||
//
|
||||
|
@ -15385,7 +15385,7 @@ void bgun0f0a1528(void)
|
|||
|
||||
animInit(&player->hands[i].anim);
|
||||
|
||||
if (player->hands[i].audiohandle && audioIsPlaying(player->hands[i].audiohandle)) {
|
||||
if (player->hands[i].audiohandle && sndGetState(player->hands[i].audiohandle) != AL_STOPPED) {
|
||||
audioStop(player->hands[i].audiohandle);
|
||||
}
|
||||
}
|
||||
|
@ -19423,7 +19423,7 @@ void bgun0f0a4334(struct hand *hand)
|
|||
#else
|
||||
hand->matmot1 -= g_Vars.lvupdate240f / 10.0f;
|
||||
#endif
|
||||
} else if (hand->audiohandle != NULL && audioIsPlaying(hand->audiohandle)) {
|
||||
} else if (hand->audiohandle != NULL && sndGetState(hand->audiohandle) != AL_STOPPED) {
|
||||
audioStop(hand->audiohandle);
|
||||
}
|
||||
}
|
||||
|
@ -24598,11 +24598,11 @@ s8 bgunFreeFireslotWrapper(s32 slotnum)
|
|||
{
|
||||
#if VERSION < VERSION_NTSC_1_0
|
||||
if (slotnum >= 0) {
|
||||
if (g_Fireslots[slotnum].unk04nb && audioIsPlaying(g_Fireslots[slotnum].unk04nb)) {
|
||||
if (g_Fireslots[slotnum].unk04nb && sndGetState(g_Fireslots[slotnum].unk04nb) != AL_STOPPED) {
|
||||
audioStop(g_Fireslots[slotnum].unk04nb);
|
||||
}
|
||||
|
||||
if (g_Fireslots[slotnum].unk08nb && audioIsPlaying(g_Fireslots[slotnum].unk08nb)) {
|
||||
if (g_Fireslots[slotnum].unk08nb && sndGetState(g_Fireslots[slotnum].unk08nb) != AL_STOPPED) {
|
||||
audioStop(g_Fireslots[slotnum].unk08nb);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6474,7 +6474,7 @@ glabel func0f005bb0
|
|||
.L0f005f28:
|
||||
/* f005f28: 50800025 */ beqzl $a0,.L0f005fc0
|
||||
/* f005f2c: 8fbf0024 */ lw $ra,0x24($sp)
|
||||
/* f005f30: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f005f30: 0c00cdfc */ jal sndGetState
|
||||
/* f005f34: 00000000 */ nop
|
||||
/* f005f38: 10400020 */ beqz $v0,.L0f005fbc
|
||||
/* f005f3c: 3c19800a */ lui $t9,%hi(g_Vars+0x284)
|
||||
|
@ -6490,7 +6490,7 @@ glabel func0f005bb0
|
|||
/* f005f60: 8de41c20 */ lw $a0,0x1c20($t7)
|
||||
/* f005f64: 10800008 */ beqz $a0,.L0f005f88
|
||||
/* f005f68: 00000000 */ nop
|
||||
/* f005f6c: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f005f6c: 0c00cdfc */ jal sndGetState
|
||||
/* f005f70: 00000000 */ nop
|
||||
/* f005f74: 10400004 */ beqz $v0,.L0f005f88
|
||||
/* f005f78: 3c18800a */ lui $t8,%hi(g_Vars+0x284)
|
||||
|
@ -6504,7 +6504,7 @@ glabel func0f005bb0
|
|||
/* f005f94: 8d441c24 */ lw $a0,0x1c24($t2)
|
||||
/* f005f98: 50800009 */ beqzl $a0,.L0f005fc0
|
||||
/* f005f9c: 8fbf0024 */ lw $ra,0x24($sp)
|
||||
/* f005fa0: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f005fa0: 0c00cdfc */ jal sndGetState
|
||||
/* f005fa4: 00000000 */ nop
|
||||
/* f005fa8: 10400004 */ beqz $v0,.L0f005fbc
|
||||
/* f005fac: 3c0c800a */ lui $t4,%hi(g_Vars+0x284)
|
||||
|
|
|
@ -15,7 +15,7 @@ void func0f0150a0(void)
|
|||
snd0000fbc4(g_AudioChannels[i].soundnum26);
|
||||
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_0010;
|
||||
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_0002;
|
||||
} else if (g_AudioChannels[i].audiohandle && audioIsPlaying(g_AudioChannels[i].audiohandle)) {
|
||||
} else if (g_AudioChannels[i].audiohandle && sndGetState(g_AudioChannels[i].audiohandle) != AL_STOPPED) {
|
||||
audioStop(g_AudioChannels[i].audiohandle);
|
||||
g_AudioChannels[i].flags &= ~AUDIOCHANNELFLAG_0002;
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ void func0f015470(void)
|
|||
for (j = 0; j < 2; j++) {
|
||||
struct hand *hand = &g_Vars.players[i]->hands[j];
|
||||
|
||||
if (hand->audiohandle2 && audioIsPlaying(hand->audiohandle2)) {
|
||||
if (hand->audiohandle2 && sndGetState(hand->audiohandle2) != AL_STOPPED) {
|
||||
audioStop(hand->audiohandle2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -379,7 +379,7 @@ void func0f092a98(s32 channelnum)
|
|||
|
||||
if ((channel->flags & AUDIOCHANNELFLAG_0010)) {
|
||||
snd0000fbc4(channel->soundnum26);
|
||||
} else if (channel->audiohandle && audioIsPlaying(channel->audiohandle)) {
|
||||
} else if (channel->audiohandle && sndGetState(channel->audiohandle) != AL_STOPPED) {
|
||||
audioStop(channel->audiohandle);
|
||||
}
|
||||
|
||||
|
@ -452,7 +452,7 @@ glabel var7f1ab740
|
|||
/* f092b50: 8e040000 */ lw $a0,0x0($s0)
|
||||
/* f092b54: 50800006 */ beqzl $a0,.PF0f092b70
|
||||
/* f092b58: 96030030 */ lhu $v1,0x30($s0)
|
||||
/* f092b5c: 0c00cc3c */ jal audioIsPlaying
|
||||
/* f092b5c: 0c00cc3c */ jal sndGetState
|
||||
/* f092b60: 00000000 */ nop
|
||||
/* f092b64: 54400010 */ bnezl $v0,.PF0f092ba8
|
||||
/* f092b68: 8e020050 */ lw $v0,0x50($s0)
|
||||
|
@ -909,7 +909,7 @@ glabel var7f1ab740
|
|||
/* f0931ac: 5080000e */ beqzl $a0,.PF0f0931e8
|
||||
/* f0931b0: 960a0030 */ lhu $t2,0x30($s0)
|
||||
/* f0931b4: afa80040 */ sw $t0,0x40($sp)
|
||||
/* f0931b8: 0c00cc3c */ jal audioIsPlaying
|
||||
/* f0931b8: 0c00cc3c */ jal sndGetState
|
||||
/* f0931bc: e7b2003c */ swc1 $f18,0x3c($sp)
|
||||
/* f0931c0: 8fa80040 */ lw $t0,0x40($sp)
|
||||
/* f0931c4: 10400007 */ beqz $v0,.PF0f0931e4
|
||||
|
@ -1103,7 +1103,7 @@ glabel var7f1ab740
|
|||
/* f092c50: 8e040000 */ lw $a0,0x0($s0)
|
||||
/* f092c54: 50800006 */ beqzl $a0,.L0f092c70
|
||||
/* f092c58: 96030030 */ lhu $v1,0x30($s0)
|
||||
/* f092c5c: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f092c5c: 0c00cdfc */ jal sndGetState
|
||||
/* f092c60: 00000000 */ nop
|
||||
/* f092c64: 54400010 */ bnezl $v0,.L0f092ca8
|
||||
/* f092c68: 8e020050 */ lw $v0,0x50($s0)
|
||||
|
@ -1563,7 +1563,7 @@ glabel var7f1ab740
|
|||
/* f0932bc: 5080000e */ beqzl $a0,.L0f0932f8
|
||||
/* f0932c0: 960b0030 */ lhu $t3,0x30($s0)
|
||||
/* f0932c4: afa80040 */ sw $t0,0x40($sp)
|
||||
/* f0932c8: 0c00cdfc */ jal audioIsPlaying
|
||||
/* f0932c8: 0c00cdfc */ jal sndGetState
|
||||
/* f0932cc: e7b2003c */ swc1 $f18,0x3c($sp)
|
||||
/* f0932d0: 8fa80040 */ lw $t0,0x40($sp)
|
||||
/* f0932d4: 10400007 */ beqz $v0,.L0f0932f4
|
||||
|
@ -1750,7 +1750,7 @@ glabel var7f1ab740
|
|||
/* f091284: 8e050000 */ lw $a1,0x0($s0)
|
||||
/* f091288: 50a00006 */ beqzl $a1,.NB0f0912a4
|
||||
/* f09128c: 96030030 */ lhu $v1,0x30($s0)
|
||||
/* f091290: 0c00d360 */ jal audioIsPlaying
|
||||
/* f091290: 0c00d360 */ jal sndGetState
|
||||
/* f091294: 00a02025 */ or $a0,$a1,$zero
|
||||
/* f091298: 5440000e */ bnezl $v0,.NB0f0912d4
|
||||
/* f09129c: 8e020050 */ lw $v0,0x50($s0)
|
||||
|
@ -2172,7 +2172,7 @@ glabel var7f1ab740
|
|||
/* f091864: 10a0000e */ beqz $a1,.NB0f0918a0
|
||||
/* f091868: 00a02025 */ or $a0,$a1,$zero
|
||||
/* f09186c: afa80040 */ sw $t0,0x40($sp)
|
||||
/* f091870: 0c00d360 */ jal audioIsPlaying
|
||||
/* f091870: 0c00d360 */ jal sndGetState
|
||||
/* f091874: e7b2003c */ swc1 $f18,0x3c($sp)
|
||||
/* f091878: 8fa80040 */ lw $t0,0x40($sp)
|
||||
/* f09187c: 10400008 */ beqz $v0,.NB0f0918a0
|
||||
|
|
|
@ -4185,7 +4185,7 @@ void func0f0bace0(void)
|
|||
for (i = 0; i < 2; i++) {
|
||||
hand = &g_Vars.currentplayer->hands[i];
|
||||
|
||||
if (hand->audiohandle2 && audioIsPlaying(hand->audiohandle2)) {
|
||||
if (hand->audiohandle2 && sndGetState(hand->audiohandle2) != AL_STOPPED) {
|
||||
audioStop(hand->audiohandle2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6846,7 +6846,7 @@ glabel hudmsgsReset
|
|||
/* f0ddb7c: 8c8436b0 */ lw $a0,0x36b0($a0)
|
||||
/* f0ddb80: 50800008 */ beqzl $a0,.NB0f0ddba4
|
||||
/* f0ddb84: 8fbf0014 */ lw $ra,0x14($sp)
|
||||
/* f0ddb88: 0c00d360 */ jal audioIsPlaying
|
||||
/* f0ddb88: 0c00d360 */ jal sndGetState
|
||||
/* f0ddb8c: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f0ddb90: 10400003 */ beqz $v0,.NB0f0ddba0
|
||||
/* f0ddb94: 3c048007 */ lui $a0,0x8007
|
||||
|
|
|
@ -302,7 +302,7 @@ void lvUpdateMiscSfx(void)
|
|||
lvSetMiscSfxState(MISCSFX_SLAYERROCKETBEEP, usingrocket);
|
||||
}
|
||||
|
||||
if (g_Vars.lvupdate240 == 0 && g_MiscAudioHandle && audioIsPlaying(g_MiscAudioHandle)) {
|
||||
if (g_Vars.lvupdate240 == 0 && g_MiscAudioHandle && sndGetState(g_MiscAudioHandle) != AL_STOPPED) {
|
||||
audioStop(g_MiscAudioHandle);
|
||||
}
|
||||
}
|
||||
|
@ -9615,7 +9615,7 @@ void lvReset(void)
|
|||
{
|
||||
pakStopRumbleForAllPaks(true);
|
||||
|
||||
if (g_MiscAudioHandle && audioIsPlaying(g_MiscAudioHandle)) {
|
||||
if (g_MiscAudioHandle && sndGetState(g_MiscAudioHandle)) {
|
||||
audioStop(g_MiscAudioHandle);
|
||||
}
|
||||
|
||||
|
|
|
@ -3768,12 +3768,12 @@ void nbombsTick(void)
|
|||
audioPostEvent(g_NbombAudioHandle, 16, *(s32 *)&speed);
|
||||
}
|
||||
} else {
|
||||
if (g_NbombAudioHandle && audioIsPlaying(g_NbombAudioHandle)) {
|
||||
if (g_NbombAudioHandle && sndGetState(g_NbombAudioHandle) != AL_STOPPED) {
|
||||
audioStop(g_NbombAudioHandle);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (g_NbombAudioHandle && audioIsPlaying(g_NbombAudioHandle)) {
|
||||
if (g_NbombAudioHandle && sndGetState(g_NbombAudioHandle) != AL_STOPPED) {
|
||||
audioStop(g_NbombAudioHandle);
|
||||
}
|
||||
}
|
||||
|
@ -3781,14 +3781,14 @@ void nbombsTick(void)
|
|||
if (g_Vars.lvupdate240 == 0) {
|
||||
for (i = 0; i < 6; i++) {
|
||||
if (g_Nbombs[i].age240 >= 0) {
|
||||
if (g_Nbombs[i].audiohandle20 && audioIsPlaying(g_Nbombs[i].audiohandle20)) {
|
||||
if (g_Nbombs[i].audiohandle20 && sndGetState(g_Nbombs[i].audiohandle20) != AL_STOPPED) {
|
||||
audioStop(g_Nbombs[i].audiohandle20);
|
||||
#if VERSION < VERSION_NTSC_1_0
|
||||
g_Nbombs[i].audiohandle20 = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (g_Nbombs[i].audiohandle24 && audioIsPlaying(g_Nbombs[i].audiohandle24)) {
|
||||
if (g_Nbombs[i].audiohandle24 && sndGetState(g_Nbombs[i].audiohandle24) != AL_STOPPED) {
|
||||
audioStop(g_Nbombs[i].audiohandle24);
|
||||
#if VERSION < VERSION_NTSC_1_0
|
||||
g_Nbombs[i].audiohandle24 = NULL;
|
||||
|
|
|
@ -73057,7 +73057,7 @@ void alarmActivate(void)
|
|||
|
||||
void alarmStopAudio(void)
|
||||
{
|
||||
if (g_AlarmAudioHandle && audioIsPlaying(g_AlarmAudioHandle)) {
|
||||
if (g_AlarmAudioHandle && sndGetState(g_AlarmAudioHandle) != AL_STOPPED) {
|
||||
audioStop(g_AlarmAudioHandle);
|
||||
}
|
||||
}
|
||||
|
@ -73096,7 +73096,7 @@ void gasReleaseFromPos(struct coord *pos)
|
|||
|
||||
void gasStopAudio(void)
|
||||
{
|
||||
if (g_GasAudioHandle && audioIsPlaying(g_GasAudioHandle)) {
|
||||
if (g_GasAudioHandle && sndGetState(g_GasAudioHandle)) {
|
||||
audioStop(g_GasAudioHandle);
|
||||
}
|
||||
}
|
||||
|
@ -73150,7 +73150,7 @@ void gasTick(void)
|
|||
if (g_GasAudioHandle) {
|
||||
func0f09505c(g_GasAudioHandle, &g_GasPos, 400, 2500, 3000, g_Vars.currentplayer->prop->rooms, soundnum, 0x7fff, 0);
|
||||
}
|
||||
} else if (g_GasAudioHandle && audioIsPlaying(g_GasAudioHandle)) {
|
||||
} else if (g_GasAudioHandle && sndGetState(g_GasAudioHandle)) {
|
||||
audioStop(g_GasAudioHandle);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -330,7 +330,7 @@ void weatherTickRain(struct weatherdata *weather)
|
|||
}
|
||||
|
||||
if (weather->audiohandles[i] != 0) {
|
||||
if (audioIsPlaying(weather->audiohandles[i])) {
|
||||
if (sndGetState(weather->audiohandles[i]) != AL_STOPPED) {
|
||||
sndAdjust(&weather->audiohandles[i], 0, iVar10 * 3 / 4, -1,
|
||||
weather->unkf8, 1, 1, -1, 1);
|
||||
}
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
#include "types.h"
|
||||
|
||||
void func00033090(struct sndstate *handle);
|
||||
u32 func00033100(void);
|
||||
void func00033100(struct sndstate *state);
|
||||
u16 sndpCountStates(s16 *numfreeptr, s16 *numallocedptr);
|
||||
void func00033378(void *fn);
|
||||
struct sndstate *func00033390(s32 arg0, struct sndstate_08 *arg1);
|
||||
struct sndstate *func00033390(s32 arg0, ALSound *sound);
|
||||
void func00033634(void *fn);
|
||||
bool audioIsPlaying(struct sndstate *handle);
|
||||
struct sndstate *func00033820(s32 arg0, s16 soundnum, u16 arg2, u8 arg3, f32 arg4, u8 arg5, u8 arg6, struct sndstate **handleptr);
|
||||
s32 sndGetState(struct sndstate *handle);
|
||||
struct sndstate *func00033820(s32 arg0, s16 soundnum, u16 vol, ALPan pan, f32 pitch, u8 fxmix, u8 fxbus, struct sndstate **handleptr);
|
||||
void audioStop(struct sndstate *handle);
|
||||
void func00033bc0(struct sndstate *handle);
|
||||
void func00033db0(void);
|
||||
|
|
|
@ -18,7 +18,7 @@ u32 snd0000efa8(void);
|
|||
u32 snd0000f0d4(void);
|
||||
u32 snd0000f228(void);
|
||||
void sndSetSoundMode(s32 mode);
|
||||
struct sndstate_08 *snd0000f49c(u16 soundnum);
|
||||
ALSound *snd0000f49c(u16 soundnum);
|
||||
void seqInit(struct seqinstance *seq);
|
||||
void sndInit(void);
|
||||
bool sndIsMp3(u16 soundnum);
|
||||
|
|
|
@ -2123,44 +2123,26 @@ struct eyespy {
|
|||
/*0x7c*/ f32 pitch;
|
||||
};
|
||||
|
||||
struct sndstate_08_00 {
|
||||
u32 unk00;
|
||||
u32 unk04;
|
||||
};
|
||||
|
||||
struct sndstate_08_04 {
|
||||
u8 unk00;
|
||||
u8 unk01;
|
||||
u8 unk02;
|
||||
u8 unk03;
|
||||
u8 unk04;
|
||||
s8 unk05;
|
||||
};
|
||||
|
||||
struct sndstate_08 {
|
||||
struct sndstate_08_00 *unk00;
|
||||
struct sndstate_08_04 *unk04;
|
||||
};
|
||||
|
||||
struct sndstate {
|
||||
/*0x00*/ ALLink node;
|
||||
/*0x08*/ struct sndstate_08 *unk08;
|
||||
/*0x08*/ ALSound *sound;
|
||||
/*0x0c*/ N_ALVoice voice;
|
||||
/*0x28*/ f32 unk28;
|
||||
/*0x2c*/ f32 unk2c;
|
||||
/*0x28*/ f32 basepitch;
|
||||
/*0x2c*/ f32 pitch;
|
||||
/*0x30*/ struct sndstate **unk30;
|
||||
/*0x34*/ u32 unk34;
|
||||
/*0x38*/ s16 unk38;
|
||||
/*0x3c*/ u32 unk3c;
|
||||
/*0x40*/ u8 unk40;
|
||||
/*0x41*/ u8 unk41;
|
||||
/*0x42*/ u8 unk42;
|
||||
/*0x43*/ u8 unk43;
|
||||
/*0x34*/ s32 unk34;
|
||||
/*0x38*/ s16 vol;
|
||||
/*0x3a*/ s16 envvol;
|
||||
/*0x3c*/ ALMicroTime endtime;
|
||||
/*0x40*/ u8 priority;
|
||||
/*0x41*/ ALPan pan;
|
||||
/*0x42*/ u8 fxmix;
|
||||
/*0x43*/ u8 fxbus;
|
||||
/*0x44*/ u8 flags;
|
||||
/*0x45*/ u8 playing;
|
||||
/*0x45*/ u8 state;
|
||||
#if VERSION >= VERSION_NTSC_1_0
|
||||
/*0x46*/ u16 soundnum;
|
||||
/*0x48*/ u32 unk48;
|
||||
/*0x48*/ ALMicroTime unk48;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -34,15 +34,21 @@
|
|||
#define MIN_RATIO 0.0001
|
||||
|
||||
typedef enum {
|
||||
AL_SNDP_PLAY_EVT,
|
||||
AL_SNDP_STOP_EVT,
|
||||
AL_SNDP_PAN_EVT,
|
||||
AL_SNDP_VOL_EVT,
|
||||
AL_SNDP_PITCH_EVT,
|
||||
AL_SNDP_API_EVT,
|
||||
AL_SNDP_DECAY_EVT,
|
||||
AL_SNDP_END_EVT,
|
||||
AL_SNDP_FX_EVT
|
||||
AL_SNDP_PLAY_EVT = 0x0001,
|
||||
AL_SNDP_STOP_EVT = 0x0002,
|
||||
AL_SNDP_PAN_EVT = 0x0004,
|
||||
AL_SNDP_VOL_EVT = 0x0008,
|
||||
AL_SNDP_PITCH_EVT = 0x0010,
|
||||
AL_SNDP_API_EVT = 0x0020,
|
||||
AL_SNDP_DECAY_EVT = 0x0040,
|
||||
AL_SNDP_END_EVT = 0x0080,
|
||||
AL_SNDP_FX_EVT = 0x0100,
|
||||
AL_SNDP_0200_EVT = 0x0200,
|
||||
AL_SNDP_0400_EVT = 0x0400,
|
||||
AL_SNDP_0800_EVT = 0x0800,
|
||||
AL_SNDP_1000_EVT = 0x1000,
|
||||
AL_SNDP_FXBUS_EVT = 0x2000,
|
||||
AL_SNDP_4000_EVT = 0x4000
|
||||
} ALSndpMsgType;
|
||||
|
||||
typedef struct {
|
||||
|
@ -63,6 +69,7 @@ typedef union {
|
|||
struct {
|
||||
u16 type;
|
||||
N_ALSoundState *state;
|
||||
u32 unk08;
|
||||
} common;
|
||||
|
||||
struct {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue