Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # Symbolic constants for use with sunaudiodev module |
2 | # The names are the same as in audioio.h with the leading AUDIO_ | |
3 | # removed. | |
4 | ||
5 | # Not all values are supported on all releases of SunOS. | |
6 | ||
7 | # Encoding types, for fields i_encoding and o_encoding | |
8 | ||
9 | ENCODING_NONE = 0 # no encoding assigned | |
10 | ENCODING_ULAW = 1 # u-law encoding | |
11 | ENCODING_ALAW = 2 # A-law encoding | |
12 | ENCODING_LINEAR = 3 # Linear PCM encoding | |
13 | ||
14 | # Gain ranges for i_gain, o_gain and monitor_gain | |
15 | ||
16 | MIN_GAIN = 0 # minimum gain value | |
17 | MAX_GAIN = 255 # maximum gain value | |
18 | ||
19 | # Balance values for i_balance and o_balance | |
20 | ||
21 | LEFT_BALANCE = 0 # left channel only | |
22 | MID_BALANCE = 32 # equal left/right channel | |
23 | RIGHT_BALANCE = 64 # right channel only | |
24 | BALANCE_SHIFT = 3 | |
25 | ||
26 | # Port names for i_port and o_port | |
27 | ||
28 | PORT_A = 1 | |
29 | PORT_B = 2 | |
30 | PORT_C = 3 | |
31 | PORT_D = 4 | |
32 | ||
33 | SPEAKER = 0x01 # output to built-in speaker | |
34 | HEADPHONE = 0x02 # output to headphone jack | |
35 | LINE_OUT = 0x04 # output to line out | |
36 | ||
37 | MICROPHONE = 0x01 # input from microphone | |
38 | LINE_IN = 0x02 # input from line in | |
39 | CD = 0x04 # input from on-board CD inputs | |
40 | INTERNAL_CD_IN = CD # input from internal CDROM |