2020-08-04 08:49:11 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
2020-09-25 23:18:09 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004AB00);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-12-08 11:50:14 +01:00
|
|
|
void func_8004ADD0(s32 arg0) {
|
|
|
|
OSIntMask osIntMask = osSetIntMask(OS_IM_NONE);
|
|
|
|
|
|
|
|
D_80078174 = arg0;
|
|
|
|
osSetIntMask(osIntMask);
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-25 23:18:09 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004AE08);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-10-15 06:43:07 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuDmaCallBack);
|
|
|
|
|
2020-09-25 23:18:09 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuDmaNew);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-25 23:18:09 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuCleanDMABuffers);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-25 23:18:09 +02:00
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004B328);
|
2020-09-24 05:16:13 +02:00
|
|
|
|
2020-11-06 01:37:31 +01:00
|
|
|
void alLink(ALLink* element, ALLink* after) {
|
2020-11-06 01:30:17 +01:00
|
|
|
element->next = after->next;
|
|
|
|
element->prev = after;
|
|
|
|
|
|
|
|
if (after->next != NULL) {
|
|
|
|
after->next->prev = element;
|
|
|
|
}
|
|
|
|
after->next = element;
|
|
|
|
}
|
|
|
|
|
2020-11-06 01:37:31 +01:00
|
|
|
void alUnlink(ALLink* element) {
|
2020-11-06 01:30:17 +01:00
|
|
|
if (element->next != NULL) {
|
|
|
|
element->next->prev = element->prev;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (element->prev != NULL) {
|
|
|
|
element->prev->next = element->next;
|
|
|
|
}
|
|
|
|
}
|