source: trunk/minix/include/minix/sound.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 811 bytes
Line 
1/* 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 */
12enum 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
25enum InputState
26{
27 ON, OFF
28};
29
30/* Volume levels range from 0 to 31, bass & treble range from 0 to 15 */
31struct volume_level
32{
33 enum Device device;
34 int left;
35 int right;
36};
37
38struct inout_ctrl
39{
40 enum Device device;
41 enum InputState left;
42 enum InputState right;
43};
44
45#endif /* SOUND_H */
Note: See TracBrowser for help on using the repository browser.