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 from warnings import warnpy3k 5 warnpy3k("the SUNAUDIODEV module has been removed in Python 3.0", stacklevel=2) 6 del 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 12 ENCODING_NONE = 0 # no encoding assigned 13 ENCODING_ULAW = 1 # u-law encoding 14 ENCODING_ALAW = 2 # A-law encoding 15 ENCODING_LINEAR = 3 # Linear PCM encoding 16 17 # Gain ranges for i_gain, o_gain and monitor_gain 18 19 MIN_GAIN = 0 # minimum gain value 20 MAX_GAIN = 255 # maximum gain value 21 22 # Balance values for i_balance and o_balance 23 24 LEFT_BALANCE = 0 # left channel only 25 MID_BALANCE = 32 # equal left/right channel 26 RIGHT_BALANCE = 64 # right channel only 27 BALANCE_SHIFT = 3 28 29 # Port names for i_port and o_port 30 31 PORT_A = 1 32 PORT_B = 2 33 PORT_C = 3 34 PORT_D = 4 35 36 SPEAKER = 0x01 # output to built-in speaker 37 HEADPHONE = 0x02 # output to headphone jack 38 LINE_OUT = 0x04 # output to line out 39 40 MICROPHONE = 0x01 # input from microphone 41 LINE_IN = 0x02 # input from line in 42 CD = 0x04 # input from on-board CD inputs 43 INTERNAL_CD_IN = CD # input from internal CDROM 44