blob: ed17cde2ef0449bb2834da5ac2b48ed672390af0 [file] [log] [blame]
Guido van Rossum2483cbb1991-09-17 08:12:16 +00001RATE_48000 = 48000
2RATE_44100 = 44100
3RATE_32000 = 32000
4RATE_22050 = 22050
5RATE_16000 = 16000
6RATE_11025 = 11025
7RATE_8000 = 8000
8
Jack Jansene8a3c281993-02-10 14:10:56 +00009SAMPFMT_TWOSCOMP= 1
10SAMPFMT_FLOAT = 32
11SAMPFMT_DOUBLE = 64
12
Guido van Rossum2483cbb1991-09-17 08:12:16 +000013SAMPLE_8 = 1
14SAMPLE_16 = 2
15 # SAMPLE_24 is the low 24 bits of a long, sign extended to 32 bits
16SAMPLE_24 = 4
17
18MONO = 1
19STEREO = 2
Guido van Rossum25bcdb01996-12-13 00:19:15 +000020QUADRO = 4 # 4CHANNEL is not a legal Python name
Guido van Rossum2483cbb1991-09-17 08:12:16 +000021
22INPUT_LINE = 0
23INPUT_MIC = 1
24INPUT_DIGITAL = 2
25
Jack Jansene8a3c281993-02-10 14:10:56 +000026MONITOR_OFF = 0
27MONITOR_ON = 1
28
29ERROR_NUMBER = 0
30ERROR_TYPE = 1
31ERROR_LOCATION_LSP = 2
32ERROR_LOCATION_MSP = 3
33ERROR_LENGTH = 4
34
35ERROR_INPUT_UNDERFLOW = 0
36ERROR_OUTPUT_OVERFLOW = 1
37
38# These seem to be not supported anymore:
39##HOLD, RELEASE = 0, 1
40##ATTAIL, ATHEAD, ATMARK, ATTIME = 0, 1, 2, 3
Guido van Rossum2483cbb1991-09-17 08:12:16 +000041
42DEFAULT_DEVICE = 1
43
44INPUT_SOURCE = 0
45LEFT_INPUT_ATTEN = 1
46RIGHT_INPUT_ATTEN = 2
47INPUT_RATE = 3
48OUTPUT_RATE = 4
49LEFT_SPEAKER_GAIN = 5
50RIGHT_SPEAKER_GAIN = 6
51INPUT_COUNT = 7
52OUTPUT_COUNT = 8
53UNUSED_COUNT = 9
54SYNC_INPUT_TO_AES = 10
55SYNC_OUTPUT_TO_AES = 11
Jack Jansene8a3c281993-02-10 14:10:56 +000056MONITOR_CTL = 12
57LEFT_MONITOR_ATTEN = 13
58RIGHT_MONITOR_ATTEN = 14
Guido van Rossum2483cbb1991-09-17 08:12:16 +000059
60ENUM_VALUE = 0 # only certain values are valid
61RANGE_VALUE = 1 # any value in range is valid