1 # Symbolic constants for use with sunaudiodev module
2 # The names are the same as in audioio.h with the leading AUDIO_
5 # Not all values are supported on all releases of SunOS.
7 # Encoding types, for fields i_encoding and o_encoding
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
14 # Gain ranges for i_gain, o_gain and monitor_gain
16 MIN_GAIN
= 0 # minimum gain value
17 MAX_GAIN
= 255 # maximum gain value
19 # Balance values for i_balance and o_balance
21 LEFT_BALANCE
= 0 # left channel only
22 MID_BALANCE
= 32 # equal left/right channel
23 RIGHT_BALANCE
= 64 # right channel only
26 # Port names for i_port and o_port
33 SPEAKER
= 0x01 # output to built-in speaker
34 HEADPHONE
= 0x02 # output to headphone jack
35 LINE_OUT
= 0x04 # output to line out
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