home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / Carbon / Sound.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  16.5 KB  |  402 lines

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