PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Lib/plat-irix5/AL.py

http://unladen-swallow.googlecode.com/
Python | 65 lines | 49 code | 12 blank | 4 comment | 0 complexity | 07a09c526c006255e6c1c87a9494997e MD5 | raw file
 1from warnings import warnpy3k
 2warnpy3k("the AL module has been removed in Python 3.0", stacklevel=2)
 3del warnpy3k
 4
 5RATE_48000      = 48000
 6RATE_44100      = 44100
 7RATE_32000      = 32000
 8RATE_22050      = 22050
 9RATE_16000      = 16000
10RATE_11025      = 11025
11RATE_8000       = 8000
12
13SAMPFMT_TWOSCOMP= 1
14SAMPFMT_FLOAT   = 32
15SAMPFMT_DOUBLE  = 64
16
17SAMPLE_8        = 1
18SAMPLE_16       = 2
19        # SAMPLE_24 is the low 24 bits of a long, sign extended to 32 bits
20SAMPLE_24       = 4
21
22MONO            = 1
23STEREO          = 2
24QUADRO          = 4                     # 4CHANNEL is not a legal Python name
25
26INPUT_LINE      = 0
27INPUT_MIC       = 1
28INPUT_DIGITAL   = 2
29
30MONITOR_OFF     = 0
31MONITOR_ON      = 1
32
33ERROR_NUMBER            = 0
34ERROR_TYPE              = 1
35ERROR_LOCATION_LSP      = 2
36ERROR_LOCATION_MSP      = 3
37ERROR_LENGTH            = 4
38
39ERROR_INPUT_UNDERFLOW   = 0
40ERROR_OUTPUT_OVERFLOW   = 1
41
42# These seem to be not supported anymore:
43##HOLD, RELEASE                 = 0, 1
44##ATTAIL, ATHEAD, ATMARK, ATTIME        = 0, 1, 2, 3
45
46DEFAULT_DEVICE  = 1
47
48INPUT_SOURCE            = 0
49LEFT_INPUT_ATTEN        = 1
50RIGHT_INPUT_ATTEN       = 2
51INPUT_RATE              = 3
52OUTPUT_RATE             = 4
53LEFT_SPEAKER_GAIN       = 5
54RIGHT_SPEAKER_GAIN      = 6
55INPUT_COUNT             = 7
56OUTPUT_COUNT            = 8
57UNUSED_COUNT            = 9
58SYNC_INPUT_TO_AES       = 10
59SYNC_OUTPUT_TO_AES      = 11
60MONITOR_CTL             = 12
61LEFT_MONITOR_ATTEN      = 13
62RIGHT_MONITOR_ATTEN     = 14
63
64ENUM_VALUE      = 0     # only certain values are valid
65RANGE_VALUE     = 1     # any value in range is valid