1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-05-09 18:43:45 +00:00

move osAiSetNextBuffer

This commit is contained in:
fig02 2025-05-01 18:23:42 -04:00
parent ed15061de5
commit 56531d78ad
3 changed files with 20 additions and 18 deletions

View file

@ -681,8 +681,7 @@ beginseg
include "$(BUILD_DIR)/src/audio/internal/heap.o"
include "$(BUILD_DIR)/src/audio/internal/load.o"
include "$(BUILD_DIR)/src/audio/internal/thread.o"
include "$(BUILD_DIR)/src/audio/internal/dcache.o"
include "$(BUILD_DIR)/src/audio/internal/aisetnextbuf.o"
include "$(BUILD_DIR)/src/audio/internal/os.o"
#if OOT_PAL_N64
pad_text
pad_text

View file

@ -1,16 +0,0 @@
#include "ultra64.h"
#include "z64audio.h"
void Audio_InvalDCache(void* buf, s32 size) {
OSIntMask prevMask = osSetIntMask(OS_IM_NONE);
osInvalDCache(buf, size);
osSetIntMask(prevMask);
}
void Audio_WritebackDCache(void* buf, s32 size) {
OSIntMask prevMask = osSetIntMask(OS_IM_NONE);
osWritebackDCache(buf, size);
osSetIntMask(prevMask);
}

View file

@ -1,4 +1,23 @@
/**
* Original Filename: os.c
*/
#include "ultra64.h"
#include "z64audio.h"
void Audio_InvalDCache(void* buf, s32 size) {
OSIntMask prevMask = osSetIntMask(OS_IM_NONE);
osInvalDCache(buf, size);
osSetIntMask(prevMask);
}
void Audio_WritebackDCache(void* buf, s32 size) {
OSIntMask prevMask = osSetIntMask(OS_IM_NONE);
osWritebackDCache(buf, size);
osSetIntMask(prevMask);
}
/**
* Submits an audio buffer to be consumed by the Audio DAC. The audio interface can queue a second DMA while another