NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
ai.h
1#ifndef RVL_SDK_AI_H
2#define RVL_SDK_AI_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8// Forward declarations
9typedef struct OSContext OSContext;
10
11typedef void (*AIDMACallback)(void);
12
13typedef enum {
14 AI_DSP_32KHZ,
15 AI_DSP_48KHZ,
16} AIDSPSampleRate;
17
18AIDMACallback AIRegisterDMACallback(AIDMACallback callback);
19void AIInitDMA(void* buffer, u32 length);
20void AIStartDMA(void);
21u32 AIGetDMABytesLeft(void);
22void AISetDSPSampleRate(u32 rate);
23u32 AIGetDSPSampleRate(void);
24void AIInit(void* stack);
25void __AIDHandler(s16 intr, OSContext* ctx);
26
27#ifdef __cplusplus
28}
29#endif
30#endif