mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 15:25:13 -04:00
37 lines
929 B
C
37 lines
929 B
C
#ifndef RVL_SDK_AX_CL_H
|
|
#define RVL_SDK_AX_CL_H
|
|
#include <common.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define AX_MAX_VOLUME 32768
|
|
// Command list can hold up to 64 commands
|
|
#define AX_CL_MAX_CMD 64
|
|
// Each command takes up two bytes
|
|
#define AX_CL_SIZE (AX_CL_MAX_CMD * sizeof(u16))
|
|
|
|
typedef enum { AX_OUTPUT_STEREO, AX_OUTPUT_SURROUND, AX_OUTPUT_DPL2 } AXOutputMode;
|
|
|
|
extern u32 __AXClMode;
|
|
|
|
u32 __AXGetCommandListCycles(void);
|
|
void *__AXGetCommandListAddress(void);
|
|
void __AXWriteToCommandList(u16 cmd);
|
|
void __AXNextFrame(void *surround, void *lr, void *rmt);
|
|
void __AXClInit(void);
|
|
void AXSetMode(u32 mode);
|
|
u32 AXGetMode(void);
|
|
u16 AXGetAuxAReturnVolume(void);
|
|
u16 AXGetAuxBReturnVolume(void);
|
|
u16 AXGetAuxCReturnVolume(void);
|
|
void AXSetMasterVolume(u16 volume);
|
|
void AXSetAuxAReturnVolume(u16 volume);
|
|
void AXSetAuxBReturnVolume(u16 volume);
|
|
void AXSetAuxCReturnVolume(u16 volume);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|