Improved some error messages for command line processing.
[python/dscho.git] / Lib / plat-sunos4 / SUNAUDIODEV.py
blobb66610d903ef424842c5a1486d21ad9f6c1e2157
1 # Symbolic constants for use with sunaudiodev module
2 # The names are the same as in audioio.h with the leading AUDIO_
3 # removed.
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
24 BALANCE_SHIFT = 3
26 # Port names for i_port and o_port
28 PORT_A = 1
29 PORT_B = 2
30 PORT_C = 3
31 PORT_D = 4
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