📄 sunaudiodev.py
字号:
# Symbolic constants for use with sunaudiodev module# The names are the same as in audioio.h with the leading AUDIO_# removed.# Not all values are supported on all releases of SunOS.# Encoding types, for fields i_encoding and o_encodingENCODING_NONE = 0 # no encoding assignedENCODING_ULAW = 1 # u-law encodingENCODING_ALAW = 2 # A-law encodingENCODING_LINEAR = 3 # Linear PCM encoding# Gain ranges for i_gain, o_gain and monitor_gainMIN_GAIN = 0 # minimum gain valueMAX_GAIN = 255 # maximum gain value# Balance values for i_balance and o_balanceLEFT_BALANCE = 0 # left channel onlyMID_BALANCE = 32 # equal left/right channelRIGHT_BALANCE = 64 # right channel onlyBALANCE_SHIFT = 3# Port names for i_port and o_portPORT_A = 1PORT_B = 2PORT_C = 3PORT_D = 4SPEAKER = 0x01 # output to built-in speakerHEADPHONE = 0x02 # output to headphone jackLINE_OUT = 0x04 # output to line outMICROPHONE = 0x01 # input from microphoneLINE_IN = 0x02 # input from line in
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -