mirror of
https://github.com/zeldaret/oot.git
synced 2025-05-09 18:43:45 +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
|
@ -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
|
||||
|
|
|
@ -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
Reference in a new issue