mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-31 15:47:21 -04:00
temp
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
#ifndef _DOLPHIN_AI_H_
|
||||
#define _DOLPHIN_AI_H_
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*AISCallback)(u32 count);
|
||||
typedef void (*AIDCallback)();
|
||||
|
||||
#define AI_STREAM_START 1
|
||||
#define AI_STREAM_STOP 0
|
||||
|
||||
#define AI_SAMPLERATE_32KHZ 0
|
||||
#define AI_SAMPLERATE_48KHZ 1
|
||||
|
||||
AIDCallback AIRegisterDMACallback(AIDCallback callback);
|
||||
void AIInitDMA(u32 start_addr, u32 length);
|
||||
BOOL AIGetDMAEnableFlag(void);
|
||||
void AIStartDMA(void);
|
||||
void AIStopDMA(void);
|
||||
u32 AIGetDMABytesLeft(void);
|
||||
u32 AIGetDMAStartAddr(void);
|
||||
u32 AIGetDMALength(void);
|
||||
BOOL AICheckInit(void);
|
||||
AISCallback AIRegisterStreamCallback(AISCallback callback);
|
||||
u32 AIGetStreamSampleCount(void);
|
||||
void AIResetStreamSampleCount(void);
|
||||
void AISetStreamTrigger(u32 trigger);
|
||||
u32 AIGetStreamTrigger(void);
|
||||
void AISetStreamPlayState(u32 state);
|
||||
u32 AIGetStreamPlayState(void);
|
||||
void AISetDSPSampleRate(u32 rate);
|
||||
u32 AIGetDSPSampleRate(void);
|
||||
void AISetStreamSampleRate(u32 rate);
|
||||
u32 AIGetStreamSampleRate(void);
|
||||
void AISetStreamVolLeft(u8 vol);
|
||||
u8 AIGetStreamVolLeft(void);
|
||||
void AISetStreamVolRight(u8 vol);
|
||||
u8 AIGetStreamVolRight(void);
|
||||
void AIInit(u8* stack);
|
||||
void AIReset(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef AICTRL_H
|
||||
#define AICTRL_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern u32 UNIVERSAL_DACCOUNTER;
|
||||
extern u32 JAC_VFRAME_COUNTER;
|
||||
|
||||
typedef enum _MixMode {
|
||||
MixMode_Mono,
|
||||
MixMode_MonoWide,
|
||||
MixMode_Extra,
|
||||
MixMode_Interleave,
|
||||
|
||||
MixMode_Num
|
||||
} MixMode;
|
||||
|
||||
typedef s16* (*MixCallback)(s32);
|
||||
|
||||
extern void Jac_HeapSetup(void* pHeap, s32 size);
|
||||
extern void* OSAlloc2(u32 size);
|
||||
extern void Jac_Init(void);
|
||||
extern MixCallback Jac_GetMixcallback(u8* mixmode);
|
||||
extern void Jac_RegisterMixcallback(MixCallback mixcallback, u8 mixmode);
|
||||
extern void Jac_VframeWork(void);
|
||||
extern void Jac_UpdateDAC(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef AUDIOCOMMON_H
|
||||
#define AUDIOCOMMON_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define S16_MIN (-0x8000)
|
||||
#define S16_MAX (0x7FFF)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef DSPBUF_H
|
||||
#define DSPBUF_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern s16* MixDsp(s32 nSamples);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef JAUDIO_MEMORY_H
|
||||
#define JAUDIO_MEMORY_H
|
||||
|
||||
#include "types.h"
|
||||
#include "jaudio_NES/audiostruct.h"
|
||||
|
||||
extern void Nas_HeapInit(ALHeap* heap, u8* base, s32 len);
|
||||
extern void* Nas_HeapAlloc(ALHeap* heap, s32 size);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef RATE_H
|
||||
#define RATE_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern u32 JAC_FRAMESAMPLES;
|
||||
extern u32 DAC_SIZE;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef STREAMCTRL_H
|
||||
#define STREAMCTRL_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern void StreamMain(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user