-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathaud.h
44 lines (40 loc) · 752 Bytes
/
aud.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef AUD_H
#define AUD_H
struct AC_STATE {
int rate;
struct {
s16 *buf;
int size;
int head;
int tail;
int mono;
int volume;
int volume_fmin;
int volume_micin;
int volume_linein;
int mute : 1;
int mute_fmin : 1;
int mute_micin : 1;
int mute_linein : 1;
} dac;
struct {
s16 *buf;
int size;
int head;
int tail;
int gain;
int gain_micin;
int mute_fminl : 1;
int mute_fminr : 1;
int mute_micin : 1;
int mute_linein : 1;
int mute_mixl : 1;
int mute_mixr : 1;
} adc;
};
extern volatile struct AC_STATE ac;
void ac_disable (void);
void ac_enable (int rate, int mono);
void ac_mixer_init (void);
void aud_handler (void);
#endif