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