blob: b66610d903ef424842c5a1486d21ad9f6c1e2157 [file] [log] [blame]
Guido van Rossum73b715e1992-06-03 16:50:01 +00001# Symbolic constants for use with sunaudiodev module
2# The names are the same as in audioio.h with the leading AUDIO_
3# removed.
4
Sjoerd Mullender2a451411993-12-20 09:36:01 +00005# Not all values are supported on all releases of SunOS.
6
Guido van Rossum73b715e1992-06-03 16:50:01 +00007# Encoding types, for fields i_encoding and o_encoding
8
Sjoerd Mullender2a451411993-12-20 09:36:01 +00009ENCODING_NONE = 0 # no encoding assigned
10ENCODING_ULAW = 1 # u-law encoding
11ENCODING_ALAW = 2 # A-law encoding
12ENCODING_LINEAR = 3 # Linear PCM encoding
Guido van Rossum73b715e1992-06-03 16:50:01 +000013
14# Gain ranges for i_gain, o_gain and monitor_gain
15
Sjoerd Mullender2a451411993-12-20 09:36:01 +000016MIN_GAIN = 0 # minimum gain value
17MAX_GAIN = 255 # maximum gain value
18
19# Balance values for i_balance and o_balance
20
21LEFT_BALANCE = 0 # left channel only
22MID_BALANCE = 32 # equal left/right channel
23RIGHT_BALANCE = 64 # right channel only
24BALANCE_SHIFT = 3
Guido van Rossum73b715e1992-06-03 16:50:01 +000025
26# Port names for i_port and o_port
27
28PORT_A = 1
29PORT_B = 2
30PORT_C = 3
31PORT_D = 4
32
Sjoerd Mullender2a451411993-12-20 09:36:01 +000033SPEAKER = 0x01 # output to built-in speaker
34HEADPHONE = 0x02 # output to headphone jack
35LINE_OUT = 0x04 # output to line out
Guido van Rossum73b715e1992-06-03 16:50:01 +000036
Sjoerd Mullender2a451411993-12-20 09:36:01 +000037MICROPHONE = 0x01 # input from microphone
38LINE_IN = 0x02 # input from line in