Audio internal lib: Merge dcache.c and aisetnextbuf.c into os.c (#2522)

This commit is contained in:
fig02
2025-05-02 04:44:09 -04:00
committed by GitHub
parent ed15061de5
commit 7cd59fbdad
3 changed files with 20 additions and 18 deletions
-16
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);
}
@@ -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