root / lab4 / .minix-src / include / minix / sound.h @ 13
History | View | Annotate | Download (811 Bytes)
1 | 13 | up20180614 | /* Definitions used by /dev/audio and /dev/mixer.
|
---|---|---|---|
2 | *
|
||
3 | * Feb 13 1995 Author: Michel R. Prevenier
|
||
4 | */
|
||
5 | |||
6 | #ifndef SOUND_H
|
||
7 | #define SOUND_H
|
||
8 | |||
9 | /* ------- Mixer stuff ------- */
|
||
10 | |||
11 | /* Available devices */
|
||
12 | enum Device
|
||
13 | { |
||
14 | Master, /* Master volume */
|
||
15 | Dac, /* DSP, digitized sound */
|
||
16 | Fm, /* Fm synthesized sound */
|
||
17 | Cd, /* Compact */
|
||
18 | Line, /* Line in */
|
||
19 | Mic, /* Microphone */
|
||
20 | Speaker, /* Pc speaker */
|
||
21 | Treble, /* Treble */
|
||
22 | Bass /* Bass */
|
||
23 | }; |
||
24 | |||
25 | enum InputState
|
||
26 | { |
||
27 | ON, OFF |
||
28 | }; |
||
29 | |||
30 | /* Volume levels range from 0 to 31, bass & treble range from 0 to 15 */
|
||
31 | struct volume_level
|
||
32 | { |
||
33 | enum Device device;
|
||
34 | int left;
|
||
35 | int right;
|
||
36 | }; |
||
37 | |||
38 | struct inout_ctrl
|
||
39 | { |
||
40 | enum Device device;
|
||
41 | enum InputState left;
|
||
42 | enum InputState right;
|
||
43 | }; |
||
44 | |||
45 | #endif /* SOUND_H */ |