• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Generated from 'Sound.h'
2
3def FOUR_CHAR_CODE(x): return x
4soundListRsrc = FOUR_CHAR_CODE('snd ')
5kSimpleBeepID = 1
6# rate48khz = (long)0xBB800000
7# rate44khz = (long)0xAC440000
8rate32khz = 0x7D000000
9rate22050hz = 0x56220000
10rate22khz = 0x56EE8BA3
11rate16khz = 0x3E800000
12rate11khz = 0x2B7745D1
13rate11025hz = 0x2B110000
14rate8khz = 0x1F400000
15sampledSynth = 5
16squareWaveSynth = 1
17waveTableSynth = 3
18MACE3snthID = 11
19MACE6snthID = 13
20kMiddleC = 60
21kNoVolume = 0
22kFullVolume = 0x0100
23stdQLength = 128
24dataOffsetFlag = 0x8000
25kUseOptionalOutputDevice = -1
26notCompressed = 0
27fixedCompression = -1
28variableCompression = -2
29twoToOne = 1
30eightToThree = 2
31threeToOne = 3
32sixToOne = 4
33sixToOnePacketSize = 8
34threeToOnePacketSize = 16
35stateBlockSize = 64
36leftOverBlockSize = 32
37firstSoundFormat = 0x0001
38secondSoundFormat = 0x0002
39dbBufferReady = 0x00000001
40dbLastBuffer = 0x00000004
41sysBeepDisable = 0x0000
42sysBeepEnable = (1 << 0)
43sysBeepSynchronous = (1 << 1)
44unitTypeNoSelection = 0xFFFF
45unitTypeSeconds = 0x0000
46stdSH = 0x00
47extSH = 0xFF
48cmpSH = 0xFE
49nullCmd = 0
50quietCmd = 3
51flushCmd = 4
52reInitCmd = 5
53waitCmd = 10
54pauseCmd = 11
55resumeCmd = 12
56callBackCmd = 13
57syncCmd = 14
58availableCmd = 24
59versionCmd = 25
60volumeCmd = 46
61getVolumeCmd = 47
62clockComponentCmd = 50
63getClockComponentCmd = 51
64scheduledSoundCmd = 52
65linkSoundComponentsCmd = 53
66soundCmd = 80
67bufferCmd = 81
68rateMultiplierCmd = 86
69getRateMultiplierCmd = 87
70initCmd = 1
71freeCmd = 2
72totalLoadCmd = 26
73loadCmd = 27
74freqDurationCmd = 40
75restCmd = 41
76freqCmd = 42
77ampCmd = 43
78timbreCmd = 44
79getAmpCmd = 45
80waveTableCmd = 60
81phaseCmd = 61
82rateCmd = 82
83continueCmd = 83
84doubleBufferCmd = 84
85getRateCmd = 85
86sizeCmd = 90
87convertCmd = 91
88waveInitChannelMask = 0x07
89waveInitChannel0 = 0x04
90waveInitChannel1 = 0x05
91waveInitChannel2 = 0x06
92waveInitChannel3 = 0x07
93initChan0 = waveInitChannel0
94initChan1 = waveInitChannel1
95initChan2 = waveInitChannel2
96initChan3 = waveInitChannel3
97outsideCmpSH = 0
98insideCmpSH = 1
99aceSuccess = 0
100aceMemFull = 1
101aceNilBlock = 2
102aceBadComp = 3
103aceBadEncode = 4
104aceBadDest = 5
105aceBadCmd = 6
106initChanLeft = 0x0002
107initChanRight = 0x0003
108initNoInterp = 0x0004
109initNoDrop = 0x0008
110initMono = 0x0080
111initStereo = 0x00C0
112initMACE3 = 0x0300
113initMACE6 = 0x0400
114initPanMask = 0x0003
115initSRateMask = 0x0030
116initStereoMask = 0x00C0
117initCompMask = 0xFF00
118siActiveChannels = FOUR_CHAR_CODE('chac')
119siActiveLevels = FOUR_CHAR_CODE('lmac')
120siAGCOnOff = FOUR_CHAR_CODE('agc ')
121siAsync = FOUR_CHAR_CODE('asyn')
122siAVDisplayBehavior = FOUR_CHAR_CODE('avdb')
123siChannelAvailable = FOUR_CHAR_CODE('chav')
124siCompressionAvailable = FOUR_CHAR_CODE('cmav')
125siCompressionChannels = FOUR_CHAR_CODE('cpct')
126siCompressionFactor = FOUR_CHAR_CODE('cmfa')
127siCompressionHeader = FOUR_CHAR_CODE('cmhd')
128siCompressionNames = FOUR_CHAR_CODE('cnam')
129siCompressionParams = FOUR_CHAR_CODE('evaw')
130siCompressionSampleRate = FOUR_CHAR_CODE('cprt')
131siCompressionType = FOUR_CHAR_CODE('comp')
132siContinuous = FOUR_CHAR_CODE('cont')
133siDecompressionParams = FOUR_CHAR_CODE('wave')
134siDeviceBufferInfo = FOUR_CHAR_CODE('dbin')
135siDeviceConnected = FOUR_CHAR_CODE('dcon')
136siDeviceIcon = FOUR_CHAR_CODE('icon')
137siDeviceName = FOUR_CHAR_CODE('name')
138siEQSpectrumBands = FOUR_CHAR_CODE('eqsb')
139siEQSpectrumLevels = FOUR_CHAR_CODE('eqlv')
140siEQSpectrumOnOff = FOUR_CHAR_CODE('eqlo')
141siEQSpectrumResolution = FOUR_CHAR_CODE('eqrs')
142siEQToneControlGain = FOUR_CHAR_CODE('eqtg')
143siEQToneControlOnOff = FOUR_CHAR_CODE('eqtc')
144siHardwareBalance = FOUR_CHAR_CODE('hbal')
145siHardwareBalanceSteps = FOUR_CHAR_CODE('hbls')
146siHardwareBass = FOUR_CHAR_CODE('hbas')
147siHardwareBassSteps = FOUR_CHAR_CODE('hbst')
148siHardwareBusy = FOUR_CHAR_CODE('hwbs')
149siHardwareFormat = FOUR_CHAR_CODE('hwfm')
150siHardwareMute = FOUR_CHAR_CODE('hmut')
151siHardwareMuteNoPrefs = FOUR_CHAR_CODE('hmnp')
152siHardwareTreble = FOUR_CHAR_CODE('htrb')
153siHardwareTrebleSteps = FOUR_CHAR_CODE('hwts')
154siHardwareVolume = FOUR_CHAR_CODE('hvol')
155siHardwareVolumeSteps = FOUR_CHAR_CODE('hstp')
156siHeadphoneMute = FOUR_CHAR_CODE('pmut')
157siHeadphoneVolume = FOUR_CHAR_CODE('pvol')
158siHeadphoneVolumeSteps = FOUR_CHAR_CODE('hdst')
159siInputAvailable = FOUR_CHAR_CODE('inav')
160siInputGain = FOUR_CHAR_CODE('gain')
161siInputSource = FOUR_CHAR_CODE('sour')
162siInputSourceNames = FOUR_CHAR_CODE('snam')
163siLevelMeterOnOff = FOUR_CHAR_CODE('lmet')
164siModemGain = FOUR_CHAR_CODE('mgai')
165siMonitorAvailable = FOUR_CHAR_CODE('mnav')
166siMonitorSource = FOUR_CHAR_CODE('mons')
167siNumberChannels = FOUR_CHAR_CODE('chan')
168siOptionsDialog = FOUR_CHAR_CODE('optd')
169siOSTypeInputSource = FOUR_CHAR_CODE('inpt')
170siOSTypeInputAvailable = FOUR_CHAR_CODE('inav')
171siOutputDeviceName = FOUR_CHAR_CODE('onam')
172siPlayThruOnOff = FOUR_CHAR_CODE('plth')
173siPostMixerSoundComponent = FOUR_CHAR_CODE('psmx')
174siPreMixerSoundComponent = FOUR_CHAR_CODE('prmx')
175siQuality = FOUR_CHAR_CODE('qual')
176siRateMultiplier = FOUR_CHAR_CODE('rmul')
177siRecordingQuality = FOUR_CHAR_CODE('qual')
178siSampleRate = FOUR_CHAR_CODE('srat')
179siSampleRateAvailable = FOUR_CHAR_CODE('srav')
180siSampleSize = FOUR_CHAR_CODE('ssiz')
181siSampleSizeAvailable = FOUR_CHAR_CODE('ssav')
182siSetupCDAudio = FOUR_CHAR_CODE('sucd')
183siSetupModemAudio = FOUR_CHAR_CODE('sumd')
184siSlopeAndIntercept = FOUR_CHAR_CODE('flap')
185siSoundClock = FOUR_CHAR_CODE('sclk')
186siUseThisSoundClock = FOUR_CHAR_CODE('sclc')
187siSpeakerMute = FOUR_CHAR_CODE('smut')
188siSpeakerVolume = FOUR_CHAR_CODE('svol')
189siSSpCPULoadLimit = FOUR_CHAR_CODE('3dll')
190siSSpLocalization = FOUR_CHAR_CODE('3dif')
191siSSpSpeakerSetup = FOUR_CHAR_CODE('3dst')
192siStereoInputGain = FOUR_CHAR_CODE('sgai')
193siSubwooferMute = FOUR_CHAR_CODE('bmut')
194siTerminalType = FOUR_CHAR_CODE('ttyp')
195siTwosComplementOnOff = FOUR_CHAR_CODE('twos')
196siVendorProduct = FOUR_CHAR_CODE('vpro')
197siVolume = FOUR_CHAR_CODE('volu')
198siVoxRecordInfo = FOUR_CHAR_CODE('voxr')
199siVoxStopInfo = FOUR_CHAR_CODE('voxs')
200siWideStereo = FOUR_CHAR_CODE('wide')
201siSupportedExtendedFlags = FOUR_CHAR_CODE('exfl')
202siRateConverterRollOffSlope = FOUR_CHAR_CODE('rcdb')
203siOutputLatency = FOUR_CHAR_CODE('olte')
204siCloseDriver = FOUR_CHAR_CODE('clos')
205siInitializeDriver = FOUR_CHAR_CODE('init')
206siPauseRecording = FOUR_CHAR_CODE('paus')
207siUserInterruptProc = FOUR_CHAR_CODE('user')
208# kInvalidSource = (long)0xFFFFFFFF
209kNoSource = FOUR_CHAR_CODE('none')
210kCDSource = FOUR_CHAR_CODE('cd  ')
211kExtMicSource = FOUR_CHAR_CODE('emic')
212kSoundInSource = FOUR_CHAR_CODE('sinj')
213kRCAInSource = FOUR_CHAR_CODE('irca')
214kTVFMTunerSource = FOUR_CHAR_CODE('tvfm')
215kDAVInSource = FOUR_CHAR_CODE('idav')
216kIntMicSource = FOUR_CHAR_CODE('imic')
217kMediaBaySource = FOUR_CHAR_CODE('mbay')
218kModemSource = FOUR_CHAR_CODE('modm')
219kPCCardSource = FOUR_CHAR_CODE('pcm ')
220kZoomVideoSource = FOUR_CHAR_CODE('zvpc')
221kDVDSource = FOUR_CHAR_CODE('dvda')
222kMicrophoneArray = FOUR_CHAR_CODE('mica')
223kNoSoundComponentType = FOUR_CHAR_CODE('****')
224kSoundComponentType = FOUR_CHAR_CODE('sift')
225kSoundComponentPPCType = FOUR_CHAR_CODE('nift')
226kRate8SubType = FOUR_CHAR_CODE('ratb')
227kRate16SubType = FOUR_CHAR_CODE('ratw')
228kConverterSubType = FOUR_CHAR_CODE('conv')
229kSndSourceSubType = FOUR_CHAR_CODE('sour')
230kMixerType = FOUR_CHAR_CODE('mixr')
231kMixer8SubType = FOUR_CHAR_CODE('mixb')
232kMixer16SubType = FOUR_CHAR_CODE('mixw')
233kSoundInputDeviceType = FOUR_CHAR_CODE('sinp')
234kWaveInSubType = FOUR_CHAR_CODE('wavi')
235kWaveInSnifferSubType = FOUR_CHAR_CODE('wisn')
236kSoundOutputDeviceType = FOUR_CHAR_CODE('sdev')
237kClassicSubType = FOUR_CHAR_CODE('clas')
238kASCSubType = FOUR_CHAR_CODE('asc ')
239kDSPSubType = FOUR_CHAR_CODE('dsp ')
240kAwacsSubType = FOUR_CHAR_CODE('awac')
241kGCAwacsSubType = FOUR_CHAR_CODE('awgc')
242kSingerSubType = FOUR_CHAR_CODE('sing')
243kSinger2SubType = FOUR_CHAR_CODE('sng2')
244kWhitSubType = FOUR_CHAR_CODE('whit')
245kSoundBlasterSubType = FOUR_CHAR_CODE('sbls')
246kWaveOutSubType = FOUR_CHAR_CODE('wavo')
247kWaveOutSnifferSubType = FOUR_CHAR_CODE('wosn')
248kDirectSoundSubType = FOUR_CHAR_CODE('dsnd')
249kDirectSoundSnifferSubType = FOUR_CHAR_CODE('dssn')
250kUNIXsdevSubType = FOUR_CHAR_CODE('un1x')
251kUSBSubType = FOUR_CHAR_CODE('usb ')
252kBlueBoxSubType = FOUR_CHAR_CODE('bsnd')
253kSoundCompressor = FOUR_CHAR_CODE('scom')
254kSoundDecompressor = FOUR_CHAR_CODE('sdec')
255kAudioComponentType = FOUR_CHAR_CODE('adio')
256kAwacsPhoneSubType = FOUR_CHAR_CODE('hphn')
257kAudioVisionSpeakerSubType = FOUR_CHAR_CODE('telc')
258kAudioVisionHeadphoneSubType = FOUR_CHAR_CODE('telh')
259kPhilipsFaderSubType = FOUR_CHAR_CODE('tvav')
260kSGSToneSubType = FOUR_CHAR_CODE('sgs0')
261kSoundEffectsType = FOUR_CHAR_CODE('snfx')
262kEqualizerSubType = FOUR_CHAR_CODE('eqal')
263kSSpLocalizationSubType = FOUR_CHAR_CODE('snd3')
264kSoundNotCompressed = FOUR_CHAR_CODE('NONE')
265k8BitOffsetBinaryFormat = FOUR_CHAR_CODE('raw ')
266k16BitBigEndianFormat = FOUR_CHAR_CODE('twos')
267k16BitLittleEndianFormat = FOUR_CHAR_CODE('sowt')
268kFloat32Format = FOUR_CHAR_CODE('fl32')
269kFloat64Format = FOUR_CHAR_CODE('fl64')
270k24BitFormat = FOUR_CHAR_CODE('in24')
271k32BitFormat = FOUR_CHAR_CODE('in32')
272k32BitLittleEndianFormat = FOUR_CHAR_CODE('23ni')
273kMACE3Compression = FOUR_CHAR_CODE('MAC3')
274kMACE6Compression = FOUR_CHAR_CODE('MAC6')
275kCDXA4Compression = FOUR_CHAR_CODE('cdx4')
276kCDXA2Compression = FOUR_CHAR_CODE('cdx2')
277kIMACompression = FOUR_CHAR_CODE('ima4')
278kULawCompression = FOUR_CHAR_CODE('ulaw')
279kALawCompression = FOUR_CHAR_CODE('alaw')
280kMicrosoftADPCMFormat = 0x6D730002
281kDVIIntelIMAFormat = 0x6D730011
282kDVAudioFormat = FOUR_CHAR_CODE('dvca')
283kQDesignCompression = FOUR_CHAR_CODE('QDMC')
284kQDesign2Compression = FOUR_CHAR_CODE('QDM2')
285kQUALCOMMCompression = FOUR_CHAR_CODE('Qclp')
286kOffsetBinary = k8BitOffsetBinaryFormat
287kTwosComplement = k16BitBigEndianFormat
288kLittleEndianFormat = k16BitLittleEndianFormat
289kMPEGLayer3Format = 0x6D730055
290kFullMPEGLay3Format = FOUR_CHAR_CODE('.mp3')
291k16BitNativeEndianFormat = k16BitLittleEndianFormat
292k16BitNonNativeEndianFormat = k16BitBigEndianFormat
293k16BitNativeEndianFormat = k16BitBigEndianFormat
294k16BitNonNativeEndianFormat = k16BitLittleEndianFormat
295k8BitRawIn = (1 << 0)
296k8BitTwosIn = (1 << 1)
297k16BitIn = (1 << 2)
298kStereoIn = (1 << 3)
299k8BitRawOut = (1 << 8)
300k8BitTwosOut = (1 << 9)
301k16BitOut = (1 << 10)
302kStereoOut = (1 << 11)
303kReverse = (1L << 16)
304kRateConvert = (1L << 17)
305kCreateSoundSource = (1L << 18)
306kVMAwareness = (1L << 21)
307kHighQuality = (1L << 22)
308kNonRealTime = (1L << 23)
309kSourcePaused = (1 << 0)
310kPassThrough = (1L << 16)
311kNoSoundComponentChain = (1L << 17)
312kNoMixing = (1 << 0)
313kNoSampleRateConversion = (1 << 1)
314kNoSampleSizeConversion = (1 << 2)
315kNoSampleFormatConversion = (1 << 3)
316kNoChannelConversion = (1 << 4)
317kNoDecompression = (1 << 5)
318kNoVolumeConversion = (1 << 6)
319kNoRealtimeProcessing = (1 << 7)
320kScheduledSource = (1 << 8)
321kNonInterleavedBuffer = (1 << 9)
322kNonPagingMixer = (1 << 10)
323kSoundConverterMixer = (1 << 11)
324kPagingMixer = (1 << 12)
325kVMAwareMixer = (1 << 13)
326kExtendedSoundData = (1 << 14)
327kBestQuality = (1 << 0)
328kInputMask = 0x000000FF
329kOutputMask = 0x0000FF00
330kOutputShift = 8
331kActionMask = 0x00FF0000
332kSoundComponentBits = 0x00FFFFFF
333kAudioFormatAtomType = FOUR_CHAR_CODE('frma')
334kAudioEndianAtomType = FOUR_CHAR_CODE('enda')
335kAudioVBRAtomType = FOUR_CHAR_CODE('vbra')
336kAudioTerminatorAtomType = 0
337kAVDisplayHeadphoneRemove = 0
338kAVDisplayHeadphoneInsert = 1
339kAVDisplayPlainTalkRemove = 2
340kAVDisplayPlainTalkInsert = 3
341audioAllChannels = 0
342audioLeftChannel = 1
343audioRightChannel = 2
344audioUnmuted = 0
345audioMuted = 1
346audioDoesMono = (1L << 0)
347audioDoesStereo = (1L << 1)
348audioDoesIndependentChannels = (1L << 2)
349siCDQuality = FOUR_CHAR_CODE('cd  ')
350siBestQuality = FOUR_CHAR_CODE('best')
351siBetterQuality = FOUR_CHAR_CODE('betr')
352siGoodQuality = FOUR_CHAR_CODE('good')
353siNoneQuality = FOUR_CHAR_CODE('none')
354siDeviceIsConnected = 1
355siDeviceNotConnected = 0
356siDontKnowIfConnected = -1
357siReadPermission = 0
358siWritePermission = 1
359kSoundConverterDidntFillBuffer = (1 << 0)
360kSoundConverterHasLeftOverData = (1 << 1)
361kExtendedSoundSampleCountNotValid = 1L << 0
362kExtendedSoundBufferSizeValid = 1L << 1
363kScheduledSoundDoScheduled = 1 << 0
364kScheduledSoundDoCallBack = 1 << 1
365kScheduledSoundExtendedHdr = 1 << 2
366kSoundComponentInitOutputDeviceSelect = 0x0001
367kSoundComponentSetSourceSelect = 0x0002
368kSoundComponentGetSourceSelect = 0x0003
369kSoundComponentGetSourceDataSelect = 0x0004
370kSoundComponentSetOutputSelect = 0x0005
371kSoundComponentAddSourceSelect = 0x0101
372kSoundComponentRemoveSourceSelect = 0x0102
373kSoundComponentGetInfoSelect = 0x0103
374kSoundComponentSetInfoSelect = 0x0104
375kSoundComponentStartSourceSelect = 0x0105
376kSoundComponentStopSourceSelect = 0x0106
377kSoundComponentPauseSourceSelect = 0x0107
378kSoundComponentPlaySourceBufferSelect = 0x0108
379kAudioGetVolumeSelect = 0x0000
380kAudioSetVolumeSelect = 0x0001
381kAudioGetMuteSelect = 0x0002
382kAudioSetMuteSelect = 0x0003
383kAudioSetToDefaultsSelect = 0x0004
384kAudioGetInfoSelect = 0x0005
385kAudioGetBassSelect = 0x0006
386kAudioSetBassSelect = 0x0007
387kAudioGetTrebleSelect = 0x0008
388kAudioSetTrebleSelect = 0x0009
389kAudioGetOutputDeviceSelect = 0x000A
390kAudioMuteOnEventSelect = 0x0081
391kDelegatedSoundComponentSelectors = 0x0100
392kSndInputReadAsyncSelect = 0x0001
393kSndInputReadSyncSelect = 0x0002
394kSndInputPauseRecordingSelect = 0x0003
395kSndInputResumeRecordingSelect = 0x0004
396kSndInputStopRecordingSelect = 0x0005
397kSndInputGetStatusSelect = 0x0006
398kSndInputGetDeviceInfoSelect = 0x0007
399kSndInputSetDeviceInfoSelect = 0x0008
400kSndInputInitHardwareSelect = 0x0009
401