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