266 lines
8.2 KiB
Python
266 lines
8.2 KiB
Python
# Generated from 'flap:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Sound.h'
|
|
|
|
def FOUR_CHAR_CODE(x): return x
|
|
soundListRsrc = FOUR_CHAR_CODE('snd ')
|
|
rate22050hz = 0x56220000
|
|
rate22khz = 0x56EE8BA3
|
|
rate11khz = 0x2B7745D1
|
|
rate11025hz = 0x2B110000
|
|
squareWaveSynth = 1
|
|
waveTableSynth = 3
|
|
sampledSynth = 5
|
|
MACE3snthID = 11
|
|
MACE6snthID = 13
|
|
kMiddleC = 60
|
|
kSimpleBeepID = 1
|
|
kFullVolume = 0x0100
|
|
kNoVolume = 0
|
|
stdQLength = 128
|
|
dataOffsetFlag = 0x8000
|
|
kUseOptionalOutputDevice = -1
|
|
notCompressed = 0
|
|
fixedCompression = -1
|
|
variableCompression = -2
|
|
twoToOne = 1
|
|
eightToThree = 2
|
|
threeToOne = 3
|
|
sixToOne = 4
|
|
sixToOnePacketSize = 8
|
|
threeToOnePacketSize = 16
|
|
stateBlockSize = 64
|
|
leftOverBlockSize = 32
|
|
firstSoundFormat = 0x0001
|
|
secondSoundFormat = 0x0002
|
|
dbBufferReady = 0x00000001
|
|
dbLastBuffer = 0x00000004
|
|
sysBeepDisable = 0x0000
|
|
unitTypeNoSelection = 0xFFFF
|
|
unitTypeSeconds = 0x0000
|
|
stdSH = 0x00
|
|
extSH = 0xFF
|
|
cmpSH = 0xFE
|
|
nullCmd = 0
|
|
initCmd = 1
|
|
freeCmd = 2
|
|
quietCmd = 3
|
|
flushCmd = 4
|
|
reInitCmd = 5
|
|
waitCmd = 10
|
|
pauseCmd = 11
|
|
resumeCmd = 12
|
|
callBackCmd = 13
|
|
syncCmd = 14
|
|
availableCmd = 24
|
|
versionCmd = 25
|
|
totalLoadCmd = 26
|
|
loadCmd = 27
|
|
freqDurationCmd = 40
|
|
restCmd = 41
|
|
freqCmd = 42
|
|
ampCmd = 43
|
|
timbreCmd = 44
|
|
getAmpCmd = 45
|
|
volumeCmd = 46
|
|
getVolumeCmd = 47
|
|
clockComponentCmd = 50
|
|
getClockComponentCmd = 51
|
|
waveTableCmd = 60
|
|
phaseCmd = 61
|
|
soundCmd = 80
|
|
bufferCmd = 81
|
|
rateCmd = 82
|
|
continueCmd = 83
|
|
doubleBufferCmd = 84
|
|
getRateCmd = 85
|
|
rateMultiplierCmd = 86
|
|
getRateMultiplierCmd = 87
|
|
sizeCmd = 90
|
|
convertCmd = 91
|
|
waveInitChannelMask = 0x07
|
|
waveInitChannel0 = 0x04
|
|
waveInitChannel1 = 0x05
|
|
waveInitChannel2 = 0x06
|
|
waveInitChannel3 = 0x07
|
|
initChan0 = waveInitChannel0
|
|
initChan1 = waveInitChannel1
|
|
initChan2 = waveInitChannel2
|
|
initChan3 = waveInitChannel3
|
|
outsideCmpSH = 0
|
|
insideCmpSH = 1
|
|
aceSuccess = 0
|
|
aceMemFull = 1
|
|
aceNilBlock = 2
|
|
aceBadComp = 3
|
|
aceBadEncode = 4
|
|
aceBadDest = 5
|
|
aceBadCmd = 6
|
|
initChanLeft = 0x0002
|
|
initChanRight = 0x0003
|
|
initNoInterp = 0x0004
|
|
initNoDrop = 0x0008
|
|
initMono = 0x0080
|
|
initStereo = 0x00C0
|
|
initMACE3 = 0x0300
|
|
initMACE6 = 0x0400
|
|
initPanMask = 0x0003
|
|
initSRateMask = 0x0030
|
|
initStereoMask = 0x00C0
|
|
initCompMask = 0xFF00
|
|
siActiveChannels = FOUR_CHAR_CODE('chac')
|
|
siActiveLevels = FOUR_CHAR_CODE('lmac')
|
|
siAGCOnOff = FOUR_CHAR_CODE('agc ')
|
|
siAsync = FOUR_CHAR_CODE('asyn')
|
|
siAVDisplayBehavior = FOUR_CHAR_CODE('avdb')
|
|
siChannelAvailable = FOUR_CHAR_CODE('chav')
|
|
siCompressionAvailable = FOUR_CHAR_CODE('cmav')
|
|
siCompressionFactor = FOUR_CHAR_CODE('cmfa')
|
|
siCompressionHeader = FOUR_CHAR_CODE('cmhd')
|
|
siCompressionNames = FOUR_CHAR_CODE('cnam')
|
|
siCompressionParams = FOUR_CHAR_CODE('cmpp')
|
|
siCompressionType = FOUR_CHAR_CODE('comp')
|
|
siContinuous = FOUR_CHAR_CODE('cont')
|
|
siDeviceBufferInfo = FOUR_CHAR_CODE('dbin')
|
|
siDeviceConnected = FOUR_CHAR_CODE('dcon')
|
|
siDeviceIcon = FOUR_CHAR_CODE('icon')
|
|
siDeviceName = FOUR_CHAR_CODE('name')
|
|
siHardwareBalance = FOUR_CHAR_CODE('hbal')
|
|
siHardwareBalanceSteps = FOUR_CHAR_CODE('hbls')
|
|
siHardwareBass = FOUR_CHAR_CODE('hbas')
|
|
siHardwareBassSteps = FOUR_CHAR_CODE('hbst')
|
|
siHardwareBusy = FOUR_CHAR_CODE('hwbs')
|
|
siHardwareFormat = FOUR_CHAR_CODE('hwfm')
|
|
siHardwareMute = FOUR_CHAR_CODE('hmut')
|
|
siHardwareTreble = FOUR_CHAR_CODE('htrb')
|
|
siHardwareTrebleSteps = FOUR_CHAR_CODE('hwts')
|
|
siHardwareVolume = FOUR_CHAR_CODE('hvol')
|
|
siHardwareVolumeSteps = FOUR_CHAR_CODE('hstp')
|
|
siHeadphoneMute = FOUR_CHAR_CODE('pmut')
|
|
siHeadphoneVolume = FOUR_CHAR_CODE('pvol')
|
|
siHeadphoneVolumeSteps = FOUR_CHAR_CODE('hdst')
|
|
siInputAvailable = FOUR_CHAR_CODE('inav')
|
|
siInputGain = FOUR_CHAR_CODE('gain')
|
|
siInputSource = FOUR_CHAR_CODE('sour')
|
|
siInputSourceNames = FOUR_CHAR_CODE('snam')
|
|
siLevelMeterOnOff = FOUR_CHAR_CODE('lmet')
|
|
siModemGain = FOUR_CHAR_CODE('mgai')
|
|
siMonitorAvailable = FOUR_CHAR_CODE('mnav')
|
|
siMonitorSource = FOUR_CHAR_CODE('mons')
|
|
siNumberChannels = FOUR_CHAR_CODE('chan')
|
|
siOptionsDialog = FOUR_CHAR_CODE('optd')
|
|
siPlayThruOnOff = FOUR_CHAR_CODE('plth')
|
|
siPostMixerSoundComponent = FOUR_CHAR_CODE('psmx')
|
|
siPreMixerSoundComponent = FOUR_CHAR_CODE('prmx')
|
|
siQuality = FOUR_CHAR_CODE('qual')
|
|
siRateMultiplier = FOUR_CHAR_CODE('rmul')
|
|
siRecordingQuality = FOUR_CHAR_CODE('qual')
|
|
siSampleRate = FOUR_CHAR_CODE('srat')
|
|
siSampleRateAvailable = FOUR_CHAR_CODE('srav')
|
|
siSampleSize = FOUR_CHAR_CODE('ssiz')
|
|
siSampleSizeAvailable = FOUR_CHAR_CODE('ssav')
|
|
siSetupCDAudio = FOUR_CHAR_CODE('sucd')
|
|
siSetupModemAudio = FOUR_CHAR_CODE('sumd')
|
|
siSlopeAndIntercept = FOUR_CHAR_CODE('flap')
|
|
siSoundClock = FOUR_CHAR_CODE('sclk')
|
|
siSpeakerMute = FOUR_CHAR_CODE('smut')
|
|
siSpeakerVolume = FOUR_CHAR_CODE('svol')
|
|
siSSpCPULoadLimit = FOUR_CHAR_CODE('3dll')
|
|
siSSpLocalization = FOUR_CHAR_CODE('3dif')
|
|
siSSpSpeakerSetup = FOUR_CHAR_CODE('3dst')
|
|
siStereoInputGain = FOUR_CHAR_CODE('sgai')
|
|
siSubwooferMute = FOUR_CHAR_CODE('bmut')
|
|
siTwosComplementOnOff = FOUR_CHAR_CODE('twos')
|
|
siVolume = FOUR_CHAR_CODE('volu')
|
|
siVoxRecordInfo = FOUR_CHAR_CODE('voxr')
|
|
siVoxStopInfo = FOUR_CHAR_CODE('voxs')
|
|
siWideStereo = FOUR_CHAR_CODE('wide')
|
|
siCloseDriver = FOUR_CHAR_CODE('clos')
|
|
siInitializeDriver = FOUR_CHAR_CODE('init')
|
|
siPauseRecording = FOUR_CHAR_CODE('paus')
|
|
siUserInterruptProc = FOUR_CHAR_CODE('user')
|
|
kNoSoundComponentType = FOUR_CHAR_CODE('****')
|
|
kSoundComponentType = FOUR_CHAR_CODE('sift')
|
|
kSoundComponentPPCType = FOUR_CHAR_CODE('nift')
|
|
kRate8SubType = FOUR_CHAR_CODE('ratb')
|
|
kRate16SubType = FOUR_CHAR_CODE('ratw')
|
|
kConverterSubType = FOUR_CHAR_CODE('conv')
|
|
kSndSourceSubType = FOUR_CHAR_CODE('sour')
|
|
kMixerType = FOUR_CHAR_CODE('mixr')
|
|
kMixer8SubType = FOUR_CHAR_CODE('mixb')
|
|
kMixer16SubType = FOUR_CHAR_CODE('mixw')
|
|
kSoundOutputDeviceType = FOUR_CHAR_CODE('sdev')
|
|
kClassicSubType = FOUR_CHAR_CODE('clas')
|
|
kASCSubType = FOUR_CHAR_CODE('asc ')
|
|
kDSPSubType = FOUR_CHAR_CODE('dsp ')
|
|
kAwacsSubType = FOUR_CHAR_CODE('awac')
|
|
kGCAwacsSubType = FOUR_CHAR_CODE('awgc')
|
|
kSingerSubType = FOUR_CHAR_CODE('sing')
|
|
kSinger2SubType = FOUR_CHAR_CODE('sng2')
|
|
kWhitSubType = FOUR_CHAR_CODE('whit')
|
|
kSoundBlasterSubType = FOUR_CHAR_CODE('sbls')
|
|
kSoundCompressor = FOUR_CHAR_CODE('scom')
|
|
kSoundDecompressor = FOUR_CHAR_CODE('sdec')
|
|
kSoundEffectsType = FOUR_CHAR_CODE('snfx')
|
|
kSSpLocalizationSubType = FOUR_CHAR_CODE('snd3')
|
|
kSoundNotCompressed = FOUR_CHAR_CODE('NONE')
|
|
kOffsetBinary = FOUR_CHAR_CODE('raw ')
|
|
kMACE3Compression = FOUR_CHAR_CODE('MAC3')
|
|
kMACE6Compression = FOUR_CHAR_CODE('MAC6')
|
|
kCDXA4Compression = FOUR_CHAR_CODE('cdx4')
|
|
kCDXA2Compression = FOUR_CHAR_CODE('cdx2')
|
|
kIMACompression = FOUR_CHAR_CODE('ima4')
|
|
kULawCompression = FOUR_CHAR_CODE('ulaw')
|
|
kALawCompression = FOUR_CHAR_CODE('alaw')
|
|
kLittleEndianFormat = FOUR_CHAR_CODE('sowt')
|
|
kFloat32Format = FOUR_CHAR_CODE('fl32')
|
|
kFloat64Format = FOUR_CHAR_CODE('fl64')
|
|
kTwosComplement = FOUR_CHAR_CODE('twos')
|
|
kInputMask = 0x000000FF
|
|
kOutputMask = 0x0000FF00
|
|
kOutputShift = 8
|
|
kActionMask = 0x00FF0000
|
|
kSoundComponentBits = 0x00FFFFFF
|
|
kAVDisplayHeadphoneRemove = 0
|
|
kAVDisplayHeadphoneInsert = 1
|
|
kAVDisplayPlainTalkRemove = 2
|
|
kAVDisplayPlainTalkInsert = 3
|
|
audioAllChannels = 0
|
|
audioLeftChannel = 1
|
|
audioRightChannel = 2
|
|
audioUnmuted = 0
|
|
audioMuted = 1
|
|
siCDQuality = FOUR_CHAR_CODE('cd ')
|
|
siBestQuality = FOUR_CHAR_CODE('best')
|
|
siBetterQuality = FOUR_CHAR_CODE('betr')
|
|
siGoodQuality = FOUR_CHAR_CODE('good')
|
|
siDeviceIsConnected = 1
|
|
siDeviceNotConnected = 0
|
|
siDontKnowIfConnected = -1
|
|
siReadPermission = 0
|
|
siWritePermission = 1
|
|
kSoundComponentInitOutputDeviceSelect = 1
|
|
kSoundComponentSetSourceSelect = 2
|
|
kSoundComponentGetSourceSelect = 3
|
|
kSoundComponentGetSourceDataSelect = 4
|
|
kSoundComponentSetOutputSelect = 5
|
|
kDelegatedSoundComponentSelectors = 0x0100
|
|
kSoundComponentAddSourceSelect = kDelegatedSoundComponentSelectors + 1
|
|
kSoundComponentRemoveSourceSelect = kDelegatedSoundComponentSelectors + 2
|
|
kSoundComponentGetInfoSelect = kDelegatedSoundComponentSelectors + 3
|
|
kSoundComponentSetInfoSelect = kDelegatedSoundComponentSelectors + 4
|
|
kSoundComponentStartSourceSelect = kDelegatedSoundComponentSelectors + 5
|
|
kSoundComponentStopSourceSelect = kDelegatedSoundComponentSelectors + 6
|
|
kSoundComponentPauseSourceSelect = kDelegatedSoundComponentSelectors + 7
|
|
kSoundComponentPlaySourceBufferSelect = kDelegatedSoundComponentSelectors + 8
|
|
kAudioGetVolumeSelect = 0
|
|
kAudioSetVolumeSelect = 1
|
|
kAudioGetMuteSelect = 2
|
|
kAudioSetMuteSelect = 3
|
|
kAudioSetToDefaultsSelect = 4
|
|
kAudioGetInfoSelect = 5
|
|
kAudioGetBassSelect = 6
|
|
kAudioSetBassSelect = 7
|
|
kAudioGetTrebleSelect = 8
|
|
kAudioSetTrebleSelect = 9
|
|
kAudioGetOutputDeviceSelect = 10
|
|
kAudioMuteOnEventSelect = 129
|