2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_AI
|
|
|
|
#define _DOLPHIN_AI
|
2022-08-05 10:23:49 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
typedef void (*AISCallback)(u32 count);
|
|
|
|
typedef void (*AIDCallback)();
|
|
|
|
|
|
|
|
AIDCallback AIRegisterDMACallback(AIDCallback callback);
|
|
|
|
void AIInitDMA(u32 start_addr, u32 length);
|
|
|
|
BOOL AIGetDMAEnableFlag();
|
|
|
|
void AIStartDMA();
|
|
|
|
void AIStopDMA();
|
|
|
|
u32 AIGetDMABytesLeft();
|
|
|
|
u32 AIGetDMAStartAddr();
|
|
|
|
u32 AIGetDMALength();
|
|
|
|
u32 AIGetDSPSampleRate();
|
|
|
|
void AISetDSPSampleRate(u32 rate);
|
|
|
|
AISCallback AIRegisterStreamCallback(AISCallback callback);
|
|
|
|
u32 AIGetStreamSampleCount();
|
|
|
|
void AIResetStreamSampleCount();
|
|
|
|
void AISetStreamTrigger(u32 trigger);
|
|
|
|
u32 AIGetStreamTrigger();
|
|
|
|
void AISetStreamPlayState(u32 state);
|
|
|
|
u32 AIGetStreamPlayState();
|
|
|
|
void AISetStreamSampleRate(u32 rate);
|
|
|
|
u32 AIGetStreamSampleRate();
|
|
|
|
void AISetStreamVolLeft(u8 vol);
|
|
|
|
void AISetStreamVolRight(u8 vol);
|
|
|
|
u8 AIGetStreamVolLeft();
|
|
|
|
u8 AIGetStreamVolRight();
|
|
|
|
void AIInit(u8* stack);
|
|
|
|
BOOL AICheckInit();
|
|
|
|
void AIReset();
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_AI
|