mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-15 20:35:13 +00:00
Audio internal lib: Merge dcache.c and aisetnextbuf.c into os.c (#2522)
This commit is contained in:
parent
ed15061de5
commit
7cd59fbdad
3 changed files with 20 additions and 18 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue