summaryrefslogtreecommitdiff
path: root/include/rvl/AX/AX.h
blob: 603c23c48db82d8420ee4213cebe6c191c31db5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef RVL_SDK_AX_H
#define RVL_SDK_AX_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif

#define AX_MAX_VOICES					0x60	/* name known from asserts */
#define AX_SAMPLE_RATE					32000
#define AX_ADPCM_FRAME_SIZE				8
#define AX_ADPCM_SAMPLE_BYTES_PER_FRAME	(AX_ADPCM_FRAME_SIZE - 1)
#define AX_ADPCM_SAMPLES_PER_BYTE		2
#define AX_ADPCM_SAMPLES_PER_FRAME		(AX_ADPCM_SAMPLE_BYTES_PER_FRAME * AX_ADPCM_SAMPLES_PER_BYTE)
#define AX_ADPCM_NIBBLES_PER_FRAME		(AX_ADPCM_FRAME_SIZE * 2)
#define AX_FRAME_SIZE					(AX_SAMPLES_PER_FRAME * AX_SAMPLE_DEPTH_BYTES)

#define AX_PRIORITY_STACKS	32

#define AX_PRIORITY_FREE	0
#define AX_PRIORITY_MIN		1

void AXInit(void);
void AXInitEx(u32 mode);

#ifdef __cplusplus
}
#endif
#endif