audiotoolbox

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package audiotoolbox provides purego-based Go bindings for the macOS AudioToolbox framework.

Apple documentation: https://developer.apple.com/documentation/audiotoolbox

Index

Constants

View Source
const (
	K3DMixerParam_Azimuth                          = 0
	K3DMixerParam_BusEnable                        = 20
	K3DMixerParam_Distance                         = 2
	K3DMixerParam_DryWetReverbBlend                = 23
	K3DMixerParam_Elevation                        = 1
	K3DMixerParam_Gain                             = 3
	K3DMixerParam_GlobalReverbGain                 = 6
	K3DMixerParam_GlobalReverbGainInDecibels       = 24
	K3DMixerParam_MaxGain                          = 10
	K3DMixerParam_MaxGainInDecibels                = 22
	K3DMixerParam_MinGain                          = 9
	K3DMixerParam_MinGainInDecibels                = 21
	K3DMixerParam_ObstructionAttenuation           = 8
	K3DMixerParam_ObstructionAttenuationInDecibels = 26
	K3DMixerParam_OcclusionAttenuation             = 7
	K3DMixerParam_OcclusionAttenuationInDecibels   = 25
	K3DMixerParam_PlaybackRate                     = 4
	K3DMixerParam_PostAveragePower                 = 3000
	K3DMixerParam_PostPeakHoldLevel                = 4000
	K3DMixerParam_PreAveragePower                  = 1000
	K3DMixerParam_PrePeakHoldLevel                 = 2000
	K3DMixerParam_ReverbBlend                      = 5
)
View Source
const (
	KAUAudioMixParameter_RemixAmount = 1
	KAUAudioMixParameter_Style       = 0
)
View Source
const (
	KAUAudioMixProperty_EnableSpatialization    = 5001
	KAUAudioMixProperty_SpatialAudioMixMetadata = 5000
)
View Source
const (
	KAUGraphErr_CannotDoInCurrentContext = -10863
	KAUGraphErr_InvalidAudioUnit         = -10864
	KAUGraphErr_InvalidConnection        = -10861
	KAUGraphErr_NodeNotFound             = -10860
	KAUGraphErr_OutputNodeErr            = -10862
)
View Source
const (
	KAUGroupParameterID_AllNotesOff          = 123
	KAUGroupParameterID_AllSoundOff          = 120
	KAUGroupParameterID_ChannelPressure      = 208
	KAUGroupParameterID_DataEntry            = 6
	KAUGroupParameterID_DataEntry_LSB        = 38
	KAUGroupParameterID_Expression           = 11
	KAUGroupParameterID_Expression_LSB       = 43
	KAUGroupParameterID_Foot                 = 4
	KAUGroupParameterID_Foot_LSB             = 36
	KAUGroupParameterID_KeyPressure          = 160
	KAUGroupParameterID_KeyPressure_FirstKey = 256
	KAUGroupParameterID_KeyPressure_LastKey  = 383
	KAUGroupParameterID_ModWheel             = 1
	KAUGroupParameterID_ModWheel_LSB         = 33
	KAUGroupParameterID_Pan                  = 10
	KAUGroupParameterID_Pan_LSB              = 42
	KAUGroupParameterID_PitchBend            = 224
	KAUGroupParameterID_ResetAllControllers  = 121
	KAUGroupParameterID_Sostenuto            = 66
	KAUGroupParameterID_Sustain              = 64
	KAUGroupParameterID_Volume               = 7
	KAUGroupParameterID_Volume_LSB           = 39
)
View Source
const (
	KAULowShelfParam_CutoffFrequency = 0
	KAULowShelfParam_Gain            = 1
)
View Source
const (
	KAUNBandEQFilterType_2ndOrderButterworthHighPass = 2
	KAUNBandEQFilterType_2ndOrderButterworthLowPass  = 1
	KAUNBandEQFilterType_BandPass                    = 5
	KAUNBandEQFilterType_BandStop                    = 6
	KAUNBandEQFilterType_HighShelf                   = 8
	KAUNBandEQFilterType_LowShelf                    = 7
	KAUNBandEQFilterType_Parametric                  = 0
	KAUNBandEQFilterType_ResonantHighPass            = 4
	KAUNBandEQFilterType_ResonantHighShelf           = 10
	KAUNBandEQFilterType_ResonantLowPass             = 3
	KAUNBandEQFilterType_ResonantLowShelf            = 9
	KNumAUNBandEQFilterTypes                         = 11
)
View Source
const (
	KAUNBandEQParam_Bandwidth  = 5000
	KAUNBandEQParam_BypassBand = 1000
	KAUNBandEQParam_FilterType = 2000
	KAUNBandEQParam_Frequency  = 3000
	KAUNBandEQParam_Gain       = 4000
	KAUNBandEQParam_GlobalGain = 0
)
View Source
const (
	KAUNBandEQProperty_BiquadCoefficients = 2203
	KAUNBandEQProperty_MaxNumberOfBands   = 2201
	KAUNBandEQProperty_NumberOfBands      = 2200
)
View Source
const (
	KAUNetReceiveParam_NumParameters = 1
	KAUNetReceiveParam_Status        = 0
)
View Source
const (
	KAUNetReceiveProperty_Hostname = 3511
	KAUNetReceiveProperty_Password = 3512
)
View Source
const (
	KAUNetSendParam_NumParameters = 1
	KAUNetSendParam_Status        = 0
)
View Source
const (
	KAUNetSendNumPresetFormats             = 18
	KAUNetSendPresetFormat_AAC_128kbpspc   = 7
	KAUNetSendPresetFormat_AAC_32kbpspc    = 13
	KAUNetSendPresetFormat_AAC_40kbpspc    = 12
	KAUNetSendPresetFormat_AAC_48kbpspc    = 11
	KAUNetSendPresetFormat_AAC_64kbpspc    = 10
	KAUNetSendPresetFormat_AAC_80kbpspc    = 9
	KAUNetSendPresetFormat_AAC_96kbpspc    = 8
	KAUNetSendPresetFormat_AAC_LD_32kbpspc = 17
	KAUNetSendPresetFormat_AAC_LD_40kbpspc = 16
	KAUNetSendPresetFormat_AAC_LD_48kbpspc = 15
	KAUNetSendPresetFormat_AAC_LD_64kbpspc = 14
	KAUNetSendPresetFormat_IMA4            = 6
	KAUNetSendPresetFormat_Lossless16      = 4
	KAUNetSendPresetFormat_Lossless24      = 3
	KAUNetSendPresetFormat_PCMFloat32      = 0
	KAUNetSendPresetFormat_PCMInt16        = 2
	KAUNetSendPresetFormat_PCMInt24        = 1
	KAUNetSendPresetFormat_ULaw            = 5
)
View Source
const (
	KAUNetSendProperty_Disconnect              = 3517
	KAUNetSendProperty_Password                = 3518
	KAUNetSendProperty_PortNum                 = 3513
	KAUNetSendProperty_ServiceName             = 3516
	KAUNetSendProperty_TransmissionFormat      = 3514
	KAUNetSendProperty_TransmissionFormatIndex = 3515
)
View Source
const (
	KAUNetStatus_Connected    = 1
	KAUNetStatus_Connecting   = 4
	KAUNetStatus_Listening    = 5
	KAUNetStatus_NotConnected = 0
	KAUNetStatus_Overflow     = 2
	KAUNetStatus_Underflow    = 3
)
View Source
const (
	KAUNodeInteraction_Connection    = 1
	KAUNodeInteraction_InputCallback = 2
)
View Source
const (
	KAUSamplerParam_CoarseTuning = 901
	KAUSamplerParam_FineTuning   = 902
	KAUSamplerParam_Gain         = 900
	KAUSamplerParam_Pan          = 903
)
View Source
const (
	KAUSamplerProperty_LoadAudioFiles = 4101
	KAUSamplerProperty_LoadInstrument = 4102
)
View Source
const (
	KAUSamplerProperty_BankAndPreset      = 4100
	KAUSamplerProperty_LoadPresetFromBank = 4100
)
View Source
const (
	KAUSampler_DefaultBankLSB           = 0
	KAUSampler_DefaultMelodicBankMSB    = 121
	KAUSampler_DefaultPercussionBankMSB = 120
)
View Source
const (
	KAUSoundIsolationParam_SoundToIsolate   = 1
	KAUSoundIsolationParam_WetDryMixPercent = 0
)
View Source
const (
	KAUSoundIsolationSoundType_HighQualityVoice = 0
	KAUSoundIsolationSoundType_Voice            = 1
)
View Source
const (
	KAUVoiceIOProperty_BypassVoiceProcessing    = 2100
	KAUVoiceIOProperty_MuteOutput               = 2104
	KAUVoiceIOProperty_VoiceProcessingEnableAGC = 2101
)
View Source
const (
	KAudioCodecBitRateControlMode_Constant            = 0
	KAudioCodecBitRateControlMode_LongTermAverage     = 1
	KAudioCodecBitRateControlMode_Variable            = 3
	KAudioCodecBitRateControlMode_VariableConstrained = 2
)
View Source
const (
	KAudioCodecBitRateFormat_ABR = 1
	KAudioCodecBitRateFormat_CBR = 0
	KAudioCodecBitRateFormat_VBR = 2
)
View Source
const (
	KAudioCodecContentSource_AV_Spatial_Live               = 41
	KAudioCodecContentSource_AV_Spatial_Offline            = 39
	KAudioCodecContentSource_AV_Traditional_Live           = 40
	KAudioCodecContentSource_AV_Traditional_Offline        = 38
	KAudioCodecContentSource_AppleAV_Spatial_Live          = 9
	KAudioCodecContentSource_AppleAV_Spatial_Offline       = 7
	KAudioCodecContentSource_AppleAV_Traditional_Live      = 8
	KAudioCodecContentSource_AppleAV_Traditional_Offline   = 6
	KAudioCodecContentSource_AppleCapture_Spatial          = 2
	KAudioCodecContentSource_AppleCapture_Spatial_Enhanced = 3
	KAudioCodecContentSource_AppleCapture_Traditional      = 1
	KAudioCodecContentSource_AppleMusic_Spatial            = 5
	KAudioCodecContentSource_AppleMusic_Traditional        = 4
	KAudioCodecContentSource_ApplePassthrough              = 10
	KAudioCodecContentSource_Capture_Spatial               = 34
	KAudioCodecContentSource_Capture_Spatial_Enhanced      = 35
	KAudioCodecContentSource_Capture_Traditional           = 33
	KAudioCodecContentSource_Music_Spatial                 = 37
	KAudioCodecContentSource_Music_Traditional             = 36
	KAudioCodecContentSource_Passthrough                   = 42
	KAudioCodecContentSource_Reserved                      = 0
	KAudioCodecContentSource_Unspecified                   = -1
)
View Source
const (
	KAudioCodecDelayMode_Compatibility = 0
	KAudioCodecDelayMode_Minimum       = 1
	KAudioCodecDelayMode_Optimal       = 2
)
View Source
const (
	KAudioCodecDynamicRangeControlConfiguration_Capture = 4
	KAudioCodecDynamicRangeControlConfiguration_Movie   = 3
	KAudioCodecDynamicRangeControlConfiguration_Music   = 1
	KAudioCodecDynamicRangeControlConfiguration_None    = 0
	KAudioCodecDynamicRangeControlConfiguration_Speech  = 2
)
View Source
const (
	KAudioCodecAppendInputBufferListSelect   = 9
	KAudioCodecAppendInputDataSelect         = 6
	KAudioCodecGetPropertyInfoSelect         = 1
	KAudioCodecGetPropertySelect             = 2
	KAudioCodecInitializeSelect              = 4
	KAudioCodecProduceOutputBufferListSelect = 10
	KAudioCodecProduceOutputDataSelect       = 7
	KAudioCodecResetSelect                   = 8
	KAudioCodecSetPropertySelect             = 3
	KAudioCodecUninitializeSelect            = 5
)
View Source
const (
	KAudioCodecBadDataError              = 1650549857
	KAudioCodecBadPropertySizeError      = 561211770
	KAudioCodecIllegalOperationError     = 1852797029
	KAudioCodecNoError                   = 0
	KAudioCodecNotEnoughBufferSpaceError = 560100710
	KAudioCodecStateError                = 561214580
	KAudioCodecUnknownPropertyError      = 2003332927
	KAudioCodecUnspecifiedError          = 2003329396
	KAudioCodecUnsupportedFormatError    = 560226676
)
View Source
const (
	KAudioCodecOutputPrecedenceBitRate    = 1
	KAudioCodecOutputPrecedenceNone       = 0
	KAudioCodecOutputPrecedenceSampleRate = 2
)
View Source
const (
	KAudioCodecPrimeMethod_None   = 2
	KAudioCodecPrimeMethod_Normal = 1
	KAudioCodecPrimeMethod_Pre    = 0
)
View Source
const (
	KAudioCodecProduceOutputPacketAtEOF              = 5
	KAudioCodecProduceOutputPacketFailure            = 1
	KAudioCodecProduceOutputPacketNeedsMoreInputData = 4
	KAudioCodecProduceOutputPacketSuccess            = 2
	KAudioCodecProduceOutputPacketSuccessConcealed   = 6
	KAudioCodecProduceOutputPacketSuccessHasMore     = 3
)
View Source
const (
	KAudioCodecPropertyASPFrequency                     = 1634955366
	KAudioCodecPropertyAdjustCompressionProfile         = 1584427631
	KAudioCodecPropertyAdjustLocalQuality               = 1584488812
	KAudioCodecPropertyAdjustTargetLevel                = 1584428140
	KAudioCodecPropertyAdjustTargetLevelConstant        = 1584688227
	KAudioCodecPropertyApplicableBitRateRange           = 1651668065
	KAudioCodecPropertyApplicableInputSampleRates       = 1769173601
	KAudioCodecPropertyApplicableOutputSampleRates      = 1869836897
	KAudioCodecPropertyBitRateControlMode               = 1633903206
	KAudioCodecPropertyBitRateForVBR                    = 1986163298
	KAudioCodecPropertyContentSource                    = 1668510307
	KAudioCodecPropertyCurrentInputChannelLayout        = 1768123424
	KAudioCodecPropertyCurrentInputFormat               = 1768320372
	KAudioCodecPropertyCurrentInputSampleRate           = 1667855218
	KAudioCodecPropertyCurrentOutputChannelLayout       = 1868786720
	KAudioCodecPropertyCurrentOutputFormat              = 1868983668
	KAudioCodecPropertyCurrentOutputSampleRate          = 1668248434
	KAudioCodecPropertyCurrentTargetBitRate             = 1651663220
	KAudioCodecPropertyDelayMode                        = 1684893540
	KAudioCodecPropertyDynamicRangeControlConfiguration = 1667527267
	KAudioCodecPropertyDynamicRangeControlMode          = 1835299427
	KAudioCodecPropertyEmploysDependentPackets          = 1685089087
	KAudioCodecPropertyFormatList                       = 1633904236
	KAudioCodecPropertyHasVariablePacketByteSizes       = 1987078975
	KAudioCodecPropertyInputBufferSize                  = 1952609638
	KAudioCodecPropertyIsInitialized                    = 1768843636
	KAudioCodecPropertyMagicCookie                      = 1802857321
	KAudioCodecPropertyMaximumPacketByteSize            = 1885432674
	KAudioCodecPropertyPacketFrameSize                  = 1885432678
	KAudioCodecPropertyPacketSizeLimitForVBR            = 1885432684
	KAudioCodecPropertyPaddedZeros                      = 1885430832
	KAudioCodecPropertyPrimeInfo                        = 1886546285
	KAudioCodecPropertyPrimeMethod                      = 1886547309
	KAudioCodecPropertyProgramTargetLevel               = 1886418028
	KAudioCodecPropertyProgramTargetLevelConstant       = 1886678115
	KAudioCodecPropertyQualitySetting                   = 1936876401
	KAudioCodecPropertyRecommendedBitRateRange          = 1651668082
	KAudioCodecPropertySettings                         = 1633907488
	KAudioCodecPropertySoundQualityForVBR               = 1986163313
	KAudioCodecPropertyUsedInputBufferSize              = 1969386854
)
View Source
const (
	KAudioCodecPropertyFormatCFString       = 1818652530
	KAudioCodecPropertyManufacturerCFString = 1819107691
	KAudioCodecPropertyNameCFString         = 1819173229
)
View Source
const (
	KAudioCodecBitRateFormat                         = 1633903206
	KAudioCodecDoesSampleRateConversion              = 1819112035
	KAudioCodecExtendFrequencies                     = 1633903974
	KAudioCodecInputFormatsForOutputFormat           = 1768305775
	KAudioCodecOutputFormatsForInputFormat           = 1868969065
	KAudioCodecOutputPrecedence                      = 1869639794
	KAudioCodecPropertyAvailableBitRates             = 1651668003
	KAudioCodecPropertyAvailableInputChannelLayouts  = 1634296684
	KAudioCodecPropertyAvailableOutputChannelLayouts = 1634689900
	KAudioCodecPropertyInputChannelLayout            = 1768123424
	KAudioCodecPropertyOutputChannelLayout           = 1868786720
	KAudioCodecPropertyRequiresPacketDescription     = 1885432676
	KAudioCodecPropertyZeroFramesPadded              = 1885430832
	KAudioCodecUseRecommendedSampleRate              = 1970434930
)
View Source
const (
	KAudioCodecPropertyAvailableBitRateRange            = 1633841780
	KAudioCodecPropertyAvailableInputChannelLayoutTags  = 1634296684
	KAudioCodecPropertyAvailableInputSampleRates        = 1634300786
	KAudioCodecPropertyAvailableNumberChannels          = 1668116067
	KAudioCodecPropertyAvailableOutputChannelLayoutTags = 1634689900
	KAudioCodecPropertyAvailableOutputSampleRates       = 1634694002
	KAudioCodecPropertyDoesSampleRateConversion         = 1819112035
	KAudioCodecPropertyFormatInfo                       = 1633904233
	KAudioCodecPropertyInputFormatsForOutputFormat      = 1768305775
	KAudioCodecPropertyMinimumNumberInputPackets        = 1835952496
	KAudioCodecPropertyMinimumNumberOutputPackets       = 1835954032
	KAudioCodecPropertyOutputFormatsForInputFormat      = 1868969065
	KAudioCodecPropertySupportedInputFormats            = 1768320291
	KAudioCodecPropertySupportedOutputFormats           = 1868983587
)
View Source
const (
	KAudioCodecQuality_High   = 96
	KAudioCodecQuality_Low    = 32
	KAudioCodecQuality_Max    = 127
	KAudioCodecQuality_Medium = 64
	KAudioCodecQuality_Min    = 0
)
View Source
const (
	KAudioComponentErr_DuplicateDescription   = -66752
	KAudioComponentErr_InitializationTimedOut = -66747
	KAudioComponentErr_InvalidFormat          = -66746
	KAudioComponentErr_NotPermitted           = -66748
	KAudioComponentErr_TooManyInstances       = -66750
	KAudioComponentErr_UnsupportedType        = -66751
)
View Source
const (
	KAudioConverterErr_BadPropertySizeError            = 561211770
	KAudioConverterErr_FormatNotSupported              = 1718449215
	KAudioConverterErr_InputSampleRateOutOfRange       = 560558962
	KAudioConverterErr_InvalidInputSize                = 1768846202
	KAudioConverterErr_InvalidOutputSize               = 1869902714
	KAudioConverterErr_OperationNotSupported           = 1869627199
	KAudioConverterErr_OutputSampleRateOutOfRange      = 560952178
	KAudioConverterErr_PropertyNotSupported            = 1886547824
	KAudioConverterErr_RequiresPacketDescriptionsError = 561015652
	KAudioConverterErr_UnspecifiedError                = 2003329396
)
View Source
const (
	KAudioConverterPropertyDitherBitDepth = 1684171124
	KAudioConverterPropertyDithering      = 1684632680
)
View Source
const (
	KAudioConverterPropertyMaximumInputBufferSize = 2020172403
	KAudioConverterSampleRateConverterAlgorithm   = 1936876393
)
View Source
const (
	KAudioConverterApplicableEncodeBitRates          = 1634034290
	KAudioConverterApplicableEncodeSampleRates       = 1634038642
	KAudioConverterAvailableEncodeBitRates           = 1986355826
	KAudioConverterAvailableEncodeChannelLayoutTags  = 1634034540
	KAudioConverterAvailableEncodeSampleRates        = 1986360178
	KAudioConverterChannelMap                        = 1667788144
	KAudioConverterCodecQuality                      = 1667527029
	KAudioConverterCompressionMagicCookie            = 1668114275
	KAudioConverterCurrentInputStreamDescription     = 1633904996
	KAudioConverterCurrentOutputStreamDescription    = 1633906532
	KAudioConverterDecompressionMagicCookie          = 1684891491
	KAudioConverterEncodeAdjustableSampleRate        = 1634366322
	KAudioConverterEncodeBitRate                     = 1651663220
	KAudioConverterInputChannelLayout                = 1768123424
	KAudioConverterOutputChannelLayout               = 1868786720
	KAudioConverterPrimeInfo                         = 1886546285
	KAudioConverterPrimeMethod                       = 1886547309
	KAudioConverterPropertyBitDepthHint              = 1633903204
	KAudioConverterPropertyCalculateInputBufferSize  = 1667850867
	KAudioConverterPropertyCalculateOutputBufferSize = 1668244083
	KAudioConverterPropertyChannelMixMap             = 1835884912
	KAudioConverterPropertyFormatList                = 1718383476
	KAudioConverterPropertyInputCodecParameters      = 1768121456
	KAudioConverterPropertyMaximumInputPacketSize    = 2020175987
	KAudioConverterPropertyMaximumOutputPacketSize   = 2020569203
	KAudioConverterPropertyMinimumInputBufferSize    = 1835623027
	KAudioConverterPropertyMinimumOutputBufferSize   = 1836016243
	KAudioConverterPropertyOutputCodecParameters     = 1868784752
	KAudioConverterPropertyPerformDownmix            = 1684892024
	KAudioConverterPropertySettings                  = 1633906803
	KAudioConverterSampleRateConverterComplexity     = 1936876385
	KAudioConverterSampleRateConverterInitialPhase   = 1936876400
	KAudioConverterSampleRateConverterQuality        = 1936876401
)
View Source
const (
	KAudioConverterQuality_High   = 96
	KAudioConverterQuality_Low    = 32
	KAudioConverterQuality_Max    = 127
	KAudioConverterQuality_Medium = 64
	KAudioConverterQuality_Min    = 0
)
View Source
const (
	KAudioConverterSampleRateConverterComplexity_Linear       = 1818848869
	KAudioConverterSampleRateConverterComplexity_Mastering    = 1650553971
	KAudioConverterSampleRateConverterComplexity_MinimumPhase = 1835626096
	KAudioConverterSampleRateConverterComplexity_Normal       = 1852797549
)
View Source
const (
	KAudioDecoderComponentType    = 1633969507
	KAudioEncoderComponentType    = 1634037347
	KAudioUnityCodecComponentType = 1633903715
)
View Source
const (
	KAudioFile3GP2Type           = 862416946
	KAudioFile3GPType            = 862417008
	KAudioFileAAC_ADTSType       = 1633973363
	KAudioFileAC3Type            = 1633889587
	KAudioFileAIFCType           = 1095321155
	KAudioFileAIFFType           = 1095321158
	KAudioFileAMRType            = 1634562662
	KAudioFileBW64Type           = 1113011764
	KAudioFileCAFType            = 1667327590
	KAudioFileFLACType           = 1718378851
	KAudioFileLATMInLOASType     = 1819238771
	KAudioFileM4AType            = 1832149350
	KAudioFileM4BType            = 1832149606
	KAudioFileMP1Type            = 1297106737
	KAudioFileMP2Type            = 1297106738
	KAudioFileMP3Type            = 1297106739
	KAudioFileMPEG4Type          = 1836069990
	KAudioFileNextType           = 1315264596
	KAudioFileRF64Type           = 1380333108
	KAudioFileSoundDesigner2Type = 1399075430
	KAudioFileWAVEType           = 1463899717
	KAudioFileWave64Type         = 1463170150
)
View Source
const (
	KAudioFileComponent_AvailableFormatIDs                   = 1718446436
	KAudioFileComponent_AvailableStreamDescriptionsForFormat = 1935960420
	KAudioFileComponent_CanRead                              = 1668182628
	KAudioFileComponent_CanWrite                             = 1668183922
	KAudioFileComponent_ExtensionsForType                    = 1717926004
	KAudioFileComponent_FastDispatchTable                    = 1717855860
	KAudioFileComponent_FileTypeName                         = 1718906477
	KAudioFileComponent_HFSTypeCodesForType                  = 1718118003
	KAudioFileComponent_MIMETypesForType                     = 1718446445
	KAudioFileComponent_UTIsForType                          = 1718973545
)
View Source
const (
	KAudioFileCloseSelect                   = 6
	KAudioFileCountUserDataSelect           = 20
	KAudioFileCreateSelect                  = 1
	KAudioFileCreateURLSelect               = 25
	KAudioFileDataIsThisFormatSelect        = 17
	KAudioFileExtensionIsThisFormatSelect   = 15
	KAudioFileFileDataIsThisFormatSelect    = 27
	KAudioFileFileIsThisFormatSelect        = 16
	KAudioFileGetGlobalInfoSelect           = 19
	KAudioFileGetGlobalInfoSizeSelect       = 18
	KAudioFileGetPropertyInfoSelect         = 12
	KAudioFileGetPropertySelect             = 13
	KAudioFileGetUserDataAtOffsetSelect     = 30
	KAudioFileGetUserDataSelect             = 22
	KAudioFileGetUserDataSize64Select       = 29
	KAudioFileGetUserDataSizeSelect         = 21
	KAudioFileInitializeSelect              = 3
	KAudioFileInitializeWithCallbacksSelect = 5
	KAudioFileOpenSelect                    = 2
	KAudioFileOpenURLSelect                 = 26
	KAudioFileOpenWithCallbacksSelect       = 4
	KAudioFileOptimizeSelect                = 7
	KAudioFileReadBytesSelect               = 8
	KAudioFileReadPacketDataSelect          = 28
	KAudioFileReadPacketsSelect             = 10
	KAudioFileRemoveUserDataSelect          = 24
	KAudioFileSetPropertySelect             = 14
	KAudioFileSetUserDataSelect             = 23
	KAudioFileWriteBytesSelect              = 9
	KAudioFileWritePacketsSelect            = 11
)
View Source
const (
	KAudioFileGlobalInfo_AllExtensions                        = 1634498676
	KAudioFileGlobalInfo_AllHFSTypeCodes                      = 1634231923
	KAudioFileGlobalInfo_AllMIMETypes                         = 1634560365
	KAudioFileGlobalInfo_AllUTIs                              = 1635087465
	KAudioFileGlobalInfo_AvailableFormatIDs                   = 1718446436
	KAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat = 1935960420
	KAudioFileGlobalInfo_ExtensionsForType                    = 1717926004
	KAudioFileGlobalInfo_FileTypeName                         = 1718906477
	KAudioFileGlobalInfo_HFSTypeCodesForType                  = 1718118003
	KAudioFileGlobalInfo_MIMETypesForType                     = 1718446445
	KAudioFileGlobalInfo_ReadableTypes                        = 1634103910
	KAudioFileGlobalInfo_TypesForExtension                    = 1952807028
	KAudioFileGlobalInfo_TypesForHFSTypeCode                  = 1952999027
	KAudioFileGlobalInfo_TypesForMIMEType                     = 1953327469
	KAudioFileGlobalInfo_TypesForUTI                          = 1953854569
	KAudioFileGlobalInfo_UTIsForType                          = 1718973545
	KAudioFileGlobalInfo_WritableTypes                        = 1634105190
)
View Source
const (
	KAudioFileLoopDirection_Backward           = 3
	KAudioFileLoopDirection_Forward            = 1
	KAudioFileLoopDirection_ForwardAndBackward = 2
	KAudioFileLoopDirection_NoLooping          = 0
)
View Source
const (
	KAudioFilePropertyAlbumArtwork                   = 1633776244
	KAudioFilePropertyAudioDataByteCount             = 1650683508
	KAudioFilePropertyAudioDataPacketCount           = 1885564532
	KAudioFilePropertyAudioTrackCount                = 1635017588
	KAudioFilePropertyBitRate                        = 1651663220
	KAudioFilePropertyByteToPacket                   = 1652125803
	KAudioFilePropertyChannelLayout                  = 1668112752
	KAudioFilePropertyChunkIDs                       = 1667787108
	KAudioFilePropertyDataFormat                     = 1684434292
	KAudioFilePropertyDataFormatName                 = 1718512997
	KAudioFilePropertyDataOffset                     = 1685022310
	KAudioFilePropertyDeferSizeUpdates               = 1685289589
	KAudioFilePropertyEstimatedDuration              = 1701082482
	KAudioFilePropertyFileFormat                     = 1717988724
	KAudioFilePropertyFormatList                     = 1718383476
	KAudioFilePropertyFrameToPacket                  = 1718775915
	KAudioFilePropertyID3Tag                         = 1768174452
	KAudioFilePropertyID3TagOffset                   = 1768174447
	KAudioFilePropertyInfoDictionary                 = 1768842863
	KAudioFilePropertyIsOptimized                    = 1869640813
	KAudioFilePropertyMagicCookieData                = 1835493731
	KAudioFilePropertyMarkerList                     = 1835756659
	KAudioFilePropertyMaximumPacketSize              = 1886616165
	KAudioFilePropertyNextIndependentPacket          = 1852403300
	KAudioFilePropertyPacketRangeByteCountUpperBound = 1886549346
	KAudioFilePropertyPacketSizeUpperBound           = 1886090594
	KAudioFilePropertyPacketTableInfo                = 1886283375
	KAudioFilePropertyPacketToByte                   = 1886085753
	KAudioFilePropertyPacketToDependencyInfo         = 1886086256
	KAudioFilePropertyPacketToFrame                  = 1886086770
	KAudioFilePropertyPacketToRollDistance           = 1886089836
	KAudioFilePropertyPreviousIndependentPacket      = 1885957732
	KAudioFilePropertyRegionList                     = 1919380595
	KAudioFilePropertyReserveDuration                = 1920168566
	KAudioFilePropertyRestrictsRandomAccess          = 1920098672
	KAudioFilePropertySourceBitDepth                 = 1935832164
	KAudioFilePropertyUseAudioTrack                  = 1969321067
)
View Source
const (
	KAudioFileStreamError_BadPropertySize          = 561211770
	KAudioFileStreamError_DataUnavailable          = 1836020325
	KAudioFileStreamError_DiscontinuityCantRecover = 1685283617
	KAudioFileStreamError_IllegalOperation         = 1852797029
	KAudioFileStreamError_InvalidFile              = 1685348671
	KAudioFileStreamError_InvalidPacketOffset      = 1885563711
	KAudioFileStreamError_NotOptimized             = 1869640813
	KAudioFileStreamError_UnspecifiedError         = 2003334207
	KAudioFileStreamError_UnsupportedDataFormat    = 1718449215
	KAudioFileStreamError_UnsupportedFileType      = 1954115647
	KAudioFileStreamError_UnsupportedProperty      = 1886681407
	KAudioFileStreamError_ValueUnknown             = 1970170687
)
View Source
const (
	KAudioFileStreamProperty_AudioDataByteCount        = 1650683508
	KAudioFileStreamProperty_AudioDataPacketCount      = 1885564532
	KAudioFileStreamProperty_AverageBytesPerPacket     = 1633841264
	KAudioFileStreamProperty_BitRate                   = 1651663220
	KAudioFileStreamProperty_ByteToPacket              = 1652125803
	KAudioFileStreamProperty_ChannelLayout             = 1668112752
	KAudioFileStreamProperty_DataFormat                = 1684434292
	KAudioFileStreamProperty_DataOffset                = 1685022310
	KAudioFileStreamProperty_FileFormat                = 1717988724
	KAudioFileStreamProperty_FormatList                = 1718383476
	KAudioFileStreamProperty_FrameToPacket             = 1718775915
	KAudioFileStreamProperty_InfoDictionary            = 1768842863
	KAudioFileStreamProperty_MagicCookieData           = 1835493731
	KAudioFileStreamProperty_MaximumPacketSize         = 1886616165
	KAudioFileStreamProperty_NextIndependentPacket     = 1852403300
	KAudioFileStreamProperty_PacketSizeUpperBound      = 1886090594
	KAudioFileStreamProperty_PacketTableInfo           = 1886283375
	KAudioFileStreamProperty_PacketToByte              = 1886085753
	KAudioFileStreamProperty_PacketToDependencyInfo    = 1886086256
	KAudioFileStreamProperty_PacketToFrame             = 1886086770
	KAudioFileStreamProperty_PacketToRollDistance      = 1886089836
	KAudioFileStreamProperty_PreviousIndependentPacket = 1885957732
	KAudioFileStreamProperty_ReadyToProducePackets     = 1919247481
	KAudioFileStreamProperty_RestrictsRandomAccess     = 1920098672
)
View Source
const (
	KAudioFileBadPropertySizeError           = 561211770
	KAudioFileDoesNotAllow64BitDataSizeError = 1868981823
	KAudioFileEndOfFileError                 = -39
	KAudioFileFileNotFoundError              = -43
	KAudioFileInvalidChunkError              = 1667787583
	KAudioFileInvalidFileError               = 1685348671
	KAudioFileInvalidPacketDependencyError   = 1684369471
	KAudioFileInvalidPacketOffsetError       = 1885563711
	KAudioFileNotOpenError                   = -38
	KAudioFileNotOptimizedError              = 1869640813
	KAudioFileOperationNotSupportedError     = 1869627199
	KAudioFilePermissionsError               = 1886547263
	KAudioFilePositionError                  = -40
	KAudioFileUnspecifiedError               = 2003334207
	KAudioFileUnsupportedDataFormatError     = 1718449215
	KAudioFileUnsupportedFileTypeError       = 1954115647
	KAudioFileUnsupportedPropertyError       = 1886681407
)
View Source
const (
	KAudioFormatProperty_ASBDFromESDS                     = 1702064996
	KAudioFormatProperty_ASBDFromMPEGPacket               = 1633971568
	KAudioFormatProperty_AreChannelLayoutsEquivalent      = 1667786097
	KAudioFormatProperty_AvailableDecodeNumberChannels    = 1633971811
	KAudioFormatProperty_AvailableEncodeBitRates          = 1634034290
	KAudioFormatProperty_AvailableEncodeChannelLayoutTags = 1634034540
	KAudioFormatProperty_AvailableEncodeNumberChannels    = 1635151459
	KAudioFormatProperty_AvailableEncodeSampleRates       = 1634038642
	KAudioFormatProperty_BalanceFade                      = 1650551910
	KAudioFormatProperty_BitmapForLayoutTag               = 1651340391
	KAudioFormatProperty_ChannelLayoutForBitmap           = 1668116578
	KAudioFormatProperty_ChannelLayoutForTag              = 1668116588
	KAudioFormatProperty_ChannelLayoutFromESDS            = 1702060908
	KAudioFormatProperty_ChannelLayoutHash                = 1667786849
	KAudioFormatProperty_ChannelLayoutName                = 1819242093
	KAudioFormatProperty_ChannelLayoutSimpleName          = 1819504237
	KAudioFormatProperty_ChannelMap                       = 1667788144
	KAudioFormatProperty_ChannelName                      = 1668178285
	KAudioFormatProperty_ChannelShortName                 = 1668509293
	KAudioFormatProperty_DecodeFormatIDs                  = 1633904998
	KAudioFormatProperty_Decoders                         = 1635148901
	KAudioFormatProperty_EncodeFormatIDs                  = 1633906534
	KAudioFormatProperty_Encoders                         = 1635149166
	KAudioFormatProperty_FirstPlayableFormatFromList      = 1718642284
	KAudioFormatProperty_FormatEmploysDependentPackets    = 1717855600
	KAudioFormatProperty_FormatInfo                       = 1718449257
	KAudioFormatProperty_FormatIsEncrypted                = 1668446576
	KAudioFormatProperty_FormatIsExternallyFramed         = 1717925990
	KAudioFormatProperty_FormatIsVBR                      = 1719034482
	KAudioFormatProperty_FormatList                       = 1718383476
	KAudioFormatProperty_FormatName                       = 1718509933
	KAudioFormatProperty_ID3TagSize                       = 1768174451
	KAudioFormatProperty_ID3TagToDictionary               = 1768174436
	KAudioFormatProperty_MatrixMixMap                     = 1835884912
	KAudioFormatProperty_NumberOfChannelsForLayout        = 1852008557
	KAudioFormatProperty_OutputFormatList                 = 1868983411
	KAudioFormatProperty_PanningMatrix                    = 1885433453
	KAudioFormatProperty_TagForChannelLayout              = 1668116596
	KAudioFormatProperty_TagsForNumberOfChannels          = 1952540515
	KAudioFormatProperty_ValidateChannelLayout            = 1986093932
)
View Source
const (
	KAudioFormatBadPropertySizeError       = 561211770
	KAudioFormatBadSpecifierSizeError      = 561213539
	KAudioFormatUnknownFormatError         = 560360820
	KAudioFormatUnspecifiedError           = 2003329396
	KAudioFormatUnsupportedDataFormatError = 1718449215
	KAudioFormatUnsupportedPropertyError   = 1886547824
)
View Source
const (
	KAudioHardwareServiceDeviceProperty_VirtualMainBalance   = 1986880099
	KAudioHardwareServiceDeviceProperty_VirtualMainVolume    = 1986885219
	KAudioHardwareServiceDeviceProperty_VirtualMasterBalance = 1986880099
	KAudioHardwareServiceDeviceProperty_VirtualMasterVolume  = 1986885219
	KAudioHardwareServiceProperty_ServiceRestarted           = 1936880500
)
View Source
const (
	KAudioOutputUnitProperty_ChannelMap            = 2002
	KAudioOutputUnitProperty_CurrentDevice         = 2000
	KAudioOutputUnitProperty_EnableIO              = 2003
	KAudioOutputUnitProperty_HasIO                 = 2006
	KAudioOutputUnitProperty_IsRunning             = 2001
	KAudioOutputUnitProperty_OSWorkgroup           = 2015
	KAudioOutputUnitProperty_SetInputCallback      = 2005
	KAudioOutputUnitProperty_StartTime             = 2004
	KAudioOutputUnitProperty_StartTimestampsAtZero = 2007
)
View Source
const (
	KAudioOutputUnitProperty_HostReceivesRemoteControlEvents = 2011
	KAudioOutputUnitProperty_HostTransportState              = 2013
	KAudioOutputUnitProperty_MIDICallbacks                   = 2010
	KAudioOutputUnitProperty_NodeComponentDescription        = 2014
	KAudioOutputUnitProperty_RemoteControlToHost             = 2012
)
View Source
const (
	KAudioOutputUnitRange       = 512
	KAudioOutputUnitStartSelect = 513
	KAudioOutputUnitStopSelect  = 514
)
View Source
const (
	KAudioQueueErr_BufferEmpty          = -66686
	KAudioQueueErr_BufferEnqueuedTwice  = -66666
	KAudioQueueErr_BufferInQueue        = -66679
	KAudioQueueErr_CannotStart          = -66681
	KAudioQueueErr_CannotStartYet       = -66665
	KAudioQueueErr_CodecNotFound        = -66673
	KAudioQueueErr_DisposalPending      = -66685
	KAudioQueueErr_EnqueueDuringReset   = -66632
	KAudioQueueErr_InvalidBuffer        = -66687
	KAudioQueueErr_InvalidCodecAccess   = -66672
	KAudioQueueErr_InvalidDevice        = -66680
	KAudioQueueErr_InvalidOfflineMode   = -66626
	KAudioQueueErr_InvalidParameter     = -66682
	KAudioQueueErr_InvalidProperty      = -66684
	KAudioQueueErr_InvalidPropertySize  = -66683
	KAudioQueueErr_InvalidPropertyValue = -66675
	KAudioQueueErr_InvalidQueueType     = -66677
	KAudioQueueErr_InvalidRunState      = -66678
	KAudioQueueErr_InvalidTapContext    = -66669
	KAudioQueueErr_InvalidTapType       = -66667
	KAudioQueueErr_Permissions          = -66676
	KAudioQueueErr_PrimeTimedOut        = -66674
	KAudioQueueErr_QueueInvalidated     = -66671
	KAudioQueueErr_RecordUnderrun       = -66668
	KAudioQueueErr_TooManyTaps          = -66670
)
View Source
const (
	KAudioQueueParam_Pan            = 13
	KAudioQueueParam_Pitch          = 3
	KAudioQueueParam_PlayRate       = 2
	KAudioQueueParam_Volume         = 1
	KAudioQueueParam_VolumeRampTime = 4
)
View Source
const (
	KAudioQueueDeviceProperty_NumberChannels    = 1634821219
	KAudioQueueDeviceProperty_SampleRate        = 1634825074
	KAudioQueueProperty_ChannelLayout           = 1634820972
	KAudioQueueProperty_ConverterError          = 1902343781
	KAudioQueueProperty_CurrentDevice           = 1634820964
	KAudioQueueProperty_CurrentLevelMeter       = 1634823542
	KAudioQueueProperty_CurrentLevelMeterDB     = 1634823524
	KAudioQueueProperty_DecodeBufferSizeFrames  = 1684234854
	KAudioQueueProperty_EnableLevelMetering     = 1634823525
	KAudioQueueProperty_EnableTimePitch         = 1902081136
	KAudioQueueProperty_IsRunning               = 1634824814
	KAudioQueueProperty_MagicCookie             = 1634823523
	KAudioQueueProperty_MaximumOutputPacketSize = 2020569203
	KAudioQueueProperty_StreamDescription       = 1634821748
	KAudioQueueProperty_TimePitchAlgorithm      = 1903456353
	KAudioQueueProperty_TimePitchBypass         = 1903456354
)
View Source
const (
	KAudioQueueTimePitchAlgorithm_Spectral   = 1936745827
	KAudioQueueTimePitchAlgorithm_TimeDomain = 1953064047
	KAudioQueueTimePitchAlgorithm_Varispeed  = 1987276900
)
View Source
const (
	KAudioServicesBadPropertySizeError                    = 561211770
	KAudioServicesBadSpecifierSizeError                   = 561213539
	KAudioServicesNoError                                 = 0
	KAudioServicesSystemSoundClientTimedOutError          = -1501
	KAudioServicesSystemSoundExceededMaximumDurationError = -1502
	KAudioServicesSystemSoundUnspecifiedError             = -1500
	KAudioServicesUnsupportedPropertyError                = 1886681407
)
View Source
const (
	KAudioServicesPropertyCompletePlaybackIfAppDies = 1768318057
	KAudioServicesPropertyIsUISound                 = 1769174377
)
View Source
const (
	KAudioSessionBeginInterruption = 1
	KAudioSessionEndInterruption   = 0
)
View Source
const (
	KAudioSessionCategory_AmbientSound     = 1634558569
	KAudioSessionCategory_AudioProcessing  = 1886547811
	KAudioSessionCategory_MediaPlayback    = 1835361385
	KAudioSessionCategory_PlayAndRecord    = 1886151026
	KAudioSessionCategory_RecordAudio      = 1919247201
	KAudioSessionCategory_SoloAmbientSound = 1936682095
)
View Source
const (
	KAudioSessionCategory_LiveAudio                 = 1818850917
	KAudioSessionCategory_UserInterfaceSoundEffects = 1969841784
)
View Source
const (
	KAudioSessionInterruptionType_ShouldNotResume = 561148781
	KAudioSessionInterruptionType_ShouldResume    = 1769108333
)
View Source
const (
	KAudioSessionMode_Default        = 1684434036
	KAudioSessionMode_GameChat       = 1735222132
	KAudioSessionMode_Measurement    = 1836281204
	KAudioSessionMode_VideoRecording = 1987208036
	KAudioSessionMode_VoiceChat      = 1986225012
)
View Source
const (
	KAudioServicesNoHardwareError         = 1852794999
	KAudioSessionAlreadyInitialized       = 1768843636
	KAudioSessionBadPropertySizeError     = 561211770
	KAudioSessionIncompatibleCategory     = 560161140
	KAudioSessionInitializationError      = 1768843583
	KAudioSessionNoCategorySet            = 1063477620
	KAudioSessionNoError                  = 0
	KAudioSessionNotActiveError           = 560030580
	KAudioSessionNotInitialized           = 560557673
	KAudioSessionUnspecifiedError         = 2003329396
	KAudioSessionUnsupportedPropertyError = 1886681407
)
View Source
const (
	KAudioSessionOverrideAudioRoute_None    = 0
	KAudioSessionOverrideAudioRoute_Speaker = 1936747378
)
View Source
const (
	KAudioSessionProperty_AudioCategory                        = 1633902964
	KAudioSessionProperty_AudioInputAvailable                  = 1634296182
	KAudioSessionProperty_AudioRouteChange                     = 1919902568
	KAudioSessionProperty_AudioRouteDescription                = 1668440434
	KAudioSessionProperty_CurrentHardwareIOBufferDuration      = 1667785316
	KAudioSessionProperty_CurrentHardwareInputLatency          = 1667853428
	KAudioSessionProperty_CurrentHardwareInputNumberChannels   = 1667787107
	KAudioSessionProperty_CurrentHardwareOutputLatency         = 1668246644
	KAudioSessionProperty_CurrentHardwareOutputNumberChannels  = 1667788643
	KAudioSessionProperty_CurrentHardwareOutputVolume          = 1667788662
	KAudioSessionProperty_CurrentHardwareSampleRate            = 1667789682
	KAudioSessionProperty_InputGainAvailable                   = 1768382838
	KAudioSessionProperty_InputGainScalar                      = 1768387427
	KAudioSessionProperty_InputSource                          = 1769173603
	KAudioSessionProperty_InputSources                         = 1936876403
	KAudioSessionProperty_InterruptionType                     = 1954115685
	KAudioSessionProperty_Mode                                 = 1836016741
	KAudioSessionProperty_OtherAudioIsPlaying                  = 1869899890
	KAudioSessionProperty_OtherMixableAudioShouldDuck          = 1685414763
	KAudioSessionProperty_OutputDestination                    = 1868854132
	KAudioSessionProperty_OutputDestinations                   = 1685288051
	KAudioSessionProperty_OverrideAudioRoute                   = 1870033508
	KAudioSessionProperty_OverrideCategoryDefaultToSpeaker     = 1668509803
	KAudioSessionProperty_OverrideCategoryEnableBluetoothInput = 1667394677
	KAudioSessionProperty_OverrideCategoryMixWithOthers        = 1668114808
	KAudioSessionProperty_PreferredHardwareIOBufferDuration    = 1768907364
	KAudioSessionProperty_PreferredHardwareSampleRate          = 1752658802
	KAudioSessionProperty_ServerDied                           = 1684628836
)
View Source
const (
	KAudioSessionRouteChangeReason_CategoryChange             = 3
	KAudioSessionRouteChangeReason_NewDeviceAvailable         = 1
	KAudioSessionRouteChangeReason_NoSuitableRouteForCategory = 7
	KAudioSessionRouteChangeReason_OldDeviceUnavailable       = 2
	KAudioSessionRouteChangeReason_Override                   = 4
	KAudioSessionRouteChangeReason_RouteConfigurationChange   = 8
	KAudioSessionRouteChangeReason_Unknown                    = 0
	KAudioSessionRouteChangeReason_WakeFromSleep              = 6
)
View Source
const (
	KAudioToolboxErr_CannotDoInCurrentContext = -10863
	KAudioToolboxErr_EndOfTrack               = -10857
	KAudioToolboxErr_IllegalTrackDestination  = -10855
	KAudioToolboxErr_InvalidEventType         = -10853
	KAudioToolboxErr_InvalidPlayerState       = -10852
	KAudioToolboxErr_InvalidSequenceType      = -10846
	KAudioToolboxErr_NoSequence               = -10854
	KAudioToolboxErr_StartOfTrack             = -10856
	KAudioToolboxErr_TrackIndexError          = -10859
	KAudioToolboxErr_TrackNotFound            = -10858
	KAudioToolboxError_NoTrackDestination     = -66720
)
View Source
const (
	KAudioUnitErr_IllegalInstrument      = -10873
	KAudioUnitErr_InstrumentTypeNotFound = -10872
)
View Source
const (
	KAudioComponentErr_InstanceInvalidated     = -66749
	KAudioComponentErr_InstanceTimedOut        = -66754
	KAudioUnitErr_CannotDoInCurrentContext     = -10863
	KAudioUnitErr_ComponentManagerNotSupported = -66740
	KAudioUnitErr_ExtensionNotFound            = -66744
	KAudioUnitErr_FailedInitialization         = -10875
	KAudioUnitErr_FileNotSpecified             = -10869
	KAudioUnitErr_FormatNotSupported           = -10868
	KAudioUnitErr_Initialized                  = -10849
	KAudioUnitErr_InvalidElement               = -10877
	KAudioUnitErr_InvalidFile                  = -10871
	KAudioUnitErr_InvalidFilePath              = -66742
	KAudioUnitErr_InvalidOfflineRender         = -10848
	KAudioUnitErr_InvalidParameter             = -10878
	KAudioUnitErr_InvalidParameterValue        = -66743
	KAudioUnitErr_InvalidProperty              = -10879
	KAudioUnitErr_InvalidPropertyValue         = -10851
	KAudioUnitErr_InvalidScope                 = -10866
	KAudioUnitErr_MIDIOutputBufferFull         = -66753
	KAudioUnitErr_MissingKey                   = -66741
	KAudioUnitErr_MultipleVoiceProcessors      = -66635
	KAudioUnitErr_NoConnection                 = -10876
	KAudioUnitErr_PropertyNotInUse             = -10850
	KAudioUnitErr_PropertyNotWritable          = -10865
	KAudioUnitErr_RenderTimeout                = -66745
	KAudioUnitErr_TooManyFramesToProcess       = -10874
	KAudioUnitErr_Unauthorized                 = -10847
	KAudioUnitErr_Uninitialized                = -10867
	KAudioUnitErr_UnknownFileType              = -10870
)
View Source
const (
	KAudioUnitMigrateProperty_FromPlugin    = 4000
	KAudioUnitMigrateProperty_OldAutomation = 4001
)
View Source
const (
	KAudioUnitOfflineProperty_InputSize             = 3020
	KAudioUnitOfflineProperty_OutputSize            = 3021
	KAudioUnitOfflineProperty_PreflightName         = 3024
	KAudioUnitOfflineProperty_PreflightRequirements = 3023
	KAudioUnitOfflineProperty_StartOffset           = 3022
)
View Source
const (
	KAudioUnitParameterFlag_Global = 1
	KAudioUnitParameterFlag_Group  = 8
	KAudioUnitParameterFlag_Input  = 2
	KAudioUnitParameterFlag_Output = 4
)
View Source
const (
	KAudioUnitProperty_3DMixerAttenuationCurve = 3013
	KAudioUnitProperty_3DMixerDistanceAtten    = 3004
	KAudioUnitProperty_3DMixerDistanceParams   = 3010
	KAudioUnitProperty_3DMixerRenderingFlags   = 3003
	KAudioUnitProperty_DopplerShift            = 3002
	KAudioUnitProperty_ReverbPreset            = 3012
)
View Source
const (
	KAudioUnitProperty_AddParameterMIDIMapping    = 42
	KAudioUnitProperty_AllParameterMIDIMappings   = 41
	KAudioUnitProperty_HotMapParameterMIDIMapping = 44
	KAudioUnitProperty_RemoveParameterMIDIMapping = 43
)
View Source
const (
	KAudioUnitProperty_AUHostIdentifier            = 46
	KAudioUnitProperty_AudioChannelLayout          = 19
	KAudioUnitProperty_AudioUnitMIDIProtocol       = 64
	KAudioUnitProperty_BypassEffect                = 21
	KAudioUnitProperty_CPULoad                     = 6
	KAudioUnitProperty_ClassInfo                   = 0
	KAudioUnitProperty_ClassInfoFromDocument       = 50
	KAudioUnitProperty_CocoaUI                     = 31
	KAudioUnitProperty_ContextName                 = 25
	KAudioUnitProperty_DependentParameters         = 45
	KAudioUnitProperty_ElementCount                = 11
	KAudioUnitProperty_ElementName                 = 30
	KAudioUnitProperty_FactoryPresets              = 24
	KAudioUnitProperty_FastDispatch                = 5
	KAudioUnitProperty_FrequencyResponse           = 52
	KAudioUnitProperty_GetUIComponentList          = 18
	KAudioUnitProperty_HostCallbacks               = 27
	KAudioUnitProperty_HostMIDIProtocol            = 65
	KAudioUnitProperty_IconLocation                = 39
	KAudioUnitProperty_InPlaceProcessing           = 29
	KAudioUnitProperty_InputSamplesInOutput        = 49
	KAudioUnitProperty_LastRenderError             = 22
	KAudioUnitProperty_LastRenderSampleTime        = 61
	KAudioUnitProperty_Latency                     = 12
	KAudioUnitProperty_LoadedOutOfProcess          = 62
	KAudioUnitProperty_MIDIOutputBufferSizeHint    = 66
	KAudioUnitProperty_MIDIOutputCallback          = 48
	KAudioUnitProperty_MIDIOutputCallbackInfo      = 47
	KAudioUnitProperty_MIDIOutputEventListCallback = 63
	KAudioUnitProperty_MakeConnection              = 1
	KAudioUnitProperty_MaximumFramesPerSlice       = 14
	KAudioUnitProperty_NickName                    = 54
	KAudioUnitProperty_OfflineRender               = 37
	KAudioUnitProperty_ParameterClumpName          = 35
	KAudioUnitProperty_ParameterHistoryInfo        = 53
	KAudioUnitProperty_ParameterIDName             = 34
	KAudioUnitProperty_ParameterInfo               = 4
	KAudioUnitProperty_ParameterList               = 3
	KAudioUnitProperty_ParameterStringFromValue    = 33
	KAudioUnitProperty_ParameterValueFromString    = 38
	KAudioUnitProperty_ParameterValueStrings       = 16
	KAudioUnitProperty_ParametersForOverview       = 57
	KAudioUnitProperty_PresentPreset               = 36
	KAudioUnitProperty_PresentationLatency         = 40
	KAudioUnitProperty_RenderContextObserver       = 60
	KAudioUnitProperty_RenderQuality               = 26
	KAudioUnitProperty_RequestViewController       = 56
	KAudioUnitProperty_SampleRate                  = 2
	KAudioUnitProperty_SetExternalBuffer           = 15
	KAudioUnitProperty_SetRenderCallback           = 23
	KAudioUnitProperty_ShouldAllocateBuffer        = 51
	KAudioUnitProperty_StreamFormat                = 8
	KAudioUnitProperty_SupportedChannelLayoutTags  = 32
	KAudioUnitProperty_SupportedNumChannels        = 13
	KAudioUnitProperty_SupportsMPE                 = 58
	KAudioUnitProperty_TailTime                    = 20
)
View Source
const (
	KAudioUnitProperty_DeferredRendererExtraLatency = 3321
	KAudioUnitProperty_DeferredRendererPullSize     = 3320
	KAudioUnitProperty_DeferredRendererWaitFrames   = 3322
)
View Source
const (
	KAudioUnitProperty_InputAnchorTimeStamp = 3016
	KAudioUnitProperty_MatrixDimensions     = 3009
	KAudioUnitProperty_MatrixLevels         = 3006
	KAudioUnitProperty_MeterClipping        = 3011
	KAudioUnitProperty_MeteringMode         = 3007
)
View Source
const (
	KAudioUnitProperty_IsInterAppConnected        = 101
	KAudioUnitProperty_PeerURL                    = 102
	KAudioUnitProperty_RemoteControlEventListener = 100
)
View Source
const (
	KAudioUnitProperty_ReverbRoomType                              = 10
	KAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF = 3116
	KAudioUnitProperty_SpatialMixerAttenuationCurve                = 3013
	KAudioUnitProperty_SpatialMixerDistanceParams                  = 3010
	KAudioUnitProperty_SpatialMixerEnableHeadTracking              = 3111
	KAudioUnitProperty_SpatialMixerOutputType                      = 3100
	KAudioUnitProperty_SpatialMixerPersonalizedHRTFMode            = 3113
	KAudioUnitProperty_SpatialMixerPointSourceInHeadMode           = 3103
	KAudioUnitProperty_SpatialMixerRenderingFlags                  = 3003
	KAudioUnitProperty_SpatialMixerSourceMode                      = 3005
	KAudioUnitProperty_SpatializationAlgorithm                     = 3000
	KAudioUnitProperty_UsesInternalReverb                          = 1005
)
View Source
const (
	KAudioOfflineUnitProperty_InputSize   = 3020
	KAudioOfflineUnitProperty_OutputSize  = 3021
	KAudioUnitProperty_BusCount           = 11
	KAudioUnitProperty_CurrentPreset      = 28
	KAudioUnitProperty_MIDIControlMapping = 17
	KAudioUnitProperty_ParameterValueName = 33
	KAudioUnitProperty_SRCAlgorithm       = 9
)
View Source
const (
	KAudioUnitProperty_CurrentPlayTime        = 3302
	KAudioUnitProperty_ScheduleAudioSlice     = 3300
	KAudioUnitProperty_ScheduleStartTimeStamp = 3301
)
View Source
const (
	KAudioUnitProperty_ScheduledFileBufferSizeFrames = 3313
	KAudioUnitProperty_ScheduledFileIDs              = 3310
	KAudioUnitProperty_ScheduledFileNumberBuffers    = 3314
	KAudioUnitProperty_ScheduledFilePrime            = 3312
	KAudioUnitProperty_ScheduledFileRegion           = 3311
)
View Source
const (
	KAudioUnitAddPropertyListenerSelect                = 10
	KAudioUnitAddRenderNotifySelect                    = 15
	KAudioUnitComplexRenderSelect                      = 19
	KAudioUnitGetParameterSelect                       = 6
	KAudioUnitGetPropertyInfoSelect                    = 3
	KAudioUnitGetPropertySelect                        = 4
	KAudioUnitInitializeSelect                         = 1
	KAudioUnitProcessMultipleSelect                    = 21
	KAudioUnitProcessSelect                            = 20
	KAudioUnitRange                                    = 0
	KAudioUnitRemovePropertyListenerSelect             = 11
	KAudioUnitRemovePropertyListenerWithUserDataSelect = 18
	KAudioUnitRemoveRenderNotifySelect                 = 16
	KAudioUnitRenderSelect                             = 14
	KAudioUnitResetSelect                              = 9
	KAudioUnitScheduleParametersSelect                 = 17
	KAudioUnitSetParameterSelect                       = 7
	KAudioUnitSetPropertySelect                        = 5
	KAudioUnitUninitializeSelect                       = 2
)
View Source
const (
	KAudioUnitSRCAlgorithm_MediumQuality = 1668510307
	KAudioUnitSRCAlgorithm_Polyphase     = 1886350457
)
View Source
const (
	KAudioUnitSampleRateConverterComplexity_Linear    = 1818848869
	KAudioUnitSampleRateConverterComplexity_Mastering = 1650553971
	KAudioUnitSampleRateConverterComplexity_Normal    = 1852797549
)
View Source
const (
	KAudioUnitScope_Global    = 0
	KAudioUnitScope_Group     = 3
	KAudioUnitScope_Input     = 1
	KAudioUnitScope_Layer     = 6
	KAudioUnitScope_LayerItem = 7
	KAudioUnitScope_Note      = 5
	KAudioUnitScope_Output    = 2
	KAudioUnitScope_Part      = 4
)
View Source
const (
	KAudioUnitSubType_AUAudioMix       = 1634560376
	KAudioUnitSubType_AUConverter      = 1668247158
	KAudioUnitSubType_AUiPodTimeOther  = 1768977519
	KAudioUnitSubType_DeferredRenderer = 1684366962
	KAudioUnitSubType_Merger           = 1835364967
	KAudioUnitSubType_MultiSplitter    = 1836281964
	KAudioUnitSubType_NewTimePitch     = 1853191280
	KAudioUnitSubType_RoundTripAAC     = 1918984547
	KAudioUnitSubType_Splitter         = 1936747636
	KAudioUnitSubType_Varispeed        = 1986097769
)
View Source
const (
	KAudioUnitSubType_DLSSynth  = 1684828960
	KAudioUnitSubType_MIDISynth = 1836284270
	KAudioUnitSubType_Sampler   = 1935764848
)
View Source
const (
	KAudioUnitSubType_GenericOutput     = 1734700658
	KAudioUnitSubType_VoiceProcessingIO = 1987078511
)
View Source
const (
	KAudioUnitSubType_AUFilter            = 1718185076
	KAudioUnitSubType_GraphicEQ           = 1735550321
	KAudioUnitSubType_MatrixReverb        = 1836213622
	KAudioUnitSubType_MultiBandCompressor = 1835232624
	KAudioUnitSubType_NetSend             = 1853058660
	KAudioUnitSubType_Pitch               = 1953329268
	KAudioUnitSubType_RogerBeep           = 1919903602
)
View Source
const (
	KAudioUnitSubType_DefaultOutput = 1684366880
	KAudioUnitSubType_HALOutput     = 1634230636
	KAudioUnitSubType_SystemOutput  = 1937339168
)
View Source
const (
	KAudioUnitSubType_MatrixMixer       = 1836608888
	KAudioUnitSubType_MultiChannelMixer = 1835232632
	KAudioUnitSubType_SpatialMixer      = 862217581
)
View Source
const (
	KAudioUnitSubType_AudioFilePlayer      = 1634103404
	KAudioUnitSubType_NetReceive           = 1852990326
	KAudioUnitSubType_ScheduledSoundPlayer = 1936945260
)
View Source
const (
	KAudioUnitSubType_AUSoundIsolation  = 1987012979
	KAudioUnitSubType_BandPassFilter    = 1651532147
	KAudioUnitSubType_Delay             = 1684368505
	KAudioUnitSubType_Distortion        = 1684632436
	KAudioUnitSubType_DynamicsProcessor = 1684237680
	KAudioUnitSubType_HighPassFilter    = 1752195443
	KAudioUnitSubType_HighShelfFilter   = 1752393830
	KAudioUnitSubType_LowPassFilter     = 1819304307
	KAudioUnitSubType_LowShelfFilter    = 1819502694
	KAudioUnitSubType_NBandEQ           = 1851942257
	KAudioUnitSubType_ParametricEQ      = 1886217585
	KAudioUnitSubType_PeakLimiter       = 1819112562
	KAudioUnitSubType_Reverb2           = 1920361010
	KAudioUnitSubType_SampleDelay       = 1935961209
)
View Source
const (
	KAudioUnitSubType_HRTFPanner          = 1752331366
	KAudioUnitSubType_SoundFieldPanner    = 1634558569
	KAudioUnitSubType_SphericalHeadPanner = 1936746610
	KAudioUnitSubType_VectorPanner        = 1986158963
)
View Source
const (
	KAudioUnitSubType_3DMixer     = 862219640
	KAudioUnitSubType_StereoMixer = 1936554098
)
View Source
const (
	KAudioUnitType_Effect            = 1635083896
	KAudioUnitType_FormatConverter   = 1635083875
	KAudioUnitType_Generator         = 1635084142
	KAudioUnitType_MIDIProcessor     = 1635085673
	KAudioUnitType_Mixer             = 1635085688
	KAudioUnitType_MusicDevice       = 1635085685
	KAudioUnitType_MusicEffect       = 1635085670
	KAudioUnitType_OfflineEffect     = 1635086188
	KAudioUnitType_Output            = 1635086197
	KAudioUnitType_Panner            = 1635086446
	KAudioUnitType_SpeechSynthesizer = 1635087216
)
View Source
const (
	KAudioUnitType_RemoteEffect      = 1635086968
	KAudioUnitType_RemoteGenerator   = 1635086951
	KAudioUnitType_RemoteInstrument  = 1635086953
	KAudioUnitType_RemoteMusicEffect = 1635086957
)
View Source
const (
	KBandpassParam_Bandwidth       = 1
	KBandpassParam_CenterFrequency = 0
)
View Source
const (
	KCAClock_CannotSetTimeError         = -66805
	KCAClock_InvalidPlayRateError       = -66806
	KCAClock_InvalidPropertySizeError   = -66815
	KCAClock_InvalidSMPTEFormatError    = -66809
	KCAClock_InvalidSMPTEOffsetError    = -66808
	KCAClock_InvalidSyncModeError       = -66813
	KCAClock_InvalidSyncSourceError     = -66812
	KCAClock_InvalidTimeFormatError     = -66814
	KCAClock_InvalidTimebaseError       = -66811
	KCAClock_InvalidTimebaseSourceError = -66810
	KCAClock_InvalidUnitError           = -66807
	KCAClock_UnknownPropertyError       = -66816
)
View Source
const (
	KCAFMarkerType_EditDestinationBegin = 1684170087
	KCAFMarkerType_EditDestinationEnd   = 1684368996
	KCAFMarkerType_EditSourceBegin      = 1667392871
	KCAFMarkerType_EditSourceEnd        = 1667591780
	KCAFMarkerType_Generic              = 0
	KCAFMarkerType_Index                = 1768842360
	KCAFMarkerType_KeySignature         = 1802725735
	KCAFMarkerType_ProgramEnd           = 1885695588
	KCAFMarkerType_ProgramStart         = 1885496679
	KCAFMarkerType_RegionEnd            = 1919250020
	KCAFMarkerType_RegionStart          = 1919051111
	KCAFMarkerType_RegionSyncPoint      = 1920170339
	KCAFMarkerType_ReleaseLoopEnd       = 1919706478
	KCAFMarkerType_ReleaseLoopStart     = 1919705703
	KCAFMarkerType_SavedPlayPosition    = 1936747641
	KCAFMarkerType_SelectionEnd         = 1936027236
	KCAFMarkerType_SelectionStart       = 1935828327
	KCAFMarkerType_SustainLoopEnd       = 1936483694
	KCAFMarkerType_SustainLoopStart     = 1936482919
	KCAFMarkerType_Tempo                = 1953329263
	KCAFMarkerType_TimeSignature        = 1953720679
	KCAFMarkerType_TrackEnd             = 1952804452
	KCAFMarkerType_TrackStart           = 1952605543
)
View Source
const (
	KCAF_FileType            = 1667327590
	KCAF_FileVersion_Initial = 1
)
View Source
const (
	KCAF_SMPTE_TimeType2398     = 12
	KCAF_SMPTE_TimeType24       = 1
	KCAF_SMPTE_TimeType25       = 2
	KCAF_SMPTE_TimeType2997     = 5
	KCAF_SMPTE_TimeType2997Drop = 6
	KCAF_SMPTE_TimeType30       = 4
	KCAF_SMPTE_TimeType30Drop   = 3
	KCAF_SMPTE_TimeType50       = 11
	KCAF_SMPTE_TimeType5994     = 8
	KCAF_SMPTE_TimeType5994Drop = 10
	KCAF_SMPTE_TimeType60       = 7
	KCAF_SMPTE_TimeType60Drop   = 9
	KCAF_SMPTE_TimeTypeNone     = 0
)
View Source
const (
	KCAF_AudioDataChunkID         = 1684108385
	KCAF_ChannelLayoutChunkID     = 1667785070
	KCAF_EditCommentsChunkID      = 1701077876
	KCAF_FillerChunkID            = 1718773093
	KCAF_FormatListID             = 1818522467
	KCAF_InfoStringsChunkID       = 1768842863
	KCAF_InstrumentChunkID        = 1768846196
	KCAF_MIDIChunkID              = 1835623529
	KCAF_MagicCookieID            = 1802857321
	KCAF_MarkerChunkID            = 1835102827
	KCAF_OverviewChunkID          = 1870034551
	KCAF_PacketTableChunkID       = 1885432692
	KCAF_PeakChunkID              = 1885692267
	KCAF_RegionChunkID            = 1919248238
	KCAF_StreamDescriptionChunkID = 1684370275
	KCAF_StringsChunkID           = 1937011303
	KCAF_UMIDChunkID              = 1970104676
	KCAF_UUIDChunkID              = 1970628964
	KCAF_iXMLChunkID              = 1767394636
)
View Source
const (
	KConverterPrimeMethod_None   = 2
	KConverterPrimeMethod_Normal = 1
	KConverterPrimeMethod_Pre    = 0
)
View Source
const (
	KDelayParam_DelayTime    = 1
	KDelayParam_Feedback     = 2
	KDelayParam_LopassCutoff = 3
	KDelayParam_WetDryMix    = 0
)
View Source
const (
	KDistortionParam_CubicTerm      = 8
	KDistortionParam_Decay          = 1
	KDistortionParam_Decimation     = 3
	KDistortionParam_DecimationMix  = 5
	KDistortionParam_Delay          = 0
	KDistortionParam_DelayMix       = 2
	KDistortionParam_FinalMix       = 15
	KDistortionParam_LinearTerm     = 6
	KDistortionParam_PolynomialMix  = 9
	KDistortionParam_RingModBalance = 12
	KDistortionParam_RingModFreq1   = 10
	KDistortionParam_RingModFreq2   = 11
	KDistortionParam_RingModMix     = 13
	KDistortionParam_Rounding       = 4
	KDistortionParam_SoftClipGain   = 14
	KDistortionParam_SquaredTerm    = 7
)
View Source
const (
	KDitherAlgorithm_NoiseShaping = 2
	KDitherAlgorithm_TPDF         = 1
)
View Source
const (
	KDynamicRangeCompressionProfile_GeneralCompression   = 6
	KDynamicRangeCompressionProfile_LateNight            = 1
	KDynamicRangeCompressionProfile_LimitedPlaybackRange = 3
	KDynamicRangeCompressionProfile_NoisyEnvironment     = 2
	KDynamicRangeCompressionProfile_None                 = 0
)
View Source
const (
	KDynamicRangeControlMode_Heavy = 2
	KDynamicRangeControlMode_Light = 1
	KDynamicRangeControlMode_None  = 0
)
View Source
const (
	KDynamicsProcessorParam_AttackTime         = 4
	KDynamicsProcessorParam_CompressionAmount  = 1000
	KDynamicsProcessorParam_ExpansionRatio     = 2
	KDynamicsProcessorParam_ExpansionThreshold = 3
	KDynamicsProcessorParam_HeadRoom           = 1
	KDynamicsProcessorParam_InputAmplitude     = 2000
	KDynamicsProcessorParam_MasterGain         = 6
	KDynamicsProcessorParam_OutputAmplitude    = 3000
	KDynamicsProcessorParam_OverallGain        = 6
	KDynamicsProcessorParam_ReleaseTime        = 5
	KDynamicsProcessorParam_Threshold          = 0
)
View Source
const (
	KExtAudioFileError_AsyncWriteBufferOverflow = -66570
	KExtAudioFileError_AsyncWriteTooLarge       = -66569
	KExtAudioFileError_InvalidChannelMap        = -66564
	KExtAudioFileError_InvalidDataFormat        = -66566
	KExtAudioFileError_InvalidOperationOrder    = -66565
	KExtAudioFileError_InvalidProperty          = -66561
	KExtAudioFileError_InvalidPropertySize      = -66562
	KExtAudioFileError_InvalidSeek              = -66568
	KExtAudioFileError_MaxPacketSizeUnknown     = -66567
	KExtAudioFileError_NonPCMClientFormat       = -66563
)
View Source
const (
	KExtAudioFilePacketTableInfoOverride_UseFileValue        = -1
	KExtAudioFilePacketTableInfoOverride_UseFileValueIfValid = -2
)
View Source
const (
	KExtAudioFileProperty_AudioConverter      = 1633906294
	KExtAudioFileProperty_AudioFile           = 1634101612
	KExtAudioFileProperty_ClientChannelLayout = 1667460207
	KExtAudioFileProperty_ClientDataFormat    = 1667657076
	KExtAudioFileProperty_ClientMaxPacketSize = 1668116595
	KExtAudioFileProperty_CodecManufacturer   = 1668112750
	KExtAudioFileProperty_ConverterConfig     = 1633903462
	KExtAudioFileProperty_FileChannelLayout   = 1717791855
	KExtAudioFileProperty_FileDataFormat      = 1717988724
	KExtAudioFileProperty_FileLengthFrames    = 593916525
	KExtAudioFileProperty_FileMaxPacketSize   = 1718448243
	KExtAudioFileProperty_IOBuffer            = 1768907366
	KExtAudioFileProperty_IOBufferSizeBytes   = 1768907379
	KExtAudioFileProperty_PacketTable         = 2020635753
)
View Source
const (
	KHighShelfParam_CutOffFrequency = 0
	KHighShelfParam_Gain            = 1
)
View Source
const (
	KHintAdvanced = 1
	KHintBasic    = 0
	KHintHidden   = 2
)
View Source
const (
	KHipassParam_CutoffFrequency = 0
	KHipassParam_Resonance       = 1
)
View Source
const (
	KInstrumentType_AUPreset  = 2
	KInstrumentType_Audiofile = 3
	KInstrumentType_DLSPreset = 1
	KInstrumentType_EXS24     = 4
	KInstrumentType_SF2Preset = 1
)
View Source
const (
	KLimiterParam_AttackTime = 0
	KLimiterParam_DecayTime  = 1
	KLimiterParam_PreGain    = 2
)
View Source
const (
	KLowPassParam_CutoffFrequency = 0
	KLowPassParam_Resonance       = 1
)
View Source
const (
	KMatrixMixerParam_Enable                  = 1
	KMatrixMixerParam_PostAveragePower        = 3000
	KMatrixMixerParam_PostAveragePowerLinear  = 7000
	KMatrixMixerParam_PostPeakHoldLevel       = 4000
	KMatrixMixerParam_PostPeakHoldLevelLinear = 8000
	KMatrixMixerParam_PreAveragePower         = 1000
	KMatrixMixerParam_PreAveragePowerLinear   = 5000
	KMatrixMixerParam_PrePeakHoldLevel        = 2000
	KMatrixMixerParam_PrePeakHoldLevelLinear  = 6000
	KMatrixMixerParam_Volume                  = 0
)
View Source
const (
	KMultiChannelMixerParam_Enable            = 1
	KMultiChannelMixerParam_Pan               = 2
	KMultiChannelMixerParam_PostAveragePower  = 3000
	KMultiChannelMixerParam_PostPeakHoldLevel = 4000
	KMultiChannelMixerParam_PreAveragePower   = 1000
	KMultiChannelMixerParam_PrePeakHoldLevel  = 2000
	KMultiChannelMixerParam_Volume            = 0
)
View Source
const (
	KMultibandCompressorParam_AttackTime         = 13
	KMultibandCompressorParam_CompressionAmount1 = 1000
	KMultibandCompressorParam_CompressionAmount2 = 2000
	KMultibandCompressorParam_CompressionAmount3 = 3000
	KMultibandCompressorParam_CompressionAmount4 = 4000
	KMultibandCompressorParam_Crossover1         = 2
	KMultibandCompressorParam_Crossover2         = 3
	KMultibandCompressorParam_Crossover3         = 4
	KMultibandCompressorParam_EQ1                = 15
	KMultibandCompressorParam_EQ2                = 16
	KMultibandCompressorParam_EQ3                = 17
	KMultibandCompressorParam_EQ4                = 18
	KMultibandCompressorParam_Headroom1          = 9
	KMultibandCompressorParam_Headroom2          = 10
	KMultibandCompressorParam_Headroom3          = 11
	KMultibandCompressorParam_Headroom4          = 12
	KMultibandCompressorParam_InputAmplitude1    = 5000
	KMultibandCompressorParam_InputAmplitude2    = 6000
	KMultibandCompressorParam_InputAmplitude3    = 7000
	KMultibandCompressorParam_InputAmplitude4    = 8000
	KMultibandCompressorParam_OutputAmplitude1   = 9000
	KMultibandCompressorParam_OutputAmplitude2   = 10000
	KMultibandCompressorParam_OutputAmplitude3   = 11000
	KMultibandCompressorParam_OutputAmplitude4   = 12000
	KMultibandCompressorParam_Postgain           = 1
	KMultibandCompressorParam_Pregain            = 0
	KMultibandCompressorParam_ReleaseTime        = 14
	KMultibandCompressorParam_Threshold1         = 5
	KMultibandCompressorParam_Threshold2         = 6
	KMultibandCompressorParam_Threshold3         = 7
	KMultibandCompressorParam_Threshold4         = 8
)
View Source
const (
	KMultibandFilter_Bandwidth1     = 5
	KMultibandFilter_Bandwidth2     = 8
	KMultibandFilter_Bandwidth3     = 11
	KMultibandFilter_CenterFreq1    = 3
	KMultibandFilter_CenterFreq2    = 6
	KMultibandFilter_CenterFreq3    = 9
	KMultibandFilter_CenterGain1    = 4
	KMultibandFilter_CenterGain2    = 7
	KMultibandFilter_CenterGain3    = 10
	KMultibandFilter_HighFilterType = 12
	KMultibandFilter_HighFrequency  = 13
	KMultibandFilter_HighGain       = 14
	KMultibandFilter_LowFilterType  = 0
	KMultibandFilter_LowFrequency   = 1
	KMultibandFilter_LowGain        = 2
)
View Source
const (
	KMusicDeviceParam_ReverbVolume = 2
	KMusicDeviceParam_Tuning       = 0
	KMusicDeviceParam_Volume       = 1
)
View Source
const (
	KAudioUnitProperty_PannerMode        = 3008
	KMusicDeviceProperty_GroupOutputBus  = 1002
	KMusicDeviceProperty_SoundBankFSSpec = 1003
)
View Source
const (
	KMusicDeviceProperty_BankName        = 1007
	KMusicDeviceProperty_InstrumentCount = 1000
	KMusicDeviceProperty_SoundBankURL    = 1100
)
View Source
const (
	KMusicDeviceProperty_InstrumentName   = 1001
	KMusicDeviceProperty_InstrumentNumber = 1004
)
View Source
const (
	KMusicDeviceProperty_DualSchedulingMode    = 1013
	KMusicDeviceProperty_MIDIXMLNames          = 1006
	KMusicDeviceProperty_PartGroup             = 1010
	KMusicDeviceProperty_SupportsStartStopNote = 1014
)
View Source
const (
	KMusicDeviceProperty_SoundBankData      = 1008
	KMusicDeviceProperty_SoundBankFSRef     = 1012
	KMusicDeviceProperty_StreamFromDisk     = 1011
	KMusicDeviceProperty_UsesInternalReverb = 1005
)
View Source
const (
	KMusicDeviceMIDIEventListSelect     = 263
	KMusicDeviceMIDIEventSelect         = 257
	KMusicDevicePrepareInstrumentSelect = 259
	KMusicDeviceRange                   = 256
	KMusicDeviceReleaseInstrumentSelect = 260
	KMusicDeviceStartNoteSelect         = 261
	KMusicDeviceStopNoteSelect          = 262
	KMusicDeviceSysExSelect             = 258
)
View Source
const (
	KMusicDeviceSampleFrameMask_IsScheduled  = 16777216
	KMusicDeviceSampleFrameMask_SampleOffset = 16777215
)
View Source
const (
	KMusicEventType_AUPreset           = 10
	KMusicEventType_ExtendedNote       = 1
	KMusicEventType_ExtendedTempo      = 3
	KMusicEventType_MIDIChannelMessage = 7
	KMusicEventType_MIDINoteMessage    = 6
	KMusicEventType_MIDIRawData        = 8
	KMusicEventType_Meta               = 5
	KMusicEventType_NULL               = 0
	KMusicEventType_Parameter          = 9
	KMusicEventType_User               = 4
)
View Source
const (
	KMusicNoteEvent_Unused             = 4294967295
	KMusicNoteEvent_UseGroupInstrument = 4294967295
)
View Source
const (
	KNewTimePitchParam_EnablePeakLocking           = 6
	KNewTimePitchParam_EnableSpectralCoherence     = 6
	KNewTimePitchParam_EnableTransientPreservation = 7
	KNewTimePitchParam_Overlap                     = 4
	KNewTimePitchParam_Pitch                       = 1
	KNewTimePitchParam_Rate                        = 0
	KNewTimePitchParam_Smoothness                  = 4
)
View Source
const (
	KOfflinePreflight_NotRequired = 0
	KOfflinePreflight_Optional    = 1
	KOfflinePreflight_Required    = 2
)
View Source
const (
	KOtherPluginFormat_AU        = 3
	KOtherPluginFormat_Undefined = 0
	KOtherPluginFormat_kMAS      = 1
	KOtherPluginFormat_kVST      = 2
)
View Source
const (
	KPannerParam_Azimuth     = 1
	KPannerParam_CoordScale  = 4
	KPannerParam_Distance    = 3
	KPannerParam_Elevation   = 2
	KPannerParam_Gain        = 0
	KPannerParam_RefDistance = 5
)
View Source
const (
	KParametricEQParam_CenterFreq = 0
	KParametricEQParam_Gain       = 2
	KParametricEQParam_Q          = 1
)
View Source
const (
	KProgramTargetLevel_Minus20dB = 3
	KProgramTargetLevel_Minus23dB = 2
	KProgramTargetLevel_Minus31dB = 1
	KProgramTargetLevel_None      = 0
)
View Source
const (
	KRandomParam_BoundA = 0
	KRandomParam_BoundB = 1
	KRandomParam_Curve  = 2
)
View Source
const (
	KRenderQuality_High   = 96
	KRenderQuality_Low    = 32
	KRenderQuality_Max    = 127
	KRenderQuality_Medium = 64
	KRenderQuality_Min    = 0
)
View Source
const (
	KReverb2Param_DecayTimeAt0Hz       = 4
	KReverb2Param_DecayTimeAtNyquist   = 5
	KReverb2Param_DryWetMix            = 0
	KReverb2Param_Gain                 = 1
	KReverb2Param_MaxDelayTime         = 3
	KReverb2Param_MinDelayTime         = 2
	KReverb2Param_RandomizeReflections = 6
)
View Source
const (
	KReverbParam_DryWetMix       = 0
	KReverbParam_LargeBrightness = 10
	KReverbParam_LargeDelay      = 5
	KReverbParam_LargeDelayRange = 8
	KReverbParam_LargeDensity    = 7
	KReverbParam_LargeSize       = 3
	KReverbParam_ModulationDepth = 13
	KReverbParam_ModulationRate  = 12
	KReverbParam_PreDelay        = 4
	KReverbParam_SmallBrightness = 9
	KReverbParam_SmallDelayRange = 11
	KReverbParam_SmallDensity    = 6
	KReverbParam_SmallLargeMix   = 1
	KReverbParam_SmallSize       = 2
)
View Source
const (
	KReverbParam_FilterBandwidth = 15
	KReverbParam_FilterEnable    = 18
	KReverbParam_FilterFrequency = 14
	KReverbParam_FilterGain      = 16
	KReverbParam_FilterType      = 17
)
View Source
const (
	KRogerBeepParam_InGateThreshold      = 0
	KRogerBeepParam_InGateThresholdTime  = 1
	KRogerBeepParam_OutGateThreshold     = 2
	KRogerBeepParam_OutGateThresholdTime = 3
	KRogerBeepParam_RogerGain            = 6
	KRogerBeepParam_RogerType            = 5
	KRogerBeepParam_Sensitivity          = 4
)
View Source
const (
	KRoundTripAACParam_BitRate                    = 1
	KRoundTripAACParam_CompressedFormatSampleRate = 3
	KRoundTripAACParam_EncodingStrategy           = 1
	KRoundTripAACParam_Format                     = 0
	KRoundTripAACParam_Quality                    = 2
	KRoundTripAACParam_RateOrQuality              = 2
)
View Source
const (
	KSequenceTrackProperty_AutomatedParameters = 4
	KSequenceTrackProperty_LoopInfo            = 0
	KSequenceTrackProperty_MuteStatus          = 2
	KSequenceTrackProperty_OffsetTime          = 1
	KSequenceTrackProperty_SoloStatus          = 3
	KSequenceTrackProperty_TimeResolution      = 6
	KSequenceTrackProperty_TrackLength         = 5
)
View Source
const (
	KSpatialMixerParam_Azimuth                = 0
	KSpatialMixerParam_Distance               = 2
	KSpatialMixerParam_Elevation              = 1
	KSpatialMixerParam_Enable                 = 5
	KSpatialMixerParam_Gain                   = 3
	KSpatialMixerParam_GlobalReverbGain       = 9
	KSpatialMixerParam_HeadPitch              = 20
	KSpatialMixerParam_HeadRoll               = 21
	KSpatialMixerParam_HeadYaw                = 19
	KSpatialMixerParam_MaxGain                = 7
	KSpatialMixerParam_MinGain                = 6
	KSpatialMixerParam_ObstructionAttenuation = 11
	KSpatialMixerParam_OcclusionAttenuation   = 10
	KSpatialMixerParam_PlaybackRate           = 4
	KSpatialMixerParam_ReverbBlend            = 8
)
View Source
const (
	KSpeakerConfiguration_5_0        = 3
	KSpeakerConfiguration_5_1        = 3
	KSpeakerConfiguration_HeadPhones = 0
	KSpeakerConfiguration_Quad       = 2
	KSpeakerConfiguration_Stereo     = 1
)
View Source
const (
	KStereoMixerParam_Pan               = 1
	KStereoMixerParam_PostAveragePower  = 3000
	KStereoMixerParam_PostPeakHoldLevel = 4000
	KStereoMixerParam_PreAveragePower   = 1000
	KStereoMixerParam_PrePeakHoldLevel  = 2000
	KStereoMixerParam_Volume            = 0
)
View Source
const (
	KSystemSoundID_FlashScreen        = 4094
	KSystemSoundID_UserPreferredAlert = 4096
	KUserPreferredAlert               = 4096
)
View Source
const (
	KTimePitchParam_EffectBlend = 2
	KTimePitchParam_Pitch       = 1
	KTimePitchParam_Rate        = 0
)
View Source
const (
	KVarispeedParam_PlaybackCents = 1
	KVarispeedParam_PlaybackRate  = 0
)
View Source
const (
	AUEventSampleTimeImmediate = -4294967296
)
View Source
const (
	KAUMIDISynthProperty_EnablePreload = 4119
)
View Source
const (
	KAUParameterListener_AnyParameter = 4294967295
)
View Source
const (
	KAUVoiceIOErr_UnexpectedNumberOfInputChannels = -66784
)
View Source
const (
	KAUVoiceIOProperty_MutedSpeechActivityEventListener = 2106
)
View Source
const (
	KAUVoiceIOProperty_OtherAudioDuckingConfiguration = 2108
)
View Source
const (
	KAUVoiceIOProperty_VoiceProcessingQuality = 2103
)
View Source
const (
	KAudioCodecPropertyMinimumDelayMode = 1835296108
)
View Source
const (
	KAudioFileMarkerType_Generic = 0
)
View Source
const (
	KAudioQueueProperty_ChannelAssignments = 1634820961
)
View Source
const (
	KAudioSessionProperty_AudioRoute = 1919907188
)
View Source
const (
	KAudioSessionSetActiveFlag_NotifyOthersOnDeactivation = 1
)
View Source
const (
	KAudioUnitClumpID_System = 0
)
View Source
const (
	KAudioUnitManufacturer_Apple = 1634758764
)
View Source
const (
	KAudioUnitParameterFlag_HasName = 2097152
)
View Source
const (
	KAudioUnitParameterName_Full = -1
)
View Source
const (
	KAudioUnitProperty_DistanceAttenuationData = 3600
)
View Source
const (
	KAudioUnitProperty_SampleRateConverterComplexity = 3014
)
View Source
const (
	KAudioUnitProperty_SpeakerConfiguration = 3001
)
View Source
const (
	KAudioUnitSubType_TimePitch = 1953329268
)
View Source
const (
	KGraphicEQParam_NumberOfBands = 10000
)
View Source
const (
	KHALOutputParam_Volume = 14
)
View Source
const (
	KMusicEventType_ExtendedControl = 2
)
View Source
const (
	KNumberOfResponseFrequencies = 1024
)
View Source
const (
	KSampleDelayParam_DelayFrames = 0
)
View Source
const (
	KSystemSoundID_Vibrate = 4095
)

Variables

This section is empty.

Functions

func AUAudioUnitInstantiateWithComponentDescriptionOptionsCompletionHandler

func AUAudioUnitInstantiateWithComponentDescriptionOptionsCompletionHandler(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions, completionHandler func(*AUAudioUnit, unsafe.Pointer))

@method instantiateWithComponentDescription:options:completionHandler: @brief Asynchronously create an AUAudioUnit instance. @param componentDescription The AudioComponentDescription of the audio unit to instantiate. @param options See the discussion of AudioComponentInstantiationOptions in AudioToolbox/AudioComponent.h. @param completionHandler Called in a thread/dispatch queue context internal to the implementation. The client should retain the supplied AUAudioUnit. @discussion Certain types of AUAudioUnits must be instantiated asynchronously -- see the discussion of kAudioComponentFlag_RequiresAsyncInstantiation in AudioToolbox/AudioComponent.h. Note: Do not block the main thread while waiting for the completion handler to be called; this can deadlock.

func AUAudioUnitRegisterSubclassAsComponentDescriptionNameVersion

func AUAudioUnitRegisterSubclassAsComponentDescriptionNameVersion(cls objc.Class, componentDescription AudioComponentDescription, name *foundation.NSString, version uint)

@brief Register an audio unit component implemented as an AUAudioUnit subclass. @discussion This method dynamically registers the supplied AUAudioUnit subclass with the Audio Component system, in the context of the current process (only). After registering the subclass, it can be instantiated via AudioComponentInstanceNew, -[AUAudioUnit initWithComponentDescription:options:error:], and via any other API's which instantiate audio units via their component descriptions (e.g. <AudioToolbox/AUGraph.h>, or <AVFoundation/AVAudioUnitEffect.h>).

func AUEventListenerAddEventType

func AUEventListenerAddEventType(inListener unsafe.Pointer, inObject unsafe.Pointer, inEvent *AudioUnitEvent) int

func AUEventListenerCreate

func AUEventListenerCreate(inProc unsafe.Pointer, inUserData unsafe.Pointer, inRunLoop unsafe.Pointer, inRunLoopMode unsafe.Pointer, inNotificationInterval float32, inValueChangeGranularity float32, outListener unsafe.Pointer) int

func AUEventListenerCreateWithDispatchQueue

func AUEventListenerCreateWithDispatchQueue(outListener unsafe.Pointer, inNotificationInterval float32, inValueChangeGranularity float32, inDispatchQueue *foundation.NSObject, inBlock func(unsafe.Pointer, *AudioUnitEvent, uint64, float32)) int

func AUEventListenerNotify

func AUEventListenerNotify(inSendingListener unsafe.Pointer, inSendingObject unsafe.Pointer, inEvent *AudioUnitEvent) int

func AUEventListenerRemoveEventType

func AUEventListenerRemoveEventType(inListener unsafe.Pointer, inObject unsafe.Pointer, inEvent *AudioUnitEvent) int

func AUGraphAddNode

func AUGraphAddNode(inGraph unsafe.Pointer, inDescription *AudioComponentDescription, outNode *int) int

func AUGraphAddRenderNotify

func AUGraphAddRenderNotify(inGraph unsafe.Pointer, inCallback unsafe.Pointer, inRefCon unsafe.Pointer) int

func AUGraphClearConnections

func AUGraphClearConnections(inGraph unsafe.Pointer) int

func AUGraphClose

func AUGraphClose(inGraph unsafe.Pointer) int

func AUGraphConnectNodeInput

func AUGraphConnectNodeInput(inGraph unsafe.Pointer, inSourceNode int, inSourceOutputNumber uint, inDestNode int, inDestInputNumber uint) int

func AUGraphCountNodeConnections deprecated

func AUGraphCountNodeConnections(inGraph unsafe.Pointer, inNode int, outNumConnections *uint) int

Deprecated: no longer supported

func AUGraphCountNodeInteractions

func AUGraphCountNodeInteractions(inGraph unsafe.Pointer, inNode int, outNumInteractions *uint) int

func AUGraphDisconnectNodeInput

func AUGraphDisconnectNodeInput(inGraph unsafe.Pointer, inDestNode int, inDestInputNumber uint) int

func AUGraphGetCPULoad

func AUGraphGetCPULoad(inGraph unsafe.Pointer, outAverageCPULoad *float32) int

func AUGraphGetConnectionInfo deprecated

func AUGraphGetConnectionInfo(inGraph unsafe.Pointer, inConnectionIndex uint, outSourceNode *int, outSourceOutputNumber *uint, outDestNode *int, outDestInputNumber *uint) int

Deprecated: no longer supported

func AUGraphGetIndNode

func AUGraphGetIndNode(inGraph unsafe.Pointer, inIndex uint, outNode *int) int

func AUGraphGetInteractionInfo

func AUGraphGetInteractionInfo(inGraph unsafe.Pointer, inInteractionIndex uint, outInteraction *AUNodeInteraction) int

func AUGraphGetMaxCPULoad

func AUGraphGetMaxCPULoad(inGraph unsafe.Pointer, outMaxLoad *float32) int

func AUGraphGetNodeConnections deprecated

func AUGraphGetNodeConnections(inGraph unsafe.Pointer, inNode int, outConnections *AudioUnitNodeConnection, ioNumConnections *uint) int

Deprecated: no longer supported

func AUGraphGetNodeCount

func AUGraphGetNodeCount(inGraph unsafe.Pointer, outNumberOfNodes *uint) int

func AUGraphGetNodeInfo deprecated

func AUGraphGetNodeInfo(inGraph unsafe.Pointer, inNode int, outDescription *carboncore.ComponentDescription, outClassDataSize *uint, outClassData unsafe.Pointer, outAudioUnit **carboncore.ComponentInstanceRecord) int

Deprecated: no longer supported

func AUGraphGetNodeInfoSubGraph deprecated

func AUGraphGetNodeInfoSubGraph(inGraph unsafe.Pointer, inNode int, outSubGraph unsafe.Pointer) int

Deprecated: no longer supported

func AUGraphGetNodeInteractions

func AUGraphGetNodeInteractions(inGraph unsafe.Pointer, inNode int, ioNumInteractions *uint, outInteractions *AUNodeInteraction) int

func AUGraphGetNumberOfConnections deprecated

func AUGraphGetNumberOfConnections(inGraph unsafe.Pointer, outNumConnections *uint) int

Deprecated: no longer supported

func AUGraphGetNumberOfInteractions

func AUGraphGetNumberOfInteractions(inGraph unsafe.Pointer, outNumInteractions *uint) int

func AUGraphInitialize

func AUGraphInitialize(inGraph unsafe.Pointer) int

func AUGraphIsInitialized

func AUGraphIsInitialized(inGraph unsafe.Pointer, outIsInitialized *uint8) int

func AUGraphIsNodeSubGraph deprecated

func AUGraphIsNodeSubGraph(inGraph unsafe.Pointer, inNode int, outFlag *uint8) int

Deprecated: no longer supported

func AUGraphIsOpen

func AUGraphIsOpen(inGraph unsafe.Pointer, outIsOpen *uint8) int

func AUGraphIsRunning

func AUGraphIsRunning(inGraph unsafe.Pointer, outIsRunning *uint8) int

func AUGraphNewNode deprecated

func AUGraphNewNode(inGraph unsafe.Pointer, inDescription *carboncore.ComponentDescription, inClassDataSize uint, inClassData unsafe.Pointer, outNode *int) int

Deprecated: no longer supported

func AUGraphNewNodeSubGraph deprecated

func AUGraphNewNodeSubGraph(inGraph unsafe.Pointer, outNode *int) int

Deprecated: no longer supported

func AUGraphNodeInfo

func AUGraphNodeInfo(inGraph unsafe.Pointer, inNode int, outDescription *AudioComponentDescription, outAudioUnit **carboncore.ComponentInstanceRecord) int

func AUGraphOpen

func AUGraphOpen(inGraph unsafe.Pointer) int

func AUGraphRemoveNode

func AUGraphRemoveNode(inGraph unsafe.Pointer, inNode int) int

func AUGraphRemoveRenderNotify

func AUGraphRemoveRenderNotify(inGraph unsafe.Pointer, inCallback unsafe.Pointer, inRefCon unsafe.Pointer) int

func AUGraphSetNodeInputCallback

func AUGraphSetNodeInputCallback(inGraph unsafe.Pointer, inDestNode int, inDestInputNumber uint, inInputCallback *AURenderCallbackStruct) int

func AUGraphStart

func AUGraphStart(inGraph unsafe.Pointer) int

func AUGraphStop

func AUGraphStop(inGraph unsafe.Pointer) int

func AUGraphUninitialize

func AUGraphUninitialize(inGraph unsafe.Pointer) int

func AUGraphUpdate

func AUGraphUpdate(inGraph unsafe.Pointer, outIsUpdated *uint8) int

func AUListenerAddParameter

func AUListenerAddParameter(inListener unsafe.Pointer, inObject unsafe.Pointer, inParameter *AudioUnitParameter) int

func AUListenerCreate

func AUListenerCreate(inProc unsafe.Pointer, inUserData unsafe.Pointer, inRunLoop unsafe.Pointer, inRunLoopMode unsafe.Pointer, inNotificationInterval float32, outListener unsafe.Pointer) int

func AUListenerCreateWithDispatchQueue

func AUListenerCreateWithDispatchQueue(outListener unsafe.Pointer, inNotificationInterval float32, inDispatchQueue *foundation.NSObject, inBlock func(unsafe.Pointer, *AudioUnitParameter, float32)) int

func AUListenerDispose

func AUListenerDispose(inListener unsafe.Pointer) int

func AUListenerRemoveParameter

func AUListenerRemoveParameter(inListener unsafe.Pointer, inObject unsafe.Pointer, inParameter *AudioUnitParameter) int

func AUParameterFormatValue

func AUParameterFormatValue(inParameterValue float64, inParameter *AudioUnitParameter, inTextBuffer string, inDigits uint) string

func AUParameterListenerNotify

func AUParameterListenerNotify(inSendingListener unsafe.Pointer, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter) int

func AUParameterSet

func AUParameterSet(inSendingListener unsafe.Pointer, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter, inValue float32, inBufferOffsetInFrames uint) int

func AUParameterValueFromLinear

func AUParameterValueFromLinear(inLinearValue float32, inParameter *AudioUnitParameter) float32

func AUParameterValueToLinear

func AUParameterValueToLinear(inParameterValue float32, inParameter *AudioUnitParameter) float32

func AudioCodecAppendInputBufferList

func AudioCodecAppendInputBufferList(inCodec *carboncore.ComponentInstanceRecord, inBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outBytesConsumed *uint) int

func AudioCodecAppendInputData

func AudioCodecAppendInputData(inCodec *carboncore.ComponentInstanceRecord, inInputData unsafe.Pointer, ioInputDataByteSize *uint, ioNumberPackets *uint, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int

func AudioCodecGetProperty

func AudioCodecGetProperty(inCodec *carboncore.ComponentInstanceRecord, inPropertyID uint, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioCodecGetPropertyInfo

func AudioCodecGetPropertyInfo(inCodec *carboncore.ComponentInstanceRecord, inPropertyID uint, outSize *uint, outWritable *uint8) int

func AudioCodecInitialize

func AudioCodecInitialize(inCodec *carboncore.ComponentInstanceRecord, inInputFormat *coreaudiotypes.AudioStreamBasicDescription, inOutputFormat *coreaudiotypes.AudioStreamBasicDescription, inMagicCookie unsafe.Pointer, inMagicCookieByteSize uint) int

func AudioCodecProduceOutputBufferList

func AudioCodecProduceOutputBufferList(inCodec *carboncore.ComponentInstanceRecord, ioBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint) int

func AudioCodecProduceOutputPackets

func AudioCodecProduceOutputPackets(inCodec *carboncore.ComponentInstanceRecord, outOutputData unsafe.Pointer, ioOutputDataByteSize *uint, ioNumberPackets *uint, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint) int

func AudioCodecReset

func AudioCodecReset(inCodec *carboncore.ComponentInstanceRecord) int

func AudioCodecSetProperty

func AudioCodecSetProperty(inCodec *carboncore.ComponentInstanceRecord, inPropertyID uint, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func AudioCodecUninitialize

func AudioCodecUninitialize(inCodec *carboncore.ComponentInstanceRecord) int

func AudioComponentCopyConfigurationInfo

func AudioComponentCopyConfigurationInfo(inComponent unsafe.Pointer, outConfigurationInfo unsafe.Pointer) int

func AudioComponentCopyIcon

func AudioComponentCopyIcon(comp unsafe.Pointer) unsafe.Pointer

func AudioComponentCopyName

func AudioComponentCopyName(inComponent unsafe.Pointer, outName unsafe.Pointer) int

func AudioComponentCount

func AudioComponentCount(inDesc *AudioComponentDescription) uint

func AudioComponentFindNext

func AudioComponentFindNext(inComponent unsafe.Pointer, inDesc *AudioComponentDescription) unsafe.Pointer

func AudioComponentGetDescription

func AudioComponentGetDescription(inComponent unsafe.Pointer, outDesc *AudioComponentDescription) int

func AudioComponentGetIcon deprecated

func AudioComponentGetIcon(comp unsafe.Pointer) *appkit.NSImage

Deprecated: since macOS 11.0.

func AudioComponentGetVersion

func AudioComponentGetVersion(inComponent unsafe.Pointer, outVersion *uint) int

func AudioComponentInstanceCanDo

func AudioComponentInstanceCanDo(inInstance *carboncore.ComponentInstanceRecord, inSelectorID int16) uint8

func AudioComponentInstanceDispose

func AudioComponentInstanceDispose(inInstance *carboncore.ComponentInstanceRecord) int

func AudioComponentInstanceGetComponent

func AudioComponentInstanceGetComponent(inInstance *carboncore.ComponentInstanceRecord) unsafe.Pointer

func AudioComponentInstanceNew

func AudioComponentInstanceNew(inComponent unsafe.Pointer, outInstance **carboncore.ComponentInstanceRecord) int

func AudioComponentInstantiate

func AudioComponentInstantiate(inComponent unsafe.Pointer, inOptions AudioComponentInstantiationOptions, inCompletionHandler func(*carboncore.ComponentInstanceRecord, int))

func AudioComponentRegister

func AudioComponentRegister(inDesc *AudioComponentDescription, inName unsafe.Pointer, inVersion uint, inFactory unsafe.Pointer) unsafe.Pointer

func AudioComponentValidate

func AudioComponentValidate(inComponent unsafe.Pointer, inValidationParameters unsafe.Pointer, outValidationResult *AudioComponentValidationResult) int

func AudioComponentValidateWithResults

func AudioComponentValidateWithResults(inComponent unsafe.Pointer, inValidationParameters unsafe.Pointer, inCompletionHandler func(AudioComponentValidationResult, unsafe.Pointer)) int

func AudioConverterConvertBuffer

func AudioConverterConvertBuffer(inAudioConverter unsafe.Pointer, inInputDataSize uint, inInputData unsafe.Pointer, ioOutputDataSize *uint, outOutputData unsafe.Pointer) int

func AudioConverterConvertComplexBuffer

func AudioConverterConvertComplexBuffer(inAudioConverter unsafe.Pointer, inNumberPCMFrames uint, inInputData *coreaudiotypes.AudioBufferList, outOutputData *coreaudiotypes.AudioBufferList) int

func AudioConverterDispose

func AudioConverterDispose(inAudioConverter unsafe.Pointer) int

func AudioConverterFillBuffer deprecated

func AudioConverterFillBuffer(inAudioConverter unsafe.Pointer, inInputDataProc unsafe.Pointer, inInputDataProcUserData unsafe.Pointer, ioOutputDataSize *uint, outOutputData unsafe.Pointer) int

Deprecated: no longer supported

func AudioConverterFillComplexBuffer

func AudioConverterFillComplexBuffer(inAudioConverter unsafe.Pointer, inInputDataProc unsafe.Pointer, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int

func AudioConverterFillComplexBufferRealtimeSafe

func AudioConverterFillComplexBufferRealtimeSafe(inAudioConverter unsafe.Pointer, inInputDataProc unsafe.Pointer, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int

func AudioConverterFillComplexBufferWithPacketDependencies

func AudioConverterFillComplexBufferWithPacketDependencies(inAudioConverter unsafe.Pointer, inInputDataProc unsafe.Pointer, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, outPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription) int

func AudioConverterGetProperty

func AudioConverterGetProperty(inAudioConverter unsafe.Pointer, inPropertyID uint, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioConverterGetPropertyInfo

func AudioConverterGetPropertyInfo(inAudioConverter unsafe.Pointer, inPropertyID uint, outSize *uint, outWritable *uint8) int

func AudioConverterNew

func AudioConverterNew(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, outAudioConverter unsafe.Pointer) int

func AudioConverterNewSpecific

func AudioConverterNewSpecific(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inNumberClassDescriptions uint, inClassDescriptions *coreaudiotypes.AudioClassDescription, outAudioConverter unsafe.Pointer) int

func AudioConverterNewWithOptions

func AudioConverterNewWithOptions(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inOptions AudioConverterOptions, outAudioConverter unsafe.Pointer) int

func AudioConverterPrepare

func AudioConverterPrepare(inFlags uint, ioReserved unsafe.Pointer, inCompletionBlock func(int))

func AudioConverterReset

func AudioConverterReset(inAudioConverter unsafe.Pointer) int

func AudioConverterSetProperty

func AudioConverterSetProperty(inAudioConverter unsafe.Pointer, inPropertyID uint, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func AudioFileClose

func AudioFileClose(inAudioFile unsafe.Pointer) int

func AudioFileComponentCloseFile

func AudioFileComponentCloseFile(inComponent *carboncore.ComponentInstanceRecord) int

func AudioFileComponentCountUserData

func AudioFileComponentCountUserData(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, outNumberItems *uint) int

func AudioFileComponentCreate deprecated

func AudioFileComponentCreate(inComponent *carboncore.ComponentInstanceRecord, inParentRef *carboncore.FSRef, inFileName unsafe.Pointer, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint, outNewFileRef *carboncore.FSRef) int

Deprecated: no longer supported

func AudioFileComponentCreateURL

func AudioFileComponentCreateURL(inComponent *carboncore.ComponentInstanceRecord, inFileRef unsafe.Pointer, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint) int

func AudioFileComponentDataIsThisFormat deprecated

func AudioFileComponentDataIsThisFormat(inComponent *carboncore.ComponentInstanceRecord, inClientData unsafe.Pointer, inReadFunc unsafe.Pointer, inWriteFunc unsafe.Pointer, inGetSizeFunc unsafe.Pointer, inSetSizeFunc unsafe.Pointer, outResult *uint) int

Deprecated: no longer supported

func AudioFileComponentExtensionIsThisFormat

func AudioFileComponentExtensionIsThisFormat(inComponent *carboncore.ComponentInstanceRecord, inExtension unsafe.Pointer, outResult *uint) int

func AudioFileComponentFileDataIsThisFormat

func AudioFileComponentFileDataIsThisFormat(inComponent *carboncore.ComponentInstanceRecord, inDataByteSize uint, inData unsafe.Pointer, outResult *uint) int

func AudioFileComponentFileIsThisFormat deprecated

func AudioFileComponentFileIsThisFormat(inComponent *carboncore.ComponentInstanceRecord, inFileRefNum int16, outResult *uint) int

Deprecated: no longer supported

func AudioFileComponentGetGlobalInfo

func AudioFileComponentGetGlobalInfo(inComponent *carboncore.ComponentInstanceRecord, inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFileComponentGetGlobalInfoSize

func AudioFileComponentGetGlobalInfoSize(inComponent *carboncore.ComponentInstanceRecord, inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, outPropertySize *uint) int

func AudioFileComponentGetProperty

func AudioFileComponentGetProperty(inComponent *carboncore.ComponentInstanceRecord, inPropertyID uint, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFileComponentGetPropertyInfo

func AudioFileComponentGetPropertyInfo(inComponent *carboncore.ComponentInstanceRecord, inPropertyID uint, outPropertySize *uint, outWritable *uint) int

func AudioFileComponentGetUserData

func AudioFileComponentGetUserData(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint, ioUserDataSize *uint, outUserData unsafe.Pointer) int

func AudioFileComponentGetUserDataAtOffset

func AudioFileComponentGetUserDataAtOffset(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint, inOffset int64, ioUserDataSize *uint, outUserData unsafe.Pointer) int

func AudioFileComponentGetUserDataSize

func AudioFileComponentGetUserDataSize(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint, outUserDataSize *uint) int

func AudioFileComponentGetUserDataSize64

func AudioFileComponentGetUserDataSize64(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint, outUserDataSize *uint64) int

func AudioFileComponentInitialize deprecated

func AudioFileComponentInitialize(inComponent *carboncore.ComponentInstanceRecord, inFileRef *carboncore.FSRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint) int

Deprecated: no longer supported

func AudioFileComponentInitializeWithCallbacks

func AudioFileComponentInitializeWithCallbacks(inComponent *carboncore.ComponentInstanceRecord, inClientData unsafe.Pointer, inReadFunc unsafe.Pointer, inWriteFunc unsafe.Pointer, inGetSizeFunc unsafe.Pointer, inSetSizeFunc unsafe.Pointer, inFileType uint, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint) int

func AudioFileComponentOpenFile deprecated

func AudioFileComponentOpenFile(inComponent *carboncore.ComponentInstanceRecord, inFileRef *carboncore.FSRef, inPermissions int8, inRefNum int16) int

Deprecated: no longer supported

func AudioFileComponentOpenURL

func AudioFileComponentOpenURL(inComponent *carboncore.ComponentInstanceRecord, inFileRef unsafe.Pointer, inPermissions int8, inFileDescriptor int) int

func AudioFileComponentOpenWithCallbacks

func AudioFileComponentOpenWithCallbacks(inComponent *carboncore.ComponentInstanceRecord, inClientData unsafe.Pointer, inReadFunc unsafe.Pointer, inWriteFunc unsafe.Pointer, inGetSizeFunc unsafe.Pointer, inSetSizeFunc unsafe.Pointer) int

func AudioFileComponentOptimize

func AudioFileComponentOptimize(inComponent *carboncore.ComponentInstanceRecord) int

func AudioFileComponentReadBytes

func AudioFileComponentReadBytes(inComponent *carboncore.ComponentInstanceRecord, inUseCache uint8, inStartingByte int64, ioNumBytes *uint, outBuffer unsafe.Pointer) int

func AudioFileComponentReadPacketData

func AudioFileComponentReadPacketData(inComponent *carboncore.ComponentInstanceRecord, inUseCache uint8, ioNumBytes *uint, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, outBuffer unsafe.Pointer) int

func AudioFileComponentReadPackets

func AudioFileComponentReadPackets(inComponent *carboncore.ComponentInstanceRecord, inUseCache uint8, outNumBytes *uint, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, outBuffer unsafe.Pointer) int

func AudioFileComponentRemoveUserData

func AudioFileComponentRemoveUserData(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint) int

func AudioFileComponentSetProperty

func AudioFileComponentSetProperty(inComponent *carboncore.ComponentInstanceRecord, inPropertyID uint, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func AudioFileComponentSetUserData

func AudioFileComponentSetUserData(inComponent *carboncore.ComponentInstanceRecord, inUserDataID uint, inIndex uint, inUserDataSize uint, inUserData unsafe.Pointer) int

func AudioFileComponentWriteBytes

func AudioFileComponentWriteBytes(inComponent *carboncore.ComponentInstanceRecord, inUseCache uint8, inStartingByte int64, ioNumBytes *uint, inBuffer unsafe.Pointer) int

func AudioFileComponentWritePackets

func AudioFileComponentWritePackets(inComponent *carboncore.ComponentInstanceRecord, inUseCache uint8, inNumBytes uint, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, inBuffer unsafe.Pointer) int

func AudioFileCountUserData

func AudioFileCountUserData(inAudioFile unsafe.Pointer, inUserDataID uint, outNumberItems *uint) int

func AudioFileCreate deprecated

func AudioFileCreate(inParentRef *carboncore.FSRef, inFileName unsafe.Pointer, inFileType uint, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outNewFileRef *carboncore.FSRef, outAudioFile unsafe.Pointer) int

Deprecated: no longer supported

func AudioFileCreateWithURL

func AudioFileCreateWithURL(inFileRef unsafe.Pointer, inFileType uint, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile unsafe.Pointer) int

func AudioFileGetGlobalInfo

func AudioFileGetGlobalInfo(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, ioDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFileGetGlobalInfoSize

func AudioFileGetGlobalInfoSize(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, outDataSize *uint) int

func AudioFileGetProperty

func AudioFileGetProperty(inAudioFile unsafe.Pointer, inPropertyID uint, ioDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFileGetPropertyInfo

func AudioFileGetPropertyInfo(inAudioFile unsafe.Pointer, inPropertyID uint, outDataSize *uint, isWritable *uint) int

func AudioFileGetUserData

func AudioFileGetUserData(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint, ioUserDataSize *uint, outUserData unsafe.Pointer) int

func AudioFileGetUserDataAtOffset

func AudioFileGetUserDataAtOffset(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint, inOffset int64, ioUserDataSize *uint, outUserData unsafe.Pointer) int

func AudioFileGetUserDataSize

func AudioFileGetUserDataSize(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint, outUserDataSize *uint) int

func AudioFileGetUserDataSize64

func AudioFileGetUserDataSize64(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint, outUserDataSize *uint64) int

func AudioFileInitialize deprecated

func AudioFileInitialize(inFileRef *carboncore.FSRef, inFileType uint, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile unsafe.Pointer) int

Deprecated: no longer supported

func AudioFileInitializeWithCallbacks

func AudioFileInitializeWithCallbacks(inClientData unsafe.Pointer, inReadFunc unsafe.Pointer, inWriteFunc unsafe.Pointer, inGetSizeFunc unsafe.Pointer, inSetSizeFunc unsafe.Pointer, inFileType uint, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile unsafe.Pointer) int

func AudioFileOpen deprecated

func AudioFileOpen(inFileRef *carboncore.FSRef, inPermissions AudioFilePermissions, inFileTypeHint uint, outAudioFile unsafe.Pointer) int

Deprecated: no longer supported

func AudioFileOpenURL

func AudioFileOpenURL(inFileRef unsafe.Pointer, inPermissions AudioFilePermissions, inFileTypeHint uint, outAudioFile unsafe.Pointer) int

func AudioFileOpenWithCallbacks

func AudioFileOpenWithCallbacks(inClientData unsafe.Pointer, inReadFunc unsafe.Pointer, inWriteFunc unsafe.Pointer, inGetSizeFunc unsafe.Pointer, inSetSizeFunc unsafe.Pointer, inFileTypeHint uint, outAudioFile unsafe.Pointer) int

func AudioFileOptimize

func AudioFileOptimize(inAudioFile unsafe.Pointer) int

func AudioFileReadBytes

func AudioFileReadBytes(inAudioFile unsafe.Pointer, inUseCache uint8, inStartingByte int64, ioNumBytes *uint, outBuffer unsafe.Pointer) int

func AudioFileReadPacketData

func AudioFileReadPacketData(inAudioFile unsafe.Pointer, inUseCache uint8, ioNumBytes *uint, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, outBuffer unsafe.Pointer) int

func AudioFileReadPackets deprecated

func AudioFileReadPackets(inAudioFile unsafe.Pointer, inUseCache uint8, outNumBytes *uint, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, outBuffer unsafe.Pointer) int

Deprecated: no longer supported

func AudioFileRemoveUserData

func AudioFileRemoveUserData(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint) int

func AudioFileSetProperty

func AudioFileSetProperty(inAudioFile unsafe.Pointer, inPropertyID uint, inDataSize uint, inPropertyData unsafe.Pointer) int

func AudioFileSetUserData

func AudioFileSetUserData(inAudioFile unsafe.Pointer, inUserDataID uint, inIndex uint, inUserDataSize uint, inUserData unsafe.Pointer) int

func AudioFileStreamClose

func AudioFileStreamClose(inAudioFileStream unsafe.Pointer) int

func AudioFileStreamGetProperty

func AudioFileStreamGetProperty(inAudioFileStream unsafe.Pointer, inPropertyID uint, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFileStreamGetPropertyInfo

func AudioFileStreamGetPropertyInfo(inAudioFileStream unsafe.Pointer, inPropertyID uint, outPropertyDataSize *uint, outWritable *uint8) int

func AudioFileStreamOpen

func AudioFileStreamOpen(inClientData unsafe.Pointer, inPropertyListenerProc unsafe.Pointer, inPacketsProc unsafe.Pointer, inFileTypeHint uint, outAudioFileStream unsafe.Pointer) int

func AudioFileStreamParseBytes

func AudioFileStreamParseBytes(inAudioFileStream unsafe.Pointer, inDataByteSize uint, inData unsafe.Pointer, inFlags AudioFileStreamParseFlags) int

func AudioFileStreamSeek

func AudioFileStreamSeek(inAudioFileStream unsafe.Pointer, inPacketOffset int64, outDataByteOffset *int64, ioFlags *AudioFileStreamSeekFlags) int

func AudioFileStreamSetProperty

func AudioFileStreamSetProperty(inAudioFileStream unsafe.Pointer, inPropertyID uint, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func AudioFileWriteBytes

func AudioFileWriteBytes(inAudioFile unsafe.Pointer, inUseCache uint8, inStartingByte int64, ioNumBytes *uint, inBuffer unsafe.Pointer) int

func AudioFileWritePackets

func AudioFileWritePackets(inAudioFile unsafe.Pointer, inUseCache uint8, inNumBytes uint, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint, inBuffer unsafe.Pointer) int

func AudioFileWritePacketsWithDependencies

func AudioFileWritePacketsWithDependencies(inAudioFile unsafe.Pointer, inUseCache uint8, inNumBytes uint, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription, inStartingPacket int64, ioNumPackets *uint, inBuffer unsafe.Pointer) int

func AudioFormatGetProperty

func AudioFormatGetProperty(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioFormatGetPropertyInfo

func AudioFormatGetPropertyInfo(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, outPropertyDataSize *uint) int

func AudioHardwareServiceAddPropertyListener deprecated

func AudioHardwareServiceAddPropertyListener(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) int

Deprecated: no longer supported

func AudioHardwareServiceGetPropertyData deprecated

func AudioHardwareServiceGetPropertyData(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint, inQualifierData unsafe.Pointer, ioDataSize *uint, outData unsafe.Pointer) int

Deprecated: no longer supported

func AudioHardwareServiceGetPropertyDataSize deprecated

func AudioHardwareServiceGetPropertyDataSize(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint, inQualifierData unsafe.Pointer, outDataSize *uint) int

Deprecated: no longer supported

func AudioHardwareServiceHasProperty deprecated

func AudioHardwareServiceHasProperty(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress) uint8

Deprecated: no longer supported

func AudioHardwareServiceIsPropertySettable deprecated

func AudioHardwareServiceIsPropertySettable(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, outIsSettable *uint8) int

Deprecated: no longer supported

func AudioHardwareServiceRemovePropertyListener deprecated

func AudioHardwareServiceRemovePropertyListener(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) int

Deprecated: no longer supported

func AudioHardwareServiceSetPropertyData deprecated

func AudioHardwareServiceSetPropertyData(inObjectID uint, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint, inQualifierData unsafe.Pointer, inDataSize uint, inData unsafe.Pointer) int

Deprecated: no longer supported

func AudioOutputUnitStart

func AudioOutputUnitStart(ci *carboncore.ComponentInstanceRecord) int

func AudioOutputUnitStop

func AudioOutputUnitStop(ci *carboncore.ComponentInstanceRecord) int

func AudioQueueAddPropertyListener

func AudioQueueAddPropertyListener(inAQ unsafe.Pointer, inID uint, inProc unsafe.Pointer, inUserData unsafe.Pointer) int

func AudioQueueAllocateBuffer

func AudioQueueAllocateBuffer(inAQ unsafe.Pointer, inBufferByteSize uint, outBuffer **AudioQueueBuffer) int

func AudioQueueAllocateBufferWithPacketDescriptions

func AudioQueueAllocateBufferWithPacketDescriptions(inAQ unsafe.Pointer, inBufferByteSize uint, inNumberPacketDescriptions uint, outBuffer **AudioQueueBuffer) int

func AudioQueueCreateTimeline

func AudioQueueCreateTimeline(inAQ unsafe.Pointer, outTimeline unsafe.Pointer) int

func AudioQueueDeviceGetCurrentTime

func AudioQueueDeviceGetCurrentTime(inAQ unsafe.Pointer, outTimeStamp *coreaudiotypes.AudioTimeStamp) int

func AudioQueueDeviceGetNearestStartTime

func AudioQueueDeviceGetNearestStartTime(inAQ unsafe.Pointer, ioRequestedStartTime *coreaudiotypes.AudioTimeStamp, inFlags uint) int

func AudioQueueDeviceTranslateTime

func AudioQueueDeviceTranslateTime(inAQ unsafe.Pointer, inTime *coreaudiotypes.AudioTimeStamp, outTime *coreaudiotypes.AudioTimeStamp) int

func AudioQueueDispose

func AudioQueueDispose(inAQ unsafe.Pointer, inImmediate uint8) int

func AudioQueueDisposeTimeline

func AudioQueueDisposeTimeline(inAQ unsafe.Pointer, inTimeline unsafe.Pointer) int

func AudioQueueEnqueueBuffer

func AudioQueueEnqueueBuffer(inAQ unsafe.Pointer, inBuffer *AudioQueueBuffer, inNumPacketDescs uint, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription) int

func AudioQueueEnqueueBufferWithParameters

func AudioQueueEnqueueBufferWithParameters(inAQ unsafe.Pointer, inBuffer *AudioQueueBuffer, inNumPacketDescs uint, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription, inTrimFramesAtStart uint, inTrimFramesAtEnd uint, inNumParamValues uint, inParamValues *AudioQueueParameterEvent, inStartTime *coreaudiotypes.AudioTimeStamp, outActualStartTime *coreaudiotypes.AudioTimeStamp) int

func AudioQueueFlush

func AudioQueueFlush(inAQ unsafe.Pointer) int

func AudioQueueFreeBuffer

func AudioQueueFreeBuffer(inAQ unsafe.Pointer, inBuffer *AudioQueueBuffer) int

func AudioQueueGetCurrentTime

func AudioQueueGetCurrentTime(inAQ unsafe.Pointer, inTimeline unsafe.Pointer, outTimeStamp *coreaudiotypes.AudioTimeStamp, outTimelineDiscontinuity *uint8) int

func AudioQueueGetParameter

func AudioQueueGetParameter(inAQ unsafe.Pointer, inParamID uint, outValue *float32) int

func AudioQueueGetProperty

func AudioQueueGetProperty(inAQ unsafe.Pointer, inID uint, outData unsafe.Pointer, ioDataSize *uint) int

func AudioQueueGetPropertySize

func AudioQueueGetPropertySize(inAQ unsafe.Pointer, inID uint, outDataSize *uint) int

func AudioQueueNewInput

func AudioQueueNewInput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc unsafe.Pointer, inUserData unsafe.Pointer, inCallbackRunLoop unsafe.Pointer, inCallbackRunLoopMode unsafe.Pointer, inFlags uint, outAQ unsafe.Pointer) int

func AudioQueueNewInputWithDispatchQueue

func AudioQueueNewInputWithDispatchQueue(outAQ unsafe.Pointer, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint, inCallbackDispatchQueue *foundation.NSObject, inCallbackBlock func(unsafe.Pointer, *AudioQueueBuffer, *coreaudiotypes.AudioTimeStamp, uint, *coreaudiotypes.AudioStreamPacketDescription)) int

func AudioQueueNewOutput

func AudioQueueNewOutput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc unsafe.Pointer, inUserData unsafe.Pointer, inCallbackRunLoop unsafe.Pointer, inCallbackRunLoopMode unsafe.Pointer, inFlags uint, outAQ unsafe.Pointer) int

func AudioQueueNewOutputWithDispatchQueue

func AudioQueueNewOutputWithDispatchQueue(outAQ unsafe.Pointer, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint, inCallbackDispatchQueue *foundation.NSObject, inCallbackBlock func(unsafe.Pointer, *AudioQueueBuffer)) int

func AudioQueueOfflineRender

func AudioQueueOfflineRender(inAQ unsafe.Pointer, inTimestamp *coreaudiotypes.AudioTimeStamp, ioBuffer *AudioQueueBuffer, inNumberFrames uint) int

func AudioQueuePause

func AudioQueuePause(inAQ unsafe.Pointer) int

func AudioQueuePrime

func AudioQueuePrime(inAQ unsafe.Pointer, inNumberOfFramesToPrepare uint, outNumberOfFramesPrepared *uint) int

func AudioQueueProcessingTapDispose

func AudioQueueProcessingTapDispose(inAQTap unsafe.Pointer) int

func AudioQueueProcessingTapGetQueueTime

func AudioQueueProcessingTapGetQueueTime(inAQTap unsafe.Pointer, outQueueSampleTime *float64, outQueueFrameCount *uint) int

func AudioQueueProcessingTapGetSourceAudio

func AudioQueueProcessingTapGetSourceAudio(inAQTap unsafe.Pointer, inNumberFrames uint, ioTimeStamp *coreaudiotypes.AudioTimeStamp, outFlags *AudioQueueProcessingTapFlags, outNumberFrames *uint, ioData *coreaudiotypes.AudioBufferList) int

func AudioQueueProcessingTapNew

func AudioQueueProcessingTapNew(inAQ unsafe.Pointer, inCallback unsafe.Pointer, inClientData unsafe.Pointer, inFlags AudioQueueProcessingTapFlags, outMaxFrames *uint, outProcessingFormat *coreaudiotypes.AudioStreamBasicDescription, outAQTap unsafe.Pointer) int

func AudioQueueRemovePropertyListener

func AudioQueueRemovePropertyListener(inAQ unsafe.Pointer, inID uint, inProc unsafe.Pointer, inUserData unsafe.Pointer) int

func AudioQueueReset

func AudioQueueReset(inAQ unsafe.Pointer) int

func AudioQueueSetParameter

func AudioQueueSetParameter(inAQ unsafe.Pointer, inParamID uint, inValue float32) int

func AudioQueueSetProperty

func AudioQueueSetProperty(inAQ unsafe.Pointer, inID uint, inData unsafe.Pointer, inDataSize uint) int

func AudioQueueStart

func AudioQueueStart(inAQ unsafe.Pointer, inStartTime *coreaudiotypes.AudioTimeStamp) int

func AudioQueueStop

func AudioQueueStop(inAQ unsafe.Pointer, inImmediate uint8) int

func AudioServicesAddSystemSoundCompletion

func AudioServicesAddSystemSoundCompletion(inSystemSoundID uint, inRunLoop unsafe.Pointer, inRunLoopMode unsafe.Pointer, inCompletionRoutine unsafe.Pointer, inClientData unsafe.Pointer) int

func AudioServicesCreateSystemSoundID

func AudioServicesCreateSystemSoundID(inFileURL unsafe.Pointer, outSystemSoundID *uint) int

func AudioServicesDisposeSystemSoundID

func AudioServicesDisposeSystemSoundID(inSystemSoundID uint) int

func AudioServicesGetProperty

func AudioServicesGetProperty(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func AudioServicesGetPropertyInfo

func AudioServicesGetPropertyInfo(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, outPropertyDataSize *uint, outWritable *uint8) int

func AudioServicesPlayAlertSound

func AudioServicesPlayAlertSound(inSystemSoundID uint)

func AudioServicesPlayAlertSoundWithCompletion

func AudioServicesPlayAlertSoundWithCompletion(inSystemSoundID uint, inCompletionBlock func())

func AudioServicesPlaySystemSound

func AudioServicesPlaySystemSound(inSystemSoundID uint)

func AudioServicesPlaySystemSoundWithCompletion

func AudioServicesPlaySystemSoundWithCompletion(inSystemSoundID uint, inCompletionBlock func())

func AudioServicesRemoveSystemSoundCompletion

func AudioServicesRemoveSystemSoundCompletion(inSystemSoundID uint)

func AudioServicesSetProperty

func AudioServicesSetProperty(inPropertyID uint, inSpecifierSize uint, inSpecifier unsafe.Pointer, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func AudioUnitAddPropertyListener

func AudioUnitAddPropertyListener(inUnit *carboncore.ComponentInstanceRecord, inID uint, inProc unsafe.Pointer, inProcUserData unsafe.Pointer) int

func AudioUnitAddRenderNotify

func AudioUnitAddRenderNotify(inUnit *carboncore.ComponentInstanceRecord, inProc unsafe.Pointer, inProcUserData unsafe.Pointer) int

func AudioUnitExtensionCopyComponentList

func AudioUnitExtensionCopyComponentList(extensionIdentifier unsafe.Pointer) unsafe.Pointer

func AudioUnitExtensionSetComponentList

func AudioUnitExtensionSetComponentList(extensionIdentifier unsafe.Pointer, audioComponentInfo unsafe.Pointer) int

func AudioUnitGetParameter

func AudioUnitGetParameter(inUnit *carboncore.ComponentInstanceRecord, inID uint, inScope uint, inElement uint, outValue *float32) int

func AudioUnitGetProperty

func AudioUnitGetProperty(inUnit *carboncore.ComponentInstanceRecord, inID uint, inScope uint, inElement uint, outData unsafe.Pointer, ioDataSize *uint) int

func AudioUnitGetPropertyInfo

func AudioUnitGetPropertyInfo(inUnit *carboncore.ComponentInstanceRecord, inID uint, inScope uint, inElement uint, outDataSize *uint, outWritable *uint8) int

func AudioUnitInitialize

func AudioUnitInitialize(inUnit *carboncore.ComponentInstanceRecord) int

func AudioUnitProcess

func AudioUnitProcess(inUnit *carboncore.ComponentInstanceRecord, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint, ioData *coreaudiotypes.AudioBufferList) int

func AudioUnitProcessMultiple

func AudioUnitProcessMultiple(inUnit *carboncore.ComponentInstanceRecord, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint, inNumberInputBufferLists uint, inInputBufferLists *coreaudiotypes.AudioBufferList, inNumberOutputBufferLists uint, ioOutputBufferLists *coreaudiotypes.AudioBufferList) int

func AudioUnitRemovePropertyListenerWithUserData

func AudioUnitRemovePropertyListenerWithUserData(inUnit *carboncore.ComponentInstanceRecord, inID uint, inProc unsafe.Pointer, inProcUserData unsafe.Pointer) int

func AudioUnitRemoveRenderNotify

func AudioUnitRemoveRenderNotify(inUnit *carboncore.ComponentInstanceRecord, inProc unsafe.Pointer, inProcUserData unsafe.Pointer) int

func AudioUnitRender

func AudioUnitRender(inUnit *carboncore.ComponentInstanceRecord, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inOutputBusNumber uint, inNumberFrames uint, ioData *coreaudiotypes.AudioBufferList) int

func AudioUnitReset

func AudioUnitReset(inUnit *carboncore.ComponentInstanceRecord, inScope uint, inElement uint) int

func AudioUnitScheduleParameters

func AudioUnitScheduleParameters(inUnit *carboncore.ComponentInstanceRecord, inParameterEvent *AudioUnitParameterEvent, inNumParamEvents uint) int

func AudioUnitSetParameter

func AudioUnitSetParameter(inUnit *carboncore.ComponentInstanceRecord, inID uint, inScope uint, inElement uint, inValue float32, inBufferOffsetInFrames uint) int

func AudioUnitSetProperty

func AudioUnitSetProperty(inUnit *carboncore.ComponentInstanceRecord, inID uint, inScope uint, inElement uint, inData unsafe.Pointer, inDataSize uint) int

func AudioUnitUninitialize

func AudioUnitUninitialize(inUnit *carboncore.ComponentInstanceRecord) int

func AudioWorkIntervalCreate

func AudioWorkIntervalCreate(name string, clock accelerate.Os_clockid_t, attr unsafe.Pointer) unsafe.Pointer

func CAClockAddListener

func CAClockAddListener(inCAClock unsafe.Pointer, inListenerProc unsafe.Pointer, inUserData unsafe.Pointer) int

func CAClockArm

func CAClockArm(inCAClock unsafe.Pointer) int

func CAClockBarBeatTimeToBeats

func CAClockBarBeatTimeToBeats(inCAClock unsafe.Pointer, inBarBeatTime *CABarBeatTime, outBeats *float64) int

func CAClockBeatsToBarBeatTime

func CAClockBeatsToBarBeatTime(inCAClock unsafe.Pointer, inBeats float64, inSubbeatDivisor uint16, outBarBeatTime *CABarBeatTime) int

func CAClockDisarm

func CAClockDisarm(inCAClock unsafe.Pointer) int

func CAClockDispose

func CAClockDispose(inCAClock unsafe.Pointer) int

func CAClockGetCurrentTempo

func CAClockGetCurrentTempo(inCAClock unsafe.Pointer, outTempo *float64, outTimestamp *CAClockTime) int

func CAClockGetCurrentTime

func CAClockGetCurrentTime(inCAClock unsafe.Pointer, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int

func CAClockGetPlayRate

func CAClockGetPlayRate(inCAClock unsafe.Pointer, outPlayRate *float64) int

func CAClockGetProperty

func CAClockGetProperty(inCAClock unsafe.Pointer, inPropertyID CAClockPropertyID, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func CAClockGetPropertyInfo

func CAClockGetPropertyInfo(inCAClock unsafe.Pointer, inPropertyID CAClockPropertyID, outSize *uint, outWritable *uint8) int

func CAClockGetStartTime

func CAClockGetStartTime(inCAClock unsafe.Pointer, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int

func CAClockNew

func CAClockNew(inReservedFlags uint, outCAClock unsafe.Pointer) int

func CAClockParseMIDI

func CAClockParseMIDI(inCAClock unsafe.Pointer, inMIDIPacketList objc.ID) int

func CAClockRemoveListener

func CAClockRemoveListener(inCAClock unsafe.Pointer, inListenerProc unsafe.Pointer, inUserData unsafe.Pointer) int

func CAClockSMPTETimeToSeconds

func CAClockSMPTETimeToSeconds(inCAClock unsafe.Pointer, inSMPTETime *coreaudiotypes.SMPTETime, outSeconds *float64) int

func CAClockSecondsToSMPTETime

func CAClockSecondsToSMPTETime(inCAClock unsafe.Pointer, inSeconds float64, inSubframeDivisor uint16, outSMPTETime *coreaudiotypes.SMPTETime) int

func CAClockSetCurrentTempo

func CAClockSetCurrentTempo(inCAClock unsafe.Pointer, inTempo float64, inTimestamp *CAClockTime) int

func CAClockSetCurrentTime

func CAClockSetCurrentTime(inCAClock unsafe.Pointer, inTime *CAClockTime) int

func CAClockSetPlayRate

func CAClockSetPlayRate(inCAClock unsafe.Pointer, inPlayRate float64) int

func CAClockSetProperty

func CAClockSetProperty(inCAClock unsafe.Pointer, inPropertyID CAClockPropertyID, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func CAClockStart

func CAClockStart(inCAClock unsafe.Pointer) int

func CAClockStop

func CAClockStop(inCAClock unsafe.Pointer) int

func CAClockTranslateTime

func CAClockTranslateTime(inCAClock unsafe.Pointer, inTime *CAClockTime, inOutputTimeFormat CAClockTimeFormat, outTime *CAClockTime) int

func CAShow

func CAShow(inObject unsafe.Pointer)

Print the internal state of an object to os_log.

func CAShowFile

func CAShowFile(inObject unsafe.Pointer, inFile unsafe.Pointer)

Print the internal state of an object to the supplied FILE*.

func CopyInstrumentInfoFromSoundBank

func CopyInstrumentInfoFromSoundBank(inURL unsafe.Pointer, outInstrumentInfo unsafe.Pointer) int

func CopyNameFromSoundBank

func CopyNameFromSoundBank(inURL unsafe.Pointer, outName unsafe.Pointer) int

func DisposeAUGraph

func DisposeAUGraph(inGraph unsafe.Pointer) int

func DisposeMusicEventIterator

func DisposeMusicEventIterator(inIterator unsafe.Pointer) int

func DisposeMusicPlayer

func DisposeMusicPlayer(inPlayer unsafe.Pointer) int

func DisposeMusicSequence

func DisposeMusicSequence(inSequence unsafe.Pointer) int

func ExtAudioFileCreateNew deprecated

func ExtAudioFileCreateNew(inParentDir *carboncore.FSRef, inFileName unsafe.Pointer, inFileType uint, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, outExtAudioFile unsafe.Pointer) int

Deprecated: no longer supported

func ExtAudioFileCreateWithURL

func ExtAudioFileCreateWithURL(inURL unsafe.Pointer, inFileType uint, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, inFlags uint, outExtAudioFile unsafe.Pointer) int

func ExtAudioFileDispose

func ExtAudioFileDispose(inExtAudioFile unsafe.Pointer) int

func ExtAudioFileGetProperty

func ExtAudioFileGetProperty(inExtAudioFile unsafe.Pointer, inPropertyID uint, ioPropertyDataSize *uint, outPropertyData unsafe.Pointer) int

func ExtAudioFileGetPropertyInfo

func ExtAudioFileGetPropertyInfo(inExtAudioFile unsafe.Pointer, inPropertyID uint, outSize *uint, outWritable *uint8) int

func ExtAudioFileOpen deprecated

func ExtAudioFileOpen(inFSRef *carboncore.FSRef, outExtAudioFile unsafe.Pointer) int

Deprecated: no longer supported

func ExtAudioFileOpenURL

func ExtAudioFileOpenURL(inURL unsafe.Pointer, outExtAudioFile unsafe.Pointer) int

func ExtAudioFileRead

func ExtAudioFileRead(inExtAudioFile unsafe.Pointer, ioNumberFrames *uint, ioData *coreaudiotypes.AudioBufferList) int

func ExtAudioFileSeek

func ExtAudioFileSeek(inExtAudioFile unsafe.Pointer, inFrameOffset int64) int

func ExtAudioFileSetProperty

func ExtAudioFileSetProperty(inExtAudioFile unsafe.Pointer, inPropertyID uint, inPropertyDataSize uint, inPropertyData unsafe.Pointer) int

func ExtAudioFileTell

func ExtAudioFileTell(inExtAudioFile unsafe.Pointer, outFrameOffset *int64) int

func ExtAudioFileWrapAudioFileID

func ExtAudioFileWrapAudioFileID(inFileID unsafe.Pointer, inForWriting uint8, outExtAudioFile unsafe.Pointer) int

func ExtAudioFileWrite

func ExtAudioFileWrite(inExtAudioFile unsafe.Pointer, inNumberFrames uint, ioData *coreaudiotypes.AudioBufferList) int

func ExtAudioFileWriteAsync

func ExtAudioFileWriteAsync(inExtAudioFile unsafe.Pointer, inNumberFrames uint, ioData *coreaudiotypes.AudioBufferList) int

func GetNameFromSoundBank deprecated

func GetNameFromSoundBank(inSoundBankRef *carboncore.FSRef, outName unsafe.Pointer) int

Deprecated: no longer supported

func KAudioComponentInstanceInvalidationNotification

func KAudioComponentInstanceInvalidationNotification() uintptr

@constant kAudioComponentInstanceInvalidationNotification @abstract Notification generated when the connection to an audio unit extension process is invalidated. @discussion Register for this notification name with `[NSNotificationCenter defaultCenter]` or `CFNotificationCenterGetLocalCenter()`. The "object" refers to an AUAudioUnit instance to be observed, or can be nil to observe all instances. This notification can happen for several reasons, for instance the connection being invalidated or the process abnormally ending. There can be multiple notifications for the same event (i.e. a terminated process will also invalidate the connection). The notification's userInfo dictionary may contain the following keys, depending on the reason for the invalidation and the platform in which it's running: @"audioUnit", a NSValue whose pointerValue is the AudioUnit or AudioComponentInstance which is wrapping the AUAudioUnit communicating with the extension process. (This may be null if there is no such component instance.). For example: ``` [[NSNotificationCenter defaultCenter] addObserverForName:(NSString *)kAudioComponentInstanceInvalidationNotification object:nil queue:nil usingBlock:^(NSNotification *note) { AUAudioUnit *auAudioUnit = (AUAudioUnit *)note.object; NSValue *val = note.userInfo[@"audioUnit"]; AudioUnit audioUnit = (AudioUnit)val.pointerValue; NSLog(@"Received kAudioComponentInstanceInvalidationNotification: auAudioUnit %@, audioUnit %p", auAudioUnit, audioUnit); }]; ``` @"Service PID", a NSNumber with the process ID for the service. @"Host PID", a NSNumber with the process ID for the host. @"Executable Path", a NSString with the path for the executable that may be responsible for the abnormal exit. @"Descriptions" a NSArray of NSValues representing byte encoded AudioComponentDescriptions that may be responsible for the abnormal exit.

func KAudioComponentRegistrationsChangedNotification

func KAudioComponentRegistrationsChangedNotification() uintptr

@constant kAudioComponentRegistrationsChangedNotification @abstract Notification generated when the set of available AudioComponents changes. @discussion Register for this notification name with `[NSNotificationCenter defaultCenter]` or `CFNotificationCenterGetLocalCenter()`, using an object of NULL.

func MusicDeviceMIDIEvent

func MusicDeviceMIDIEvent(inUnit *carboncore.ComponentInstanceRecord, inStatus uint, inData1 uint, inData2 uint, inOffsetSampleFrame uint) int

func MusicDeviceMIDIEventList

func MusicDeviceMIDIEventList(inUnit *carboncore.ComponentInstanceRecord, inOffsetSampleFrame uint, evtList objc.ID) int

func MusicDevicePrepareInstrument deprecated

func MusicDevicePrepareInstrument(inUnit *carboncore.ComponentInstanceRecord, inInstrument uint) int

Deprecated: no longer supported

func MusicDeviceReleaseInstrument deprecated

func MusicDeviceReleaseInstrument(inUnit *carboncore.ComponentInstanceRecord, inInstrument uint) int

Deprecated: no longer supported

func MusicDeviceStartNote

func MusicDeviceStartNote(inUnit *carboncore.ComponentInstanceRecord, inInstrument uint, inGroupID uint, outNoteInstanceID *uint, inOffsetSampleFrame uint, inParams *MusicDeviceNoteParams) int

func MusicDeviceStopNote

func MusicDeviceStopNote(inUnit *carboncore.ComponentInstanceRecord, inGroupID uint, inNoteInstanceID uint, inOffsetSampleFrame uint) int

func MusicDeviceSysEx

func MusicDeviceSysEx(inUnit *carboncore.ComponentInstanceRecord, inData *uint8, inLength uint) int

func MusicEventIteratorDeleteEvent

func MusicEventIteratorDeleteEvent(inIterator unsafe.Pointer) int

func MusicEventIteratorGetEventInfo

func MusicEventIteratorGetEventInfo(inIterator unsafe.Pointer, outTimeStamp *float64, outEventType *uint, outEventData unsafe.Pointer, outEventDataSize *uint) int

func MusicEventIteratorHasCurrentEvent

func MusicEventIteratorHasCurrentEvent(inIterator unsafe.Pointer, outHasCurEvent *uint8) int

func MusicEventIteratorHasNextEvent

func MusicEventIteratorHasNextEvent(inIterator unsafe.Pointer, outHasNextEvent *uint8) int

func MusicEventIteratorHasPreviousEvent

func MusicEventIteratorHasPreviousEvent(inIterator unsafe.Pointer, outHasPrevEvent *uint8) int

func MusicEventIteratorNextEvent

func MusicEventIteratorNextEvent(inIterator unsafe.Pointer) int

func MusicEventIteratorPreviousEvent

func MusicEventIteratorPreviousEvent(inIterator unsafe.Pointer) int

func MusicEventIteratorSeek

func MusicEventIteratorSeek(inIterator unsafe.Pointer, inTimeStamp float64) int

func MusicEventIteratorSetEventInfo

func MusicEventIteratorSetEventInfo(inIterator unsafe.Pointer, inEventType uint, inEventData unsafe.Pointer) int

func MusicEventIteratorSetEventTime

func MusicEventIteratorSetEventTime(inIterator unsafe.Pointer, inTimeStamp float64) int

func MusicPlayerGetBeatsForHostTime

func MusicPlayerGetBeatsForHostTime(inPlayer unsafe.Pointer, inHostTime uint64, outBeats *float64) int

func MusicPlayerGetHostTimeForBeats

func MusicPlayerGetHostTimeForBeats(inPlayer unsafe.Pointer, inBeats float64, outHostTime *uint64) int

func MusicPlayerGetPlayRateScalar

func MusicPlayerGetPlayRateScalar(inPlayer unsafe.Pointer, outScaleRate *float64) int

func MusicPlayerGetSequence

func MusicPlayerGetSequence(inPlayer unsafe.Pointer, outSequence unsafe.Pointer) int

func MusicPlayerGetTime

func MusicPlayerGetTime(inPlayer unsafe.Pointer, outTime *float64) int

func MusicPlayerIsPlaying

func MusicPlayerIsPlaying(inPlayer unsafe.Pointer, outIsPlaying *uint8) int

func MusicPlayerPreroll

func MusicPlayerPreroll(inPlayer unsafe.Pointer) int

func MusicPlayerSetPlayRateScalar

func MusicPlayerSetPlayRateScalar(inPlayer unsafe.Pointer, inScaleRate float64) int

func MusicPlayerSetSequence

func MusicPlayerSetSequence(inPlayer unsafe.Pointer, inSequence unsafe.Pointer) int

func MusicPlayerSetTime

func MusicPlayerSetTime(inPlayer unsafe.Pointer, inTime float64) int

func MusicPlayerStart

func MusicPlayerStart(inPlayer unsafe.Pointer) int

func MusicPlayerStop

func MusicPlayerStop(inPlayer unsafe.Pointer) int

func MusicSequenceBarBeatTimeToBeats

func MusicSequenceBarBeatTimeToBeats(inSequence unsafe.Pointer, inBarBeatTime *CABarBeatTime, outBeats *float64) int

func MusicSequenceBeatsToBarBeatTime

func MusicSequenceBeatsToBarBeatTime(inSequence unsafe.Pointer, inBeats float64, inSubbeatDivisor uint, outBarBeatTime *CABarBeatTime) int

func MusicSequenceDisposeTrack

func MusicSequenceDisposeTrack(inSequence unsafe.Pointer, inTrack unsafe.Pointer) int

func MusicSequenceFileCreate

func MusicSequenceFileCreate(inSequence unsafe.Pointer, inFileRef unsafe.Pointer, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16) int

func MusicSequenceFileCreateData

func MusicSequenceFileCreateData(inSequence unsafe.Pointer, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16, outData unsafe.Pointer) int

func MusicSequenceFileLoad

func MusicSequenceFileLoad(inSequence unsafe.Pointer, inFileRef unsafe.Pointer, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) int

func MusicSequenceFileLoadData

func MusicSequenceFileLoadData(inSequence unsafe.Pointer, inData unsafe.Pointer, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) int

func MusicSequenceGetAUGraph

func MusicSequenceGetAUGraph(inSequence unsafe.Pointer, outGraph unsafe.Pointer) int

func MusicSequenceGetBeatsForSeconds

func MusicSequenceGetBeatsForSeconds(inSequence unsafe.Pointer, inSeconds float64, outBeats *float64) int

func MusicSequenceGetIndTrack

func MusicSequenceGetIndTrack(inSequence unsafe.Pointer, inTrackIndex uint, outTrack unsafe.Pointer) int

func MusicSequenceGetInfoDictionary

func MusicSequenceGetInfoDictionary(inSequence unsafe.Pointer) unsafe.Pointer

func MusicSequenceGetSMPTEResolution

func MusicSequenceGetSMPTEResolution(inRes int16, fps *int8, ticks *uint8)

func MusicSequenceGetSecondsForBeats

func MusicSequenceGetSecondsForBeats(inSequence unsafe.Pointer, inBeats float64, outSeconds *float64) int

func MusicSequenceGetSequenceType

func MusicSequenceGetSequenceType(inSequence unsafe.Pointer, outType *MusicSequenceType) int

func MusicSequenceGetTempoTrack

func MusicSequenceGetTempoTrack(inSequence unsafe.Pointer, outTrack unsafe.Pointer) int

func MusicSequenceGetTrackCount

func MusicSequenceGetTrackCount(inSequence unsafe.Pointer, outNumberOfTracks *uint) int

func MusicSequenceGetTrackIndex

func MusicSequenceGetTrackIndex(inSequence unsafe.Pointer, inTrack unsafe.Pointer, outTrackIndex *uint) int

func MusicSequenceLoadSMFDataWithFlags deprecated

func MusicSequenceLoadSMFDataWithFlags(inSequence unsafe.Pointer, inData unsafe.Pointer, inFlags MusicSequenceLoadFlags) int

Deprecated: no longer supported

func MusicSequenceLoadSMFWithFlags deprecated

func MusicSequenceLoadSMFWithFlags(inSequence unsafe.Pointer, inFileRef *carboncore.FSRef, inFlags MusicSequenceLoadFlags) int

Deprecated: no longer supported

func MusicSequenceNewTrack

func MusicSequenceNewTrack(inSequence unsafe.Pointer, outTrack unsafe.Pointer) int

func MusicSequenceReverse

func MusicSequenceReverse(inSequence unsafe.Pointer) int

func MusicSequenceSaveMIDIFile deprecated

func MusicSequenceSaveMIDIFile(inSequence unsafe.Pointer, inParentDirectory *carboncore.FSRef, inFileName unsafe.Pointer, inResolution uint16, inFlags uint) int

Deprecated: no longer supported

func MusicSequenceSaveSMFData deprecated

func MusicSequenceSaveSMFData(inSequence unsafe.Pointer, outData unsafe.Pointer, inResolution uint16) int

Deprecated: no longer supported

func MusicSequenceSetAUGraph

func MusicSequenceSetAUGraph(inSequence unsafe.Pointer, inGraph unsafe.Pointer) int

func MusicSequenceSetMIDIEndpoint

func MusicSequenceSetMIDIEndpoint(inSequence unsafe.Pointer, inEndpoint uint) int

func MusicSequenceSetSMPTEResolution

func MusicSequenceSetSMPTEResolution(fps int8, ticks uint8) int16

func MusicSequenceSetSequenceType

func MusicSequenceSetSequenceType(inSequence unsafe.Pointer, inType MusicSequenceType) int

func MusicSequenceSetUserCallback

func MusicSequenceSetUserCallback(inSequence unsafe.Pointer, inCallback unsafe.Pointer, inClientData unsafe.Pointer) int

func MusicTrackClear

func MusicTrackClear(inTrack unsafe.Pointer, inStartTime float64, inEndTime float64) int

func MusicTrackCopyInsert

func MusicTrackCopyInsert(inSourceTrack unsafe.Pointer, inSourceStartTime float64, inSourceEndTime float64, inDestTrack unsafe.Pointer, inDestInsertTime float64) int

func MusicTrackCut

func MusicTrackCut(inTrack unsafe.Pointer, inStartTime float64, inEndTime float64) int

func MusicTrackGetDestMIDIEndpoint

func MusicTrackGetDestMIDIEndpoint(inTrack unsafe.Pointer, outEndpoint *uint) int

func MusicTrackGetDestNode

func MusicTrackGetDestNode(inTrack unsafe.Pointer, outNode *int) int

func MusicTrackGetProperty

func MusicTrackGetProperty(inTrack unsafe.Pointer, inPropertyID uint, outData unsafe.Pointer, ioLength *uint) int

func MusicTrackGetSequence

func MusicTrackGetSequence(inTrack unsafe.Pointer, outSequence unsafe.Pointer) int

func MusicTrackMerge

func MusicTrackMerge(inSourceTrack unsafe.Pointer, inSourceStartTime float64, inSourceEndTime float64, inDestTrack unsafe.Pointer, inDestInsertTime float64) int

func MusicTrackMoveEvents

func MusicTrackMoveEvents(inTrack unsafe.Pointer, inStartTime float64, inEndTime float64, inMoveTime float64) int

func MusicTrackNewAUPresetEvent

func MusicTrackNewAUPresetEvent(inTrack unsafe.Pointer, inTimeStamp float64, inPresetEvent *AUPresetEvent) int

func MusicTrackNewExtendedControlEvent deprecated

func MusicTrackNewExtendedControlEvent(inTrack unsafe.Pointer, inTimeStamp float64, inInfo *ExtendedControlEvent) int

Deprecated: no longer supported

func MusicTrackNewExtendedNoteEvent

func MusicTrackNewExtendedNoteEvent(inTrack unsafe.Pointer, inTimeStamp float64, inInfo *ExtendedNoteOnEvent) int

func MusicTrackNewExtendedTempoEvent

func MusicTrackNewExtendedTempoEvent(inTrack unsafe.Pointer, inTimeStamp float64, inBPM float64) int

func MusicTrackNewMIDIChannelEvent

func MusicTrackNewMIDIChannelEvent(inTrack unsafe.Pointer, inTimeStamp float64, inMessage *MIDIChannelMessage) int

func MusicTrackNewMIDINoteEvent

func MusicTrackNewMIDINoteEvent(inTrack unsafe.Pointer, inTimeStamp float64, inMessage *MIDINoteMessage) int

func MusicTrackNewMIDIRawDataEvent

func MusicTrackNewMIDIRawDataEvent(inTrack unsafe.Pointer, inTimeStamp float64, inRawData *MIDIRawData) int

func MusicTrackNewMetaEvent

func MusicTrackNewMetaEvent(inTrack unsafe.Pointer, inTimeStamp float64, inMetaEvent *MIDIMetaEvent) int

func MusicTrackNewParameterEvent

func MusicTrackNewParameterEvent(inTrack unsafe.Pointer, inTimeStamp float64, inInfo *ParameterEvent) int

func MusicTrackNewUserEvent

func MusicTrackNewUserEvent(inTrack unsafe.Pointer, inTimeStamp float64, inUserData *MusicEventUserData) int

func MusicTrackSetDestMIDIEndpoint

func MusicTrackSetDestMIDIEndpoint(inTrack unsafe.Pointer, inEndpoint uint) int

func MusicTrackSetDestNode

func MusicTrackSetDestNode(inTrack unsafe.Pointer, inNode int) int

func MusicTrackSetProperty

func MusicTrackSetProperty(inTrack unsafe.Pointer, inPropertyID uint, inData unsafe.Pointer, inLength uint) int

func NewAUGraph

func NewAUGraph(outGraph unsafe.Pointer) int

func NewMusicEventIterator

func NewMusicEventIterator(inTrack unsafe.Pointer, outIterator unsafe.Pointer) int

func NewMusicPlayer

func NewMusicPlayer(outPlayer unsafe.Pointer) int

func NewMusicSequence

func NewMusicSequence(outSequence unsafe.Pointer) int

func NewMusicTrackFrom deprecated

func NewMusicTrackFrom(inSourceTrack unsafe.Pointer, inSourceStartTime float64, inSourceEndTime float64, outNewTrack unsafe.Pointer) int

Deprecated: no longer supported

func NumAudioFileMarkersToNumBytes

func NumAudioFileMarkersToNumBytes(inNumMarkers uint) uint

func NumBytesToNumAudioFileMarkers

func NumBytesToNumAudioFileMarkers(inNumBytes uint) uint

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type AU3DMixerAttenuationCurve

type AU3DMixerAttenuationCurve int64
const (
	K3DMixerAttenuationCurve_Power       AU3DMixerAttenuationCurve = 0
	K3DMixerAttenuationCurve_Exponential AU3DMixerAttenuationCurve = 1
	K3DMixerAttenuationCurve_Inverse     AU3DMixerAttenuationCurve = 2
	K3DMixerAttenuationCurve_Linear      AU3DMixerAttenuationCurve = 3
)

func (AU3DMixerAttenuationCurve) String

func (e AU3DMixerAttenuationCurve) String() string

type AU3DMixerRenderingFlags

type AU3DMixerRenderingFlags int64
const (
	K3DMixerRenderingFlags_InterAuralDelay           AU3DMixerRenderingFlags = 1
	K3DMixerRenderingFlags_DopplerShift              AU3DMixerRenderingFlags = 2
	K3DMixerRenderingFlags_DistanceAttenuation       AU3DMixerRenderingFlags = 4
	K3DMixerRenderingFlags_DistanceFilter            AU3DMixerRenderingFlags = 8
	K3DMixerRenderingFlags_DistanceDiffusion         AU3DMixerRenderingFlags = 16
	K3DMixerRenderingFlags_LinearDistanceAttenuation AU3DMixerRenderingFlags = 32
	K3DMixerRenderingFlags_ConstantReverbBlend       AU3DMixerRenderingFlags = 64
)

func (AU3DMixerRenderingFlags) String

func (e AU3DMixerRenderingFlags) String() string

type AUAudioMixRenderingStyle

type AUAudioMixRenderingStyle int64
const (
	KAudioMixRenderingStyle_Cinematic               AUAudioMixRenderingStyle = 0
	KAudioMixRenderingStyle_Studio                  AUAudioMixRenderingStyle = 1
	KAudioMixRenderingStyle_InFrame                 AUAudioMixRenderingStyle = 2
	KAudioMixRenderingStyle_CinematicBackgroundStem AUAudioMixRenderingStyle = 3
	KAudioMixRenderingStyle_CinematicForegroundStem AUAudioMixRenderingStyle = 4
	KAudioMixRenderingStyle_StudioForegroundStem    AUAudioMixRenderingStyle = 5
	KAudioMixRenderingStyle_InFrameForegroundStem   AUAudioMixRenderingStyle = 6
	KAudioMixRenderingStyle_Standard                AUAudioMixRenderingStyle = 7
	KAudioMixRenderingStyle_StudioBackgroundStem    AUAudioMixRenderingStyle = 8
	KAudioMixRenderingStyle_InFrameBackgroundStem   AUAudioMixRenderingStyle = 9
)

func (AUAudioMixRenderingStyle) String

func (e AUAudioMixRenderingStyle) String() string

type AUAudioUnit

type AUAudioUnit struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auaudiounit

func AUAudioUnitFromID

func AUAudioUnitFromID(id objc.ID) *AUAudioUnit

func (*AUAudioUnit) AllParameterValues

func (o *AUAudioUnit) AllParameterValues() bool

func (*AUAudioUnit) AllocateRenderResourcesAndReturnError

func (o *AUAudioUnit) AllocateRenderResourcesAndReturnError() (bool, error)

@method allocateRenderResourcesAndReturnError: @brief Allocate resources required to render. @discussion Hosts must call this before beginning to render. Subclassers should call the superclass implementation. Bridged to the v2 API AudioUnitInitialize().

func (*AUAudioUnit) AudioUnitMIDIProtocol

func (o *AUAudioUnit) AudioUnitMIDIProtocol() objc.ID

@property AudioUnitMIDIProtocol @brief The MIDI protocol used by the Audio Unit for receiving MIDIEventList data. @discussion Subclassers should override to return the desired protocol in which the Audio Unit wants to receive input MIDI data, otherwise the Audio Unit will default to receiving legacy MIDI. All translatable messages will be converted (if necessary) to this protocol prior to delivery to the Audio Unit. This is bridged to the v2 API property kAudioUnitProperty_AudioUnitMIDIProtocol.

func (*AUAudioUnit) AudioUnitName

func (o *AUAudioUnit) AudioUnitName() *foundation.NSString

@property audioUnitName @brief The audio unit's name.

func (*AUAudioUnit) AudioUnitShortName

func (o *AUAudioUnit) AudioUnitShortName() *foundation.NSString

@property audioUnitShortName @brief A short name for the audio unit. @discussion Audio unit host applications can display this name in situations where the audioUnitName might be too long. The recommended length is up to 16 characters. Host applications may truncate it.

func (*AUAudioUnit) CanPerformInput

func (o *AUAudioUnit) CanPerformInput() bool

@property canPerformInput @brief Whether the I/O device can perform input.

func (*AUAudioUnit) CanPerformOutput

func (o *AUAudioUnit) CanPerformOutput() bool

@property canPerformOutput @brief Whether the I/O device can perform output.

func (*AUAudioUnit) CanProcessInPlace

func (o *AUAudioUnit) CanProcessInPlace() bool

@property canProcessInPlace @brief Expresses whether an audio unit can process in place. @discussion In-place processing is the ability for an audio unit to transform an input signal to an output signal in-place in the input buffer, without requiring a separate output buffer. A host can express its desire to process in place by using null mData pointers in the output buffer list. The audio unit may process in-place in the input buffers. See the discussion of renderBlock. Partially bridged to the v2 property kAudioUnitProperty_InPlaceProcessing; in v3 it is not settable. Defaults to NO. Subclassers can override to return YES.

func (*AUAudioUnit) ChannelCapabilities

func (o *AUAudioUnit) ChannelCapabilities() *foundation.NSArray[*foundation.NSNumber]

@property channelCapabilities @brief Expresses valid combinations of input and output channel counts. @discussion Elements are NSNumber containing integers; [0]=input count, [1]=output count, [2]=2nd input count, [3]=2nd output count, etc. An input, output count of (2, 2) signifies that the audio unit can process 2 input channels to 2 output channels. Negative numbers (-1, -2) indicate *any* number of channels. (-1, -1) means any number of channels on input and output as long as they are the same. (-1, -2) means any number of channels on input or output, without the requirement that the counts are the same. A negative number less than -2 is used to indicate a total number of channels across every bus in that scope, regardless of how many channels are set on any particular bus. For example, (-16, 2) indicates that a unit can accept up to 16 channels of input across its input busses, but will only produce 2 channels of output. Zero on either side (though typically input) means "not applicable", because there are no elements on that side. Bridged to the v2 property kAudioUnitProperty_SupportedNumChannels.

func (*AUAudioUnit) ChannelMap

func (o *AUAudioUnit) ChannelMap() *foundation.NSArray[*foundation.NSNumber]

@property channelMap @brief Specify a mapping of input channels to output channels. @discussion Converter and input/output audio units may support re-ordering or splitting of input channels to output channels. The number of channels in the channel map is the number of channels of the destination (output format). The channel map entries contain a channel number of the source channel that should be mapped to that destination channel. If -1 is specified, then that destination channel will not contain any channel from the source (so it will be silent). If the property value is nil, then the audio unit does not support this property. Bridged to the v2 property kAudioOutputUnitProperty_ChannelMap.

func (*AUAudioUnit) Component

func (o *AUAudioUnit) Component() unsafe.Pointer

@property component @brief The AudioComponent which was found based on componentDescription when the audio unit was created.

func (*AUAudioUnit) ComponentDescription

func (o *AUAudioUnit) ComponentDescription() AudioComponentDescription

@property componentDescription @brief The AudioComponentDescription with which the audio unit was created.

func (*AUAudioUnit) ComponentName

func (o *AUAudioUnit) ComponentName() *foundation.NSString

@property componentName @brief The unit's component's name. @discussion By convention, an audio unit's component name is its manufacturer's name, plus ": ", plus the audio unit's name. The audioUnitName and manufacturerName properties are derived from the component name.

func (*AUAudioUnit) ComponentVersion

func (o *AUAudioUnit) ComponentVersion() uint32

@property componentVersion @brief The unit's component's version.

func (*AUAudioUnit) ContextName

func (o *AUAudioUnit) ContextName() *foundation.NSString

@property contextName @brief Information about the host context in which the audio unit is connected, for display in the audio unit's view. @discussion For example, a host could set "track 3" as the context, so that the audio unit's view could then display to the user "My audio unit on track 3". Bridged to the v2 property kAudioUnitProperty_ContextName.

func (*AUAudioUnit) CurrentPreset

func (o *AUAudioUnit) CurrentPreset() *AUAudioUnitPreset

@property currentPreset @brief The audio unit's last-selected preset. @discussion Hosts can let the user select a preset by setting this property. Note that when getting this property, it does not reflect whether parameters may have been modified since the preset was selected. Bridged to the v2 property kAudioUnitProperty_PresentPreset.

func (*AUAudioUnit) DeallocateRenderResources

func (o *AUAudioUnit) DeallocateRenderResources()

@method deallocateRenderResources @brief Deallocate resources allocated by allocateRenderResourcesAndReturnError: @discussion Hosts should call this after finishing rendering. Subclassers should call the superclass implementation. Bridged to the v2 API AudioUnitUninitialize().

func (*AUAudioUnit) DeleteUserPresetError

func (o *AUAudioUnit) DeleteUserPresetError(userPreset *AUAudioUnitPreset) (bool, error)

@method deleteUserPreset:error @brief Remove a user preset. @discussion The user preset will be removed from userPresets and will be permanently deleted. The default implementation of this method will delete the user preset from an internal location. Audio Units are free to override this method to operate on a different location (e.g. their iCloud container). @param userPreset The preset to be deleted. @param outError In the event of a failure, the method will return NO and outError will be set to an NSError, describing the problem. Some possible errors: - domain: NSOSStatusErrorDomain code: kAudioUnitErr_NoConnection - domain: NSPOSIXErrorDomain code: ENOENT - domain: NSOSStatusErrorDomain code: kAudioUnitErr_InvalidFilePath @return YES for success. NO in the event of a failure, in which case the error is returned in outError.

func (*AUAudioUnit) DeviceID

func (o *AUAudioUnit) DeviceID() uint

@property device @brief Get the I/O hardware device.

func (*AUAudioUnit) DeviceInputLatency

func (o *AUAudioUnit) DeviceInputLatency() float64

@property deviceInputLatency @brief The audio device's input latency, in seconds. @discussion Bridged to the HAL property kAudioDevicePropertyLatency, which is implemented by v2 input/output units.

func (*AUAudioUnit) DeviceOutputLatency

func (o *AUAudioUnit) DeviceOutputLatency() float64

@property deviceOutputLatency @brief The audio device's output latency, in seconds. @discussion Bridged to the HAL property kAudioDevicePropertyLatency, which is implemented by v2 input/output units.

func (*AUAudioUnit) DisableProfileCableOnChannelError

func (o *AUAudioUnit) DisableProfileCableOnChannelError(profile objc.ID, cable uint8, channel uint8) (bool, error)

@method disableProfile:cable:onChannel:error: @brief Disable a MIDI-CI Profile on the specified cable/channel. @param profile The MIDI-CI profile to be disabled. @param cable The virtual MIDI cable. @param channel The MIDI channel. @param outError Returned in the event of failure. @return YES for success. NO in the event of a failure, in which case the error is returned in outError.

func (*AUAudioUnit) EnableProfileCableOnChannelError

func (o *AUAudioUnit) EnableProfileCableOnChannelError(profile objc.ID, cable uint8, channel uint8) (bool, error)

@method enableProfile:cable:onChannel:error: @brief Enable a MIDI-CI Profile on the specified cable/channel. @param profile The MIDI-CI profile to be enabled. @param cable The virtual MIDI cable. @param channel The MIDI channel. @param outError Returned in the event of failure. @return YES for success. NO in the event of a failure, in which case the error is returned in outError.

func (*AUAudioUnit) FactoryPresets

func (o *AUAudioUnit) FactoryPresets() *foundation.NSArray[*AUAudioUnitPreset]

@property factoryPresets @brief A collection of presets provided by the audio unit's developer. @discussion A preset provides users of an audio unit with an easily-selectable, fine-tuned set of parameters provided by the developer. This property returns all of the available factory presets. Bridged to the v2 property kAudioUnitProperty_FactoryPresets.

func (*AUAudioUnit) FullState

@property fullState @brief A persistable snapshot of the Audio Unit's properties and parameters, suitable for saving as a user preset. @discussion Hosts may use this property to save and restore the state of an Audio Unit being used in a user preset or document. The Audio Unit should not persist transitory properties such as stream formats, but should save and restore all parameters and custom properties. The base class implementation of this property saves the values of all parameters currently in the parameter tree. A subclass which dynamically produces multiple variants of the parameter tree needs to be aware that the serialization method does a depth-first preorder traversal of the tree. Bridged to the v2 property kAudioUnitProperty_ClassInfo.

func (*AUAudioUnit) FullStateForDocument

func (o *AUAudioUnit) FullStateForDocument() *foundation.NSDictionary[*foundation.NSString, objc.ID]

@property fullStateForDocument @brief A persistable snapshot of the audio unit's properties and parameters, suitable for saving in a user's document. @discussion This property is distinct from fullState in that some state is suitable for saving in user presets, while other state is not. For example, a synthesizer's master tuning setting could be considered global state, inappropriate for storing in reusable presets, but desirable for storing in a document for a specific live performance. Hosts saving documents should use this property. If the audio unit does not implement it, the base class simply sets/gets fullState. Bridged to the v2 property kAudioUnitProperty_ClassInfoFromDocument.

func (*AUAudioUnit) HostMIDIProtocol

func (o *AUAudioUnit) HostMIDIProtocol() objc.ID

@property hostMIDIProtocol @brief The MIDI protocol to be used by the host for receiving MIDIEventList data. @discussion Hosts should set this property to the protocol they wish to receive MIDIEventList data from the Audio Unit. This should be set prior to initialization, all translatable messages will be converted (if necessary) to this property's protocol prior to delivery to the host. Host should setup in the following order: - Set hostMIDIProtocol - Set MIDIOutputEventListBlock - Call allocateRenderResourcesAndReturnError This is bridged to the v2 API property kAudioUnitProperty_HostMIDIProtocol. Notes: - If overriding this property, subclassers must call [super setHostMIDIProtocol:] - hostMIDIProtocol should be set before attempting to query AudioUnitMIDIProtocol or calling allocateRenderResourcesAndReturnError to allow Audio Units to optionally match their input MIDI protocol to the desired host protocol and prevent protocol conversion.

func (*AUAudioUnit) InitWithComponentDescriptionError

func (o *AUAudioUnit) InitWithComponentDescriptionError(componentDescription AudioComponentDescription) (*AUAudioUnit, error)

@method initWithComponentDescription:error: @brief Convenience initializer (omits options).

func (*AUAudioUnit) InitWithComponentDescriptionOptionsError

func (o *AUAudioUnit) InitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (*AUAudioUnit, error)

@method initWithComponentDescription:options:error: @brief Designated initializer. @param componentDescription A single AUAudioUnit subclass may implement multiple audio units, for example, an effect that can also function as a generator, or a cluster of related effects. The component description specifies the component which was instantiated. @param options Options for loading the unit in-process or out-of-process. @param outError Returned in the event of failure.

func (*AUAudioUnit) InputBusses

func (o *AUAudioUnit) InputBusses() *AUAudioUnitBusArray

@property inputBusses @brief An audio unit's audio input connection points. @discussion Subclassers must override this property's getter. The implementation should return the same object every time it is asked for it, since clients can install KVO observers on it.

func (*AUAudioUnit) InputHandler

func (o *AUAudioUnit) InputHandler() objc.Block

@property inputHandler @brief The block that the output unit will call to notify when input is available. @discussion See discussion for AUInputHandler.

func (*AUAudioUnit) IntendedSpatialExperience

func (o *AUAudioUnit) IntendedSpatialExperience() unsafe.Pointer

func (*AUAudioUnit) InternalRenderBlock

func (o *AUAudioUnit) InternalRenderBlock() objc.Block

Block which subclassers must provide (via a getter) to implement rendering.

func (*AUAudioUnit) IsInputEnabled

func (o *AUAudioUnit) IsInputEnabled() bool

@property inputEnabled @brief Flag enabling audio input from the unit. @discussion Input is disabled by default. This must be set to YES if input audio is desired. Setting to YES will have no effect if canPerformInput is false.

func (*AUAudioUnit) IsLoadedInProcess

func (o *AUAudioUnit) IsLoadedInProcess() bool

@property isLoadedInProcess @brief Set to YES when an AUAudioUnit is loaded in-process @discussion If the AUAudioUnit is instantiated with kAudioComponentInstantiation_LoadInProcess, but the audio unit is not packaged properly to support loading in-process, the system will silently fall back to loading the audio unit out-of-process. This property can be used to determine whether the instantiation succeeded as intended and the audio unit is running in-process. The presence of an extension process is not sufficient indication that the audio unit failed to load in-process, since the framework might launch the audio unit extension process to fulfill auxiliary functionality. If the audio unit is loaded in-process then rendering is done in the host process. Other operations that are not essential to rendering audio, might be done in the audio unit's extension process.

func (*AUAudioUnit) IsMusicDeviceOrEffect

func (o *AUAudioUnit) IsMusicDeviceOrEffect() bool

@property musicDeviceOrEffect @brief Specifies whether an audio unit responds to MIDI events. @discussion This is implemented in the base class and returns YES if the component type is music device or music effect.

func (*AUAudioUnit) IsOutputEnabled

func (o *AUAudioUnit) IsOutputEnabled() bool

@property outputEnabled @brief Flag enabling audio output from the unit. @discussion Output is enabled by default. Setting to YES will have no effect if canPerformOutput is false.

func (*AUAudioUnit) IsRenderingOffline

func (o *AUAudioUnit) IsRenderingOffline() bool

@property renderingOffline @brief Communicates to an audio unit that it is rendering offline. @discussion A host should set this property when using an audio unit in a context where there are no realtime deadlines, before asking the unit to allocate render resources. An audio unit may respond by using a more expensive signal processing algorithm, or allowing itself to block at render time if data being generated on secondary work threads is not ready in time. (Normally, in a realtime thread, this data would have to be dropped). Bridged to the v2 property kAudioUnitProperty_OfflineRender.

func (*AUAudioUnit) IsRunning

func (o *AUAudioUnit) IsRunning() bool

@property running @brief The audio device's running state.

func (*AUAudioUnit) Latency

func (o *AUAudioUnit) Latency() float64

@property latency @brief The audio unit's processing latency, in seconds. @discussion This property reflects the delay between when an impulse in the unit's audio unit stream arrives in the input vs. output streams. This should reflect the delay due to signal processing (e.g. filters, FFT's, etc.), not delay or reverberation which is being applied as an effect. Note that a latency that varies with parameter settings, including bypass, is generally not useful to hosts. A host is usually only prepared to add delays before starting to render and those delays need to be fixed. A variable delay would introduce artifacts even if the host could track it. If an algorithm has a variable latency it should be adjusted upwards to some fixed latency within the audio unit. If for some reason this is not possible, then latency could be regarded as an unavoidable consequence of the algorithm and left unreported (i.e. with a value of 0). Bridged to the v2 property kAudioUnitProperty_Latency.

func (*AUAudioUnit) MIDIOutputBufferSizeHint

func (o *AUAudioUnit) MIDIOutputBufferSizeHint() int

@property MIDIOutputBufferSizeHint @brief Hint to control the size of the allocated buffer for outgoing MIDI events. @discussion This property allows the plug-in to provide a hint to the framework regarding the size of its outgoing MIDI data buffer. If the plug-in produces more MIDI output data than the default size of the allocated buffer, then the plug-in can provide this property to increase the size of this buffer. The value represents the number of 3-byte Legacy MIDI messages that fit into the buffer or a single MIDIEventList containing 1 MIDIEventPacket of 2 words when using MIDI 2.0 (MIDIEventList based API's). This property is set to the default value by the framework. In case of kAudioUnitErr_MIDIOutputBufferFull errors caused by producing too much MIDI output in one render call, set this property to increase the buffer. This only provides a recommendation to the framework. Bridged to kAudioUnitProperty_MIDIOutputBufferSizeHint.

func (*AUAudioUnit) MIDIOutputEventBlock

func (o *AUAudioUnit) MIDIOutputEventBlock() objc.Block

@property MIDIOutputEventBlock @brief Block used by the host to access the MIDI output generated by an Audio Unit. @discussion The host can set this block and the plug-in can call it in its renderBlock to provide to the host the MIDI data associated with the current render cycle. All events sent via this block will be delivered to the host in the MIDI protocol returned by the hostMIDIProtocol property. For example, if hostMIDIProtocol is set to kMIDIProtocol_2_0, incoming events will be translated to MIDI 2.0. If hostMIDIProtocol is not set, events will be delivered as legacy MIDI. Note: AUMIDIEventListBlock should be preferred over this block going forward. This is bridged to the v2 API property kAudioUnitProperty_MIDIOutputCallback.

func (*AUAudioUnit) MIDIOutputEventListBlock

func (o *AUAudioUnit) MIDIOutputEventListBlock() objc.Block

@property MIDIOutputEventListBlock @brief Block used by the host to access the MIDIEventList output generated by an Audio Unit. @discussion The host can set this block and the plug-in can call it in its renderBlock to provide to the host the MIDIEventList data associated with the current render cycle. All events sent via this block will be delivered to the host in the MIDI protocol returned by the hostMIDIProtocol property. For example, if hostMIDIProtocol is set to kMIDIProtocol_2_0, incoming events will be translated to MIDI 2.0. If hostMIDIProtocol is not set, events will be delivered as legacy MIDI. Note: This block is cross-compatible with Audio Units using MIDIOutputEventBlock and should be preferred over MIDIOutputEventBlock by hosts going forward. The framework will provide the Audio Unit with both a MIDIOutputEventBlock and MIDIOutputEventListBlock, the Audio Unit is free to call either block as all messages will be translated as described above. Host should setup in the following order: - Set hostMIDIProtocol - Set MIDIOutputEventListBlock - Call allocateRenderResourcesAndReturnError This is bridged to the v2 API property kAudioUnitProperty_MIDIOutputEventListCallback.

func (*AUAudioUnit) MIDIOutputNames

func (o *AUAudioUnit) MIDIOutputNames() *foundation.NSArray[*foundation.NSString]

@property MIDIOutputNames @brief Count, and names of, a plug-in's MIDI outputs. @discussion A plug-in may override this method to inform hosts about its MIDI outputs. The size of the array is the number of outputs the Audio Unit supports. Each item in the array is the name of the MIDI output at that index. This is bridged to the v2 API property kAudioUnitProperty_MIDIOutputCallbackInfo.

func (*AUAudioUnit) ManufacturerName

func (o *AUAudioUnit) ManufacturerName() *foundation.NSString

@property manufacturerName @brief The manufacturer's name.

func (*AUAudioUnit) MaximumFramesToRender

func (o *AUAudioUnit) MaximumFramesToRender() uint32

@property maximumFramesToRender @brief The maximum number of frames which the audio unit can render at once. @discussion This must be set by the host before render resources are allocated. It cannot be changed while render resources are allocated. Bridged to the v2 property kAudioUnitProperty_MaximumFramesPerSlice.

func (*AUAudioUnit) MessageChannelFor

func (o *AUAudioUnit) MessageChannelFor(channelName *foundation.NSString) AUMessageChannel

@method messageChannelFor: @brief Returns an object for bidirectional communication between an Audio Unit and its host. @discussion Message channels provide a flexible way for custom data exchange between an Audio Unit and its host. An Audio Unit can support multiple message channels which are identified by the `channelName`. The message channel object's lifetime is managed by the host. Message channel objects should be designed in such a way that they could outlive the AU that vended them. For further details see discussion for `AUMessageChannel`. @param channelName The name of the message channel to be returned by the Audio Unit if supported. @return An object that conforms to the `AUMessageChannel` protocol.

func (*AUAudioUnit) MigrateFromPlugin

func (o *AUAudioUnit) MigrateFromPlugin() *foundation.NSArray[objc.ID]

@property migrateFromPlugin @brief Information for migrating data from other audio plug-ins to the v3 Audio Unit architecture. @discussion This can be used to migrate settings from an older Audio Unit; this allows manufacturers to deprecate older Audio Units and replace them with new ones. The data for the older Audio Unit is an array of NSData representing byte encoded AudioUnitOtherPluginDescs to migrate from. Can also be used to migrate from a v2 to a v3 Audio Unit. Bridged to the v2 property kAudioUnitMigrateProperty_FromPlugin.

func (*AUAudioUnit) MusicalContextBlock

func (o *AUAudioUnit) MusicalContextBlock() objc.Block

@property musicalContextBlock @brief A callback for the AU to call the host for musical context information. @discussion Note that an audio unit implementation accessing this property should cache it in realtime-safe storage before beginning to render. Bridged to the HostCallback_GetBeatAndTempo and HostCallback_GetMusicalTimeLocation callback members in kAudioUnitProperty_HostCallbacks.

func (*AUAudioUnit) OsWorkgroup

func (o *AUAudioUnit) OsWorkgroup() unsafe.Pointer

@property osWorkgroup @brief The os_workgroup_t to which the input/output audio unit belongs. @discussion For further background, see <AudioToolbox/AudioWorkInterval.h>. Bridged to the v2 property kAudioOutputUnitProperty_OSWorkgroup.

func (*AUAudioUnit) OutputBusses

func (o *AUAudioUnit) OutputBusses() *AUAudioUnitBusArray

@property outputBusses @brief An audio unit's audio output connection points. @discussion Subclassers must override this property's getter. The implementation should return the same object every time it is asked for it, since clients can install KVO observers on it.

func (*AUAudioUnit) OutputProvider

func (o *AUAudioUnit) OutputProvider() objc.Block

@property outputProvider @brief The block that the output unit will call to get audio to send to the output. @discussion This block must be set if output is enabled.

func (*AUAudioUnit) ParameterTree

func (o *AUAudioUnit) ParameterTree() *AUParameterTree

@property parameterTree @brief An audio unit's parameters, organized in a hierarchy. @return A parameter tree object, or nil if the unit has no parameters. @discussion Audio unit hosts can fetch this property to discover a unit's parameters. KVO notifications are issued on this member to notify the host of changes to the set of available parameters. AUAudioUnit has an additional pseudo-property, "allParameterValues", on which KVO notifications are issued in response to certain events where potentially all parameter values are invalidated. This includes changes to currentPreset, fullState, and fullStateForDocument. Hosts should not attempt to set this property. Subclassers should implement the parameterTree getter to expose parameters to hosts. They should cache as much as possible and send KVO notifications on "parameterTree" when altering the structure of the tree or the static information (ranges, etc) of parameters. This is similar to the v2 properties kAudioUnitProperty_ParameterList and kAudioUnitProperty_ParameterInfo. Note that it is not safe to modify this property in a real-time context.

func (*AUAudioUnit) ParametersForOverviewWithCount

func (o *AUAudioUnit) ParametersForOverviewWithCount(count int) *foundation.NSArray[*foundation.NSNumber]

@method parametersForOverviewWithCount: @brief Returns the audio unit's `count` most important parameters. @discussion This property allows a host to query an audio unit for some small number of parameters which are its "most important", to be displayed in a compact generic view. An audio unit subclass should return an array of NSNumbers representing the addresses of the `count` most important parameters. The base class returns an empty array regardless of count. Partially bridged to kAudioUnitProperty_ParametersForOverview (v2 hosts can use that property to access this v3 method of an audio unit).

func (*AUAudioUnit) PresetStateForError

func (o *AUAudioUnit) PresetStateForError(userPreset *AUAudioUnitPreset) (*foundation.NSDictionary[*foundation.NSString, objc.ID], error)

@method presetStateFor:error @brief Retrieve the state stored in a user preset @discussion This method allows access to the contents of a preset without having to set that preset as current. The returned dictionary is assignable to the audio unit's fullState and/or fullStateForDocument properties. Audio units can override this method in order to vend user presets from a different location (e.g. their iCloud container). In order to restore the state from a user preset, the audio unit should override the setter for the currentPreset property and check the preset number to determine the type of preset. If the preset number is >= 0 then the preset is a factory preset. If the preset number is < 0 then it is a user preset. This method can then be called to retrieve the state stored in a user preset and the audio unit can assign this to fullState or fullStateForDocument. @param userPreset The preset to be selected. @param outError In the event of a failure, the method will return nil and outError will be set to an NSError, describing the problem. Some possible errors: - domain: NSOSStatusErrorDomain code: kAudioUnitErr_NoConnection - domain: NSPOSIXErrorDomain code: ENOENT - domain: NSCocoaErrorDomain code: NSCoderReadCorruptError @return Returns nil if there was an error, otherwise returns a dictionary containing the full state of the audio unit saved in the preset. For details on the possible keys present in the full state dictionary, please see the documentation for kAudioUnitProperty_ClassInfo. The minimal set of keys and their type is: @kAUPresetTypeKey : NSNumber, @kAUPresetSubtypeKey : NSNumber, @kAUPresetManufacturerKey : NSNumber, @kAUPresetVersionKey : NSNumber, @kAUPresetNameKey : NSString, @kAUPresetNumberKey: NSNumber, @kAUPresetDataKey : NSData

func (*AUAudioUnit) ProfileChangedBlock

func (o *AUAudioUnit) ProfileChangedBlock() unsafe.Pointer

@property profileChangedBlock @brief A block called when a device notifies that a MIDI-CI profile has been enabled or disabled. @discussion Since enabling / disabling MIDI-CI profiles is an asynchronous operation, the host can set this block and the audio unit is expected to call it every time the state of a MIDI-CI profile has changed.

func (*AUAudioUnit) ProfileStateForCableChannel

func (o *AUAudioUnit) ProfileStateForCableChannel(cable uint8, channel uint8) objc.ID

@method profileStateForCable:channel: @brief Given a MIDI cable and channel number, return the supported MIDI-CI Profiles. @param cable The virtual MIDI cable for which the profiles are requested. @param channel The MIDI channel for which the profiles are requested. @return A MIDICIProfileState object containing all the supported MIDI-CI profiles for this channel on this cable.

func (*AUAudioUnit) ProvidesUserInterface

func (o *AUAudioUnit) ProvidesUserInterface() bool

@property providesUserInterface @brief Specifies whether an audio unit provides UI (normally in the form of a view controller). @discussion Implemented in the framework and should not be overridden by implementators. The framework detects whether any subclass has implemented `requestViewControllerWithCompletionHandler:` or is implemented by an AU extension whose extension point identifier is `com.apple.AudioUnit-UI`. See also `requestViewControllerWithCompletionHandler:` in <CoreAudioKit/AUViewController.h>

func (*AUAudioUnit) RemoveRenderObserver

func (o *AUAudioUnit) RemoveRenderObserver(token int)

@method removeRenderObserver: @brief Remove an observer block added via tokenByAddingRenderObserver: @param token The token previously returned by tokenByAddingRenderObserver: Bridged to the v2 API AudioUnitRemoveRenderNotify().

func (*AUAudioUnit) RenderBlock

func (o *AUAudioUnit) RenderBlock() objc.Block

@property renderBlock @brief Block which hosts use to ask the unit to render. @discussion Before invoking an audio unit's rendering functionality, a host should fetch this block and cache the result. The block can then be called from a realtime context without the possibility of blocking and causing an overload at the Core Audio HAL level. This block will call a subclass' internalRenderBlock, providing all realtime events scheduled for the current render time interval, bracketed by calls to any render observers. Subclassers should override internalRenderBlock, not this property. Bridged to the v2 API AudioUnitRender().

func (*AUAudioUnit) RenderContextObserver

func (o *AUAudioUnit) RenderContextObserver() unsafe.Pointer

@property renderContextObserver @brief Block called by the OS when the rendering context changes. Audio Units which create auxiliary realtime rendering threads should implement this property to return a block which will be called by the OS when the render context changes. Audio Unit hosts must not attempt to interact with the AudioUnit through this block; it is for the exclusive use of the OS. See <AudioToolbox/AudioWorkInterval.h> for more information.

func (*AUAudioUnit) RenderQuality

func (o *AUAudioUnit) RenderQuality() int

@property renderQuality @brief Provides a trade-off between rendering quality and CPU load. @discussion The range of valid values is 0-127. Bridged to the v2 property kAudioUnitProperty_RenderQuality.

func (*AUAudioUnit) RenderResourcesAllocated

func (o *AUAudioUnit) RenderResourcesAllocated() bool

@property renderResourcesAllocated @brief returns YES if the unit has render resources allocated.

func (*AUAudioUnit) Reset

func (o *AUAudioUnit) Reset()

@method reset @brief Reset transitory rendering state to its initial state. @discussion Hosts should call this at the point of a discontinuity in the input stream being provided to an audio unit, for example, when seeking forward or backward within a track. In response, implementations should clear delay lines, filters, etc. Subclassers should call the superclass implementation. Bridged to the v2 API AudioUnitReset(), in the global scope.

func (*AUAudioUnit) SaveUserPresetError

func (o *AUAudioUnit) SaveUserPresetError(userPreset *AUAudioUnitPreset) (bool, error)

@method saveUserPreset:error @brief Persistently save the current state of the audio unit into a userPreset @discussion The new preset will be added to userPresets and will become selectable by assigning it to the currentPreset property. If a preset with the provided name already exists then it will be overwritten. For user presets, the preset number is required to be negative. If a positive number is passed, the sign will be changed to negative. If zero is passed, the number will be set to -1. These changes will be reflected on the userPreset argument. The default implementation of this method will save the user preset to an internal location. Audio Units are free to override this method to operate on a different location (e.g. their iCloud container). @param userPreset The preset under which the current state will be saved. @param outError In the event of a failure, the method will return NO and outError will be set to an NSError, describing the problem. Some possible errors: - domain: NSOSStatusErrorDomain code: kAudioUnitErr_NoConnection - domain: NSOSStatusErrorDomain code: kAudioUnitErr_InvalidFilePath - domain: NSOSStatusErrorDomain code: kAudioUnitErr_MissingKey @return YES for success. NO in the event of a failure, in which case the error is returned in outError.

func (*AUAudioUnit) ScheduleMIDIEventBlock

func (o *AUAudioUnit) ScheduleMIDIEventBlock() objc.Block

@property scheduleMIDIEventBlock @brief Block used to schedule MIDI events. @discussion As with renderBlock, a host should fetch and cache this block before calling allocateRenderResources if it intends to schedule MIDI events. This is implemented in the base class. It is nil when musicDeviceOrEffect is NO. Subclasses should not override. When hosts schedule events via this block, they are sent to the Audio Unit via the list of AURenderEvents delivered to internalRenderBlock. All events sent via this block will be delivered to the internalRenderBlock in the MIDI protocol returned by the AudioUnitMIDIProtocol property. For example, if AudioUnitMIDIProtocol returns kMIDIProtocol_2_0, incoming events will be translated to MIDI 2.0 if necessary. If AudioUnitMIDIProtocol is not set, events will be delivered as legacy MIDI. This bridged to the v2 API MusicDeviceMIDIEvent.

func (*AUAudioUnit) ScheduleMIDIEventListBlock

func (o *AUAudioUnit) ScheduleMIDIEventListBlock() objc.Block

@property scheduleMIDIEventListBlock @brief Block used to schedule MIDIEventLists. @discussion As with renderBlock, a host should fetch and cache this block before calling allocateRenderResources, if it intends to schedule MIDI events. When scheduling events during the render cycle (e.g. via a render observer) eventSampleTime can be AUEventSampleTimeImmediate plus an optional buffer offset, in which case the event is scheduled at the provided offset position within the current render cycle. This is implemented in the base class. It is nil when musicDeviceOrEffect is NO. Subclassers should not override. When hosts schedule events via this block, they are delivered to the Audio Unit via the list of AURenderEvents delivered to internalRenderBlock. All events sent via this block will be delivered to the internalRenderBlock in the MIDI protocol returned by the AudioUnitMIDIProtocol property. For example, if this block is called with MIDI-1.0 events but AudioUnitMIDIProtocol returns kMIDIProtocol_2_0, incoming events will be translated to MIDI 2.0. If AudioUnitMIDIProtocol is not set, events will be delivered as legacy MIDI. Note: This block should be preferred over scheduleMIDIEventBlock going forward. This bridged to the v2 API MusicDeviceMIDIEventList.

func (*AUAudioUnit) ScheduleParameterBlock

func (o *AUAudioUnit) ScheduleParameterBlock() objc.Block

@property scheduleParameterBlock @brief Block which hosts use to schedule parameters. @discussion As with renderBlock, a host should fetch and cache this block before calling allocateRenderResources, if it intends to schedule parameters. The block is safe to call from any thread context, including realtime audio render threads. Subclassers should not override this; it is implemented in the base class and will schedule the events to be provided to the internalRenderBlock. Bridged to the v2 API AudioUnitScheduleParameters().

func (*AUAudioUnit) SetChannelMap

func (o *AUAudioUnit) SetChannelMap(channelMap *foundation.NSArray[*foundation.NSNumber])

func (*AUAudioUnit) SetContextName

func (o *AUAudioUnit) SetContextName(contextName *foundation.NSString)

func (*AUAudioUnit) SetCurrentPreset

func (o *AUAudioUnit) SetCurrentPreset(currentPreset *AUAudioUnitPreset)

func (*AUAudioUnit) SetDeviceIDError

func (o *AUAudioUnit) SetDeviceIDError(deviceID uint) (bool, error)

@method setDeviceID:error: @brief Set the I/O hardware device. @param deviceID The device to select. @param outError Returned in the event of failure.

func (*AUAudioUnit) SetFullState

func (o *AUAudioUnit) SetFullState(fullState *foundation.NSDictionary[*foundation.NSString, objc.ID])

func (*AUAudioUnit) SetFullStateForDocument

func (o *AUAudioUnit) SetFullStateForDocument(fullStateForDocument *foundation.NSDictionary[*foundation.NSString, objc.ID])

func (*AUAudioUnit) SetHostMIDIProtocol

func (o *AUAudioUnit) SetHostMIDIProtocol(hostMIDIProtocol objc.ID)

func (*AUAudioUnit) SetInputEnabled

func (o *AUAudioUnit) SetInputEnabled(inputEnabled bool)

func (*AUAudioUnit) SetInputHandler

func (o *AUAudioUnit) SetInputHandler(inputHandler func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, unsafe.Pointer))

func (*AUAudioUnit) SetIntendedSpatialExperience

func (o *AUAudioUnit) SetIntendedSpatialExperience(intendedSpatialExperience unsafe.Pointer)

func (*AUAudioUnit) SetMIDIOutputBufferSizeHint

func (o *AUAudioUnit) SetMIDIOutputBufferSizeHint(mIDIOutputBufferSizeHint int)

func (*AUAudioUnit) SetMIDIOutputEventBlock

func (o *AUAudioUnit) SetMIDIOutputEventBlock(mIDIOutputEventBlock func(int64, uint8, int, unsafe.Pointer) int)

func (*AUAudioUnit) SetMIDIOutputEventListBlock

func (o *AUAudioUnit) SetMIDIOutputEventListBlock(mIDIOutputEventListBlock func(int64, uint8, unsafe.Pointer) int)

func (*AUAudioUnit) SetMaximumFramesToRender

func (o *AUAudioUnit) SetMaximumFramesToRender(maximumFramesToRender uint32)

func (*AUAudioUnit) SetMusicalContextBlock

func (o *AUAudioUnit) SetMusicalContextBlock(musicalContextBlock func(*float64, *float64, *int64, *float64, *int64, unsafe.Pointer) bool)

func (*AUAudioUnit) SetOutputEnabled

func (o *AUAudioUnit) SetOutputEnabled(outputEnabled bool)

func (*AUAudioUnit) SetOutputProvider

func (o *AUAudioUnit) SetOutputProvider(outputProvider func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int, unsafe.Pointer) int)

func (*AUAudioUnit) SetParameterTree

func (o *AUAudioUnit) SetParameterTree(parameterTree *AUParameterTree)

func (*AUAudioUnit) SetProfileChangedBlock

func (o *AUAudioUnit) SetProfileChangedBlock(profileChangedBlock unsafe.Pointer)

func (*AUAudioUnit) SetRenderQuality

func (o *AUAudioUnit) SetRenderQuality(renderQuality int)

func (*AUAudioUnit) SetRenderResourcesAllocated

func (o *AUAudioUnit) SetRenderResourcesAllocated(flag bool)

@method setRenderResourcesAllocated: @param flag In the base class implementation of allocateRenderResourcesAndReturnError:, the property renderResourcesAllocated is set to YES. If allocateRenderResourcesAndReturnError: should fail in a subclass, subclassers must use this method to set renderResourcesAllocated to NO.

func (*AUAudioUnit) SetRenderingOffline

func (o *AUAudioUnit) SetRenderingOffline(renderingOffline bool)

func (*AUAudioUnit) SetShouldBypassEffect

func (o *AUAudioUnit) SetShouldBypassEffect(shouldBypassEffect bool)

func (*AUAudioUnit) SetTransportStateBlock

func (o *AUAudioUnit) SetTransportStateBlock(transportStateBlock func(*AUHostTransportStateFlags, *float64, *float64, unsafe.Pointer) bool)

func (*AUAudioUnit) ShouldBypassEffect

func (o *AUAudioUnit) ShouldBypassEffect() bool

@property shouldBypassEffect @brief Directs an effect to route input directly to output, without any processing. @discussion Bridged to the v2 property kAudioUnitProperty_BypassEffect.

func (*AUAudioUnit) ShouldChangeToFormatForBus

func (o *AUAudioUnit) ShouldChangeToFormatForBus(format *avfaudio.AVAudioFormat, bus *AUAudioUnitBus) bool

@method shouldChangeToFormat:forBus: @param format An AVAudioFormat which is proposed as the new format. @param bus The AUAudioUnitBus on which the format will be changed. @discussion This is called when setting the format on an AUAudioUnitBus. The bus has already checked that the format meets the channel constraints of the bus. The AU can override this method to check before allowing a new format to be set on the bus. If this method returns NO, then the new format will not be set on the bus. The default implementation returns NO if the unit has renderResourcesAllocated, otherwise it results YES.

func (*AUAudioUnit) StartHardwareAndReturnError

func (o *AUAudioUnit) StartHardwareAndReturnError() (bool, error)

@method startHardwareAndReturnError: @brief Starts the audio hardware. @param outError Returned in the event of failure.

func (*AUAudioUnit) StopHardware

func (o *AUAudioUnit) StopHardware()

@method stopHardware @brief Stops the audio hardware.

func (*AUAudioUnit) SupportsMPE

func (o *AUAudioUnit) SupportsMPE() bool

@property supportsMPE @brief Specifies whether an audio unit supports Multi-dimensional Polyphonic Expression. @discussion Bridged to the v2 property kAudioUnitProperty_SupportsMPE.

func (*AUAudioUnit) SupportsUserPresets

func (o *AUAudioUnit) SupportsUserPresets() bool

@property supportsUserPresets @brief Specifies whether an audio unit supports loading and saving user presets @discussion The audio unit should set this property to YES if a user preset can be assigned to currentPreset. Audio unit host applications should query this property to determine whether the audio unit supports user presets. Assigning a user preset to the currentPreset property of an audio unit that does not support restoring state from user presets may result in incorrect behavior.

func (*AUAudioUnit) TailTime

func (o *AUAudioUnit) TailTime() float64

@property tailTime @brief The audio unit's tail time, in seconds. @discussion This property reflects the time interval between when the input stream ends or otherwise transitions to silence, and when the output stream becomes silent. Unlike latency, this should reflect the duration of a delay or reverb effect. Bridged to the v2 property kAudioUnitProperty_TailTime.

func (*AUAudioUnit) TokenByAddingRenderObserver

func (o *AUAudioUnit) TokenByAddingRenderObserver(observer func(AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, unsafe.Pointer)) int

@method tokenByAddingRenderObserver: @brief Add a block to be called on each render cycle. @discussion The supplied block is called at the beginning and ending of each render cycle. It should not make any blocking calls. This method is implemented in the base class AUAudioUnit, and should not be overridden. Bridged to the v2 API AudioUnitAddRenderNotify(). @param observer The block to call. @return A token to be used when removing the observer.

func (*AUAudioUnit) TransportStateBlock

func (o *AUAudioUnit) TransportStateBlock() objc.Block

@property transportStateBlock @brief A callback for the AU to call the host for transport state information. @discussion Note that an audio unit implementation accessing this property should cache it in realtime-safe storage before beginning to render. Bridged to the HostCallback_GetTransportState and HostCallback_GetTransportState2 callback members in kAudioUnitProperty_HostCallbacks.

func (*AUAudioUnit) UserPresets

func (o *AUAudioUnit) UserPresets() *foundation.NSArray[*AUAudioUnitPreset]

@property userPresets @brief A collection of presets saved by the user @discussion In addition to factory presets, provided by the audio unit vendor, users have the ability to save the values of the parameters of an audio unit into a user preset. These users presets can be accessed using this property. The default implementation of this method will load the user presets from an internal location that might not be directly accessible to the audio unit host application or to the audio unit. Instead of accessing this path directly, the audio unit should rely on the superclass implementation of this method to retrieve the presets. Audio Units are free to override this method to load their user presets via different means (e.g. from their iCloud container).

func (*AUAudioUnit) VirtualMIDICableCount

func (o *AUAudioUnit) VirtualMIDICableCount() int

@property virtualMIDICableCount @brief The number of virtual MIDI cables implemented by a music device or effect. @discussion A music device or MIDI effect can support up to 256 virtual MIDI cables of input; this property expresses the number of cables supported by the audio unit.

type AUAudioUnitBus

type AUAudioUnitBus struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auaudiounitbus

func AUAudioUnitBusFromID

func AUAudioUnitBusFromID(id objc.ID) *AUAudioUnitBus

func (*AUAudioUnitBus) BusType

func (o *AUAudioUnitBus) BusType() AUAudioUnitBusType

@property busType @brief The AUAudioUnitBusType.

func (*AUAudioUnitBus) ContextPresentationLatency

func (o *AUAudioUnitBus) ContextPresentationLatency() float64

@property contextPresentationLatency @brief Information about latency in the audio unit's processing context. @discussion This should not be confused with the audio unit's latency property, where the audio unit describes to the host any processing latency it introduces between its input and its output. A host may set this property to describe to the audio unit the presentation latency of its input and/or output audio data. Latency is described in seconds. A value of zero means either no latency or an unknown latency. A host should set this property on each active bus, since, for example, the audio routing path to each of multiple output busses may differ. For input busses: Describes how long ago the audio arriving on this bus was acquired. For instance, when reading from a file to the first audio unit in a chain, the input presentation latency is zero. For audio input from a device, this initial input latency is the presentation latency of the device itself, i.e. the device's safety offset and latency. A second chained audio unit's input presentation latency will be the input presentation latency of the first unit, plus the processing latency of the first unit. For output busses: Describes how long it will be before the output audio of an audio unit is presented. For instance, when writing to a file, the output presentation latency of the last audio unit in a chain is zero. When the audio from that audio unit is to be played to a device, then that initial presentation latency will be the presentation latency of the device itself, which is the I/O buffer size, plus the device's safety offset and latency A previous chained audio unit's output presentation latency is the last unit's presentation latency plus its processing latency. So, for a given audio unit anywhere within a mixing graph, the input and output presentation latencies describe to that unit how long from the moment of generation it has taken for its input to arrive, and how long it will take for its output to be presented. Bridged to the v2 property kAudioUnitProperty_PresentationLatency.

func (*AUAudioUnitBus) Format

func (o *AUAudioUnitBus) Format() *avfaudio.AVAudioFormat

@property format @brief The audio format and channel layout of audio being transferred on the bus. @discussion Bridged to the v2 property kAudioUnitProperty_StreamFormat.

func (*AUAudioUnitBus) Index

func (o *AUAudioUnitBus) Index() uint

@property index @brief The index of this bus in the containing array.

func (*AUAudioUnitBus) InitWithFormatError

func (o *AUAudioUnitBus) InitWithFormatError(format *avfaudio.AVAudioFormat) (*AUAudioUnitBus, error)

@method initWithFormat:error: @brief initialize with a default format. @param format The initial format for the bus. @param outError An error if the format is unsupported for the bus.

func (*AUAudioUnitBus) IsEnabled

func (o *AUAudioUnitBus) IsEnabled() bool

@property enabled @brief Whether the bus is active. @discussion Hosts must enable input busses before using them. The reason for this is to allow a unit such as a mixer to be prepared to render a large number of inputs, but avoid the work of preparing to pull inputs which are not in use. Bridged to the v2 properties kAudioUnitProperty_MakeConnection and kAudioUnitProperty_SetRenderCallback.

func (*AUAudioUnitBus) MaximumChannelCount

func (o *AUAudioUnitBus) MaximumChannelCount() uint32

@property maximumChannelCount @brief The maximum numbers of channels supported for this bus. @discussion If supportedChannelCounts is set, then this value is derived from supportedChannelCounts. If setting maximumChannelCount makes the current format unsupported, then format will be set to nil. The default value is UINT_MAX.

func (*AUAudioUnitBus) Name

func (o *AUAudioUnitBus) Name() *foundation.NSString

@property name @brief A name for the bus. Can be set by host.

func (*AUAudioUnitBus) OwnerAudioUnit

func (o *AUAudioUnitBus) OwnerAudioUnit() *AUAudioUnit

@property ownerAudioUnit @brief The audio unit that owns the bus.

func (*AUAudioUnitBus) SetContextPresentationLatency

func (o *AUAudioUnitBus) SetContextPresentationLatency(contextPresentationLatency float64)

func (*AUAudioUnitBus) SetEnabled

func (o *AUAudioUnitBus) SetEnabled(enabled bool)

func (*AUAudioUnitBus) SetFormatError

func (o *AUAudioUnitBus) SetFormatError(format *avfaudio.AVAudioFormat) (bool, error)

@property setFormat:error: @brief Sets the bus's audio format. @discussion Audio units can generally be expected to support AVAudioFormat's standard format (deinterleaved 32-bit float), at any sample rate. Channel counts can be more complex; see AUAudioUnit.channelCapabilities.

func (*AUAudioUnitBus) SetMaximumChannelCount

func (o *AUAudioUnitBus) SetMaximumChannelCount(maximumChannelCount uint32)

func (*AUAudioUnitBus) SetName

func (o *AUAudioUnitBus) SetName(name *foundation.NSString)

func (*AUAudioUnitBus) SetShouldAllocateBuffer

func (o *AUAudioUnitBus) SetShouldAllocateBuffer(shouldAllocateBuffer bool)

func (*AUAudioUnitBus) SetSupportedChannelCounts

func (o *AUAudioUnitBus) SetSupportedChannelCounts(supportedChannelCounts *foundation.NSArray[*foundation.NSNumber])

func (*AUAudioUnitBus) ShouldAllocateBuffer

func (o *AUAudioUnitBus) ShouldAllocateBuffer() bool

@property shouldAllocateBuffer @brief Controls the audio unit's allocation strategy for a bus. @discussion Hosts can set this flag to communicate whether an audio unit should allocate its own buffer. By default this flag is set to true. On the output side, shouldAllocateBuffer=false means the AU can assume that it will be called with non-null output buffers. If shouldAllocateBuffer=true (the default), the AU must be prepared to be called with null pointers and replace them with pointers to its internally allocated buffer. On the input side, shouldAllocateBuffer=false means the AU can pull for input using a buffer list with null buffer pointers, and assume that the pull input block will provide pointers. If shouldAllocateBuffer=true (the default), the AU must pull with non-null pointers while still being prepared for the source to replace them with pointers of its own. Bridged to the v2 property kAudioUnitProperty_ShouldAllocateBuffer.

func (*AUAudioUnitBus) SupportedChannelCounts

func (o *AUAudioUnitBus) SupportedChannelCounts() *foundation.NSArray[*foundation.NSNumber]

@property supportedChannelCounts @brief An array of numbers giving the supported numbers of channels for this bus. @discussion If supportedChannelCounts is nil, then any number less than or equal to maximumChannelCount is supported. If setting supportedChannelCounts makes the current format unsupported, then format will be set to nil. The default value is nil.

func (*AUAudioUnitBus) SupportedChannelLayoutTags

func (o *AUAudioUnitBus) SupportedChannelLayoutTags() *foundation.NSArray[*foundation.NSNumber]

@property supportedChannelLayoutTags @discussion This is an array of NSNumbers representing AudioChannelLayoutTag.

type AUAudioUnitBusArray

type AUAudioUnitBusArray struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auaudiounitbusarray

func AUAudioUnitBusArrayFromID

func AUAudioUnitBusArrayFromID(id objc.ID) *AUAudioUnitBusArray

func (*AUAudioUnitBusArray) AddObserverToAllBussesForKeyPathOptionsContext

func (o *AUAudioUnitBusArray) AddObserverToAllBussesForKeyPathOptionsContext(observer *foundation.NSObject, keyPath *foundation.NSString, options foundation.NSKeyValueObservingOptions, context_ unsafe.Pointer)

@method addObserverToAllBusses:forKeyPath:options:context: @brief Add a KVO observer for a property on all busses in the array.

func (*AUAudioUnitBusArray) BusType

Which bus array this is (input or output).

func (*AUAudioUnitBusArray) Count

func (o *AUAudioUnitBusArray) Count() uint

@property count

func (*AUAudioUnitBusArray) InitWithAudioUnitBusType

func (o *AUAudioUnitBusArray) InitWithAudioUnitBusType(owner *AUAudioUnit, busType AUAudioUnitBusType) *AUAudioUnitBusArray

@method initWithAudioUnit:busType: @brief Initializes an empty bus array.

func (*AUAudioUnitBusArray) InitWithAudioUnitBusTypeBusses

func (o *AUAudioUnitBusArray) InitWithAudioUnitBusTypeBusses(owner *AUAudioUnit, busType AUAudioUnitBusType, busArray *foundation.NSArray[*AUAudioUnitBus]) *AUAudioUnitBusArray

@method initWithAudioUnit:busType:busses: @brief Initializes by making a copy of the supplied bus array.

func (*AUAudioUnitBusArray) IsCountChangeable

func (o *AUAudioUnitBusArray) IsCountChangeable() bool

@property countChangeable @brief Whether the array can have a variable number of busses. @discussion The base implementation returns false.

func (*AUAudioUnitBusArray) ObjectAtIndexedSubscript

func (o *AUAudioUnitBusArray) ObjectAtIndexedSubscript(index uint) *AUAudioUnitBus

@method objectAtIndexedSubscript:

func (*AUAudioUnitBusArray) OwnerAudioUnit

func (o *AUAudioUnitBusArray) OwnerAudioUnit() *AUAudioUnit

The audio unit that owns the bus.

func (*AUAudioUnitBusArray) RemoveObserverFromAllBussesForKeyPathContext

func (o *AUAudioUnitBusArray) RemoveObserverFromAllBussesForKeyPathContext(observer *foundation.NSObject, keyPath *foundation.NSString, context_ unsafe.Pointer)

@method removeObserverFromAllBusses:forKeyPath:context: @brief Remove a KVO observer for a property on all busses in the array.

func (*AUAudioUnitBusArray) ReplaceBusses

func (o *AUAudioUnitBusArray) ReplaceBusses(busArray *foundation.NSArray[*AUAudioUnitBus])

Sets the bus array to be a copy of the supplied array. The base class issues KVO notifications.

func (*AUAudioUnitBusArray) SetBusCountError

func (o *AUAudioUnitBusArray) SetBusCountError(count uint) (bool, error)

@property setBusCount:error: @brief Change the number of busses in the array.

type AUAudioUnitBusType

type AUAudioUnitBusType int64
const (
	AUAudioUnitBusTypeInput  AUAudioUnitBusType = 1
	AUAudioUnitBusTypeOutput AUAudioUnitBusType = 2
)

func (AUAudioUnitBusType) String

func (e AUAudioUnitBusType) String() string

type AUAudioUnitFactory

type AUAudioUnitFactory interface {
	foundation.NSExtensionRequestHandling
	CreateAudioUnitWithComponentDescriptionError(desc AudioComponentDescription) (*AUAudioUnit, error)
}

AUAudioUnitFactory wraps the ObjC protocol AUAudioUnitFactory.

type AUAudioUnitPreset

type AUAudioUnitPreset struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auaudiounitpreset

func AUAudioUnitPresetFromID

func AUAudioUnitPresetFromID(id objc.ID) *AUAudioUnitPreset

func (*AUAudioUnitPreset) Name

@property name @brief The preset's name.

func (*AUAudioUnitPreset) Number

func (o *AUAudioUnitPreset) Number() int

@property number @brief The preset's unique numeric identifier.

func (*AUAudioUnitPreset) SetName

func (o *AUAudioUnitPreset) SetName(name *foundation.NSString)

func (*AUAudioUnitPreset) SetNumber

func (o *AUAudioUnitPreset) SetNumber(number int)

type AUAudioUnitV2Bridge

type AUAudioUnitV2Bridge struct {
	AUAudioUnit
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auaudiounitv2bridge

func AUAudioUnitV2BridgeFromID

func AUAudioUnitV2BridgeFromID(id objc.ID) *AUAudioUnitV2Bridge

func (*AUAudioUnitV2Bridge) AudioUnit

type AUChannelInfo

type AUChannelInfo struct {
	InChannels  int16
	OutChannels int16
}

@struct AUChannelInfo @abstract Define an audio unit's channel handling capabilities

type AUDependentParameter

type AUDependentParameter struct {
	MScope       uint
	MParameterID uint
}

@struct AUDependentParameter @abstract Used to represent a dependent parameter that can change as a result of its parent meta-parameter changing

type AUDistanceAttenuationData deprecated

type AUDistanceAttenuationData struct {
	InNumberOfPairs uint
	Pairs           [1]unsafe.Pointer
}

Deprecated: no longer supported

type AUHostIdentifier

type AUHostIdentifier struct {
	HostName    unsafe.Pointer
	HostVersion AUNumVersion
}

@struct AUHostIdentifier @abstract Used to describe the name and version of the audio unit's host

type AUHostTransportStateFlags

type AUHostTransportStateFlags uint64
const (
	AUHostTransportStateChanged   AUHostTransportStateFlags = 1
	AUHostTransportStateMoving    AUHostTransportStateFlags = 2
	AUHostTransportStateRecording AUHostTransportStateFlags = 4
	AUHostTransportStateCycling   AUHostTransportStateFlags = 8
)

func (AUHostTransportStateFlags) String

func (e AUHostTransportStateFlags) String() string

type AUHostVersionIdentifier

type AUHostVersionIdentifier struct {
	HostName    unsafe.Pointer
	HostVersion uint
}

@struct AUHostVersionIdentifier @abstract Used to describe the name and version of the audio unit's host

type AUInputSamplesInOutputCallbackStruct

type AUInputSamplesInOutputCallbackStruct struct {
	InputToOutputCallback unsafe.Pointer
	UserData              unsafe.Pointer
}

@struct AUInputSamplesInOutputCallbackStruct @abstract Used by a host when registering a callback with an audio unit, to provide input-to-output samples mapping

type AUListenerBase

type AUListenerBase struct{}

@typedef AUParameterListenerRef @abstract An object which receives notifications of Audio Unit parameter value changes. AUListenerBase is an opaque type.

type AUMIDIEvent

type AUMIDIEvent struct {
	Next            unsafe.Pointer
	EventSampleTime int64
	EventType       AURenderEventType
	Reserved        uint8
	Length          uint16
	Cable           uint8
	Data            [3]uint8
}

Describes a single scheduled MIDI event.

type AUMIDIEventList

type AUMIDIEventList struct {
	Next            unsafe.Pointer
	EventSampleTime int64
	EventType       AURenderEventType
	Reserved        uint8
	Cable           uint8
	EventList       objc.ID
}

Describes a single scheduled MIDIEventList.

type AUMIDIOutputCallbackStruct

type AUMIDIOutputCallbackStruct struct {
	MidiOutputCallback unsafe.Pointer
	UserData           unsafe.Pointer
}

@struct AUMIDIOutputCallbackStruct @abstract Set by host application to provide the callback and user data for an audio unit that provides MIDI output

type AUMessageChannel

type AUMessageChannel interface {
	CallHostBlock() objc.Block
	SetCallHostBlock(callHostBlock func(*foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSDictionary[objc.ID, objc.ID])
}

AUMessageChannel wraps the ObjC protocol AUMessageChannel.

type AUNodeConnection

type AUNodeConnection = AudioUnitNodeConnection

AUNodeConnection is an alias for AudioUnitNodeConnection (C typedef AUNodeConnection).

type AUNodeInteraction

type AUNodeInteraction struct {
	NodeInteractionType uint
	NodeInteraction     unsafe.Pointer
}

@struct AUNodeInteraction @abstract Used to describe the interaction between/with a node This structure contains information about the interaction between two nodes (in the case of a connection), or the input to a node (in the case of a callback). The type of the interaction is used to determine how to interpret the contents of the following union. There may be other nodal interactions in the future, so NO ASSUMPTIONS should be made that these are the only 2 nodal interaction types; you must always check the nodeInteractionType and only act on those types you understand Arrays of these structs can be returned, the addition of new members to the nodeInteraction union will NOT change the size of this structure @var nodeInteractionType the interaction type @var nodeInteraction a union providing information about the specified interaction

type AUNodeRenderCallback

type AUNodeRenderCallback struct {
	DestNode        int
	DestInputNumber uint
	Cback           AURenderCallbackStruct
}

@struct AUNodeRenderCallback @abstract A callback used to provide input to an audio unit Used to contain information when a callback is used to provide input to the specific node's specified input @var destNode @var destInputNumber @var cback

type AUNumVersion

type AUNumVersion struct {
	NonRelRev      uint8
	Stage          uint8
	MinorAndBugRev uint8
	MajorRev       uint8
}

type AUParameter

type AUParameter struct {
	AUParameterNode
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auparameter

func AUParameterFromID

func AUParameterFromID(id objc.ID) *AUParameter

func AUParameterTreeCreateParameterWithIdentifierNameAddressMinMaxUnitUnitNameFlagsValueStringsDependentParameters

func AUParameterTreeCreateParameterWithIdentifierNameAddressMinMaxUnitUnitNameFlagsValueStringsDependentParameters(identifier *foundation.NSString, name *foundation.NSString, address uint64, min float32, max float32, unit AudioUnitParameterUnit, unitName *foundation.NSString, flags AudioUnitParameterOptions, valueStrings *foundation.NSArray[*foundation.NSString], dependentParameters *foundation.NSArray[*foundation.NSNumber]) *AUParameter

Create an AUParameter. See AUParameter's properties for descriptions of the arguments.

func (*AUParameter) Address

func (o *AUParameter) Address() uint64

The parameter's address.

func (*AUParameter) DependentParameters

func (o *AUParameter) DependentParameters() *foundation.NSArray[*foundation.NSNumber]

@brief Parameters whose values may change as a side effect of this parameter's value changing. @discussion Each array value is an NSNumber representing AUParameterAddress.

func (*AUParameter) Flags

Various details of the parameter.

func (*AUParameter) MaxValue

func (o *AUParameter) MaxValue() float32

The parameter's maximum value.

func (*AUParameter) MinValue

func (o *AUParameter) MinValue() float32

The parameter's minimum value.

func (*AUParameter) SetValue

func (o *AUParameter) SetValue(value float32)

func (*AUParameter) SetValueOriginator

func (o *AUParameter) SetValueOriginator(value float32, originator unsafe.Pointer)

@brief Set the parameter's value, avoiding redundant notifications to the originator. @discussion Bridged to the v2 function AudioUnitSetParameter.

func (*AUParameter) SetValueOriginatorAtHostTime

func (o *AUParameter) SetValueOriginatorAtHostTime(value float32, originator unsafe.Pointer, hostTime uint64)

@brief Convenience for setValue:originator:atHostTime:eventType: @discussion Bridged to the v2 function AudioUnitSetParameter.

func (*AUParameter) SetValueOriginatorAtHostTimeEventType

func (o *AUParameter) SetValueOriginatorAtHostTimeEventType(value float32, originator unsafe.Pointer, hostTime uint64, eventType AUParameterAutomationEventType)

@brief Set the parameter's value, preserving the host time of the gesture that initiated the change, and associating an event type such as touch/release. @discussion In general, this method should only be called from a user interface. It initiates a change to a parameter in a way that captures the gesture such that it can be recorded later -- any AUParameterAutomationObservers will receive the host time and event type associated with the parameter change. From an audio playback engine, a host should schedule automated parameter changes through AUAudioUnit's scheduleParameterBlock. Bridged to the v2 function AudioUnitSetParameter.

func (*AUParameter) StringFromValue

func (o *AUParameter) StringFromValue(value *float32) *foundation.NSString

@brief Get a textual representation of a value for the parameter. Use value==nil to use the current value. Bridged to the v2 property kAudioUnitProperty_ParameterStringFromValue. @discussion This is currently only supported for parameters whose flags include kAudioUnitParameterFlag_ValuesHaveStrings.

func (*AUParameter) Unit

The parameter's unit of measurement.

func (*AUParameter) UnitName

func (o *AUParameter) UnitName() *foundation.NSString

A localized name for the parameter's unit. Supplied by the AU if kAudioUnitParameterUnit_CustomUnit; else by the framework.

func (*AUParameter) Value

func (o *AUParameter) Value() float32

The parameter's current value.

func (*AUParameter) ValueFromString

func (o *AUParameter) ValueFromString(string_ *foundation.NSString) float32

@brief Convert a textual representation of a value to a numeric one. @discussion This is currently only supported for parameters whose flags include kAudioUnitParameterFlag_ValuesHaveStrings.

func (*AUParameter) ValueStrings

func (o *AUParameter) ValueStrings() *foundation.NSArray[*foundation.NSString]

For parameters with kAudioUnitParameterUnit_Indexed, localized strings corresponding to the values.

type AUParameterAutomationEvent

type AUParameterAutomationEvent struct {
	HostTime  uint64
	Address   uint64
	Value     float32
	EventType AUParameterAutomationEventType
	Reserved  uint64
}

@typedef AUParameterAutomationEvent @brief An event recording the changing of a parameter, possibly including events such as touch and release gestures, at a particular host time.

type AUParameterAutomationEventType

type AUParameterAutomationEventType int64
const (
	AUParameterAutomationEventTypeValue   AUParameterAutomationEventType = 0
	AUParameterAutomationEventTypeTouch   AUParameterAutomationEventType = 1
	AUParameterAutomationEventTypeRelease AUParameterAutomationEventType = 2
)

func (AUParameterAutomationEventType) String

type AUParameterEvent

type AUParameterEvent struct {
	Next                     unsafe.Pointer
	EventSampleTime          int64
	EventType                AURenderEventType
	Reserved                 [3]uint8
	RampDurationSampleFrames uint32
	ParameterAddress         uint64
	Value                    float32
}

Describes a scheduled parameter change.

type AUParameterEventType

type AUParameterEventType int64
const (
	KParameterEvent_Immediate AUParameterEventType = 1
	KParameterEvent_Ramped    AUParameterEventType = 2
)

func (AUParameterEventType) String

func (e AUParameterEventType) String() string

type AUParameterGroup

type AUParameterGroup struct {
	AUParameterNode
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auparametergroup

func AUParameterGroupFromID

func AUParameterGroupFromID(id objc.ID) *AUParameterGroup

func AUParameterTreeCreateGroupFromTemplateIdentifierNameAddressOffset

func AUParameterTreeCreateGroupFromTemplateIdentifierNameAddressOffset(templateGroup *AUParameterGroup, identifier *foundation.NSString, name *foundation.NSString, addressOffset uint64) *AUParameterGroup

@brief Initialize a group as a copied instance of a template group. @param templateGroup A group to be used as a template and largely copied. @param identifier An identifier for the new group (non-localized, persistent). @param name The new group's human-readable name (localized). @param addressOffset The new group's parameters' addresses will be offset from those in the template by this value.

func AUParameterTreeCreateGroupTemplate

func AUParameterTreeCreateGroupTemplate(children *foundation.NSArray[*AUParameterNode]) *AUParameterGroup

@brief Create a template group which may be used as a prototype for further group instances. @discussion Template groups provide a way to construct multiple instances of identical parameter groups, sharing certain immutable state between the instances. Template groups may not appear in trees except at the root.

func AUParameterTreeCreateGroupWithIdentifierNameChildren

func AUParameterTreeCreateGroupWithIdentifierNameChildren(identifier *foundation.NSString, name *foundation.NSString, children *foundation.NSArray[*AUParameterNode]) *AUParameterGroup

@brief Create an AUParameterGroup. @param identifier An identifier for the group (non-localized, persistent). @param name The group's human-readable name (localized). @param children The group's child nodes.

func (*AUParameterGroup) AllParameters

func (o *AUParameterGroup) AllParameters() *foundation.NSArray[*AUParameter]

Returns a flat array of all parameters in the group, including those in child groups.

func (*AUParameterGroup) Children

The group's child nodes (AUParameterGroupNode).

type AUParameterMIDIMapping

type AUParameterMIDIMapping struct {
	MScope       uint
	MElement     uint
	MParameterID uint
	MFlags       AUParameterMIDIMappingFlags
	MSubRangeMin float32
	MSubRangeMax float32
	MStatus      uint8
	MData1       uint8
	Reserved1    uint8
	Reserved2    uint8
	Reserved3    uint
}

@struct AUParameterMIDIMapping @abstract Represents a mapping between a MIDI message and an audio unit's parameter. @discussion The reserved fields in this structure are for future use. In the current implementation, they help align the structure to 64 bit size. Do not use the names of these fields in a host application. They are subject to change.

type AUParameterMIDIMappingFlags

type AUParameterMIDIMappingFlags int64
const (
	KAUParameterMIDIMapping_AnyChannelFlag AUParameterMIDIMappingFlags = 1
	KAUParameterMIDIMapping_AnyNoteFlag    AUParameterMIDIMappingFlags = 2
	KAUParameterMIDIMapping_SubRange       AUParameterMIDIMappingFlags = 4
	KAUParameterMIDIMapping_Toggle         AUParameterMIDIMappingFlags = 8
	KAUParameterMIDIMapping_Bipolar        AUParameterMIDIMappingFlags = 16
	KAUParameterMIDIMapping_Bipolar_On     AUParameterMIDIMappingFlags = 32
)

func (AUParameterMIDIMappingFlags) String

type AUParameterNode

type AUParameterNode struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auparameternode

func AUParameterNodeFromID

func AUParameterNodeFromID(id objc.ID) *AUParameterNode

func (*AUParameterNode) DisplayName

func (o *AUParameterNode) DisplayName() *foundation.NSString

@property displayName @brief A localized name to display for the parameter.

func (*AUParameterNode) DisplayNameWithLength

func (o *AUParameterNode) DisplayNameWithLength(maximumLength int) *foundation.NSString

@method displayNameWithLength: @brief A version of displayName possibly abbreviated to the given desired length, in characters. @discussion The default implementation simply returns displayName.

func (*AUParameterNode) Identifier

func (o *AUParameterNode) Identifier() *foundation.NSString

@property identifier @brief A non-localized, permanent name for a parameter or group. @discussion The identifier must be unique for all child nodes under any given parent. From release to release, an audio unit must not change its parameters' identifiers; this will invalidate any hosts' documents that refer to the parameters.

func (*AUParameterNode) ImplementorDisplayNameWithLengthCallback

func (o *AUParameterNode) ImplementorDisplayNameWithLengthCallback() objc.Block

Called to obtain an abbreviated version of a parameter or group name.

func (*AUParameterNode) ImplementorStringFromValueCallback

func (o *AUParameterNode) ImplementorStringFromValueCallback() objc.Block

Called to provide string representations of parameter values. If value is nil, the callback uses the current value of the parameter.

func (*AUParameterNode) ImplementorValueFromStringCallback

func (o *AUParameterNode) ImplementorValueFromStringCallback() objc.Block

Called to convert string to numeric representations of parameter values.

func (*AUParameterNode) ImplementorValueObserver

func (o *AUParameterNode) ImplementorValueObserver() objc.Block

@brief Called when a parameter changes value. @discussion This block, used only in an audio unit implementation, receives all externally-generated changes to parameter values. It should store the new value in its audio signal processing state (assuming that that state is separate from the AUParameter object).

func (*AUParameterNode) ImplementorValueProvider

func (o *AUParameterNode) ImplementorValueProvider() objc.Block

@brief Called when a value of a parameter in the tree is known to have a stale value needing to be refreshed. @discussion The audio unit should return the current value for this parameter; the AUParameterNode will store the value.

func (*AUParameterNode) KeyPath

func (o *AUParameterNode) KeyPath() *foundation.NSString

@property keyPath @brief Generated by concatenating the identifiers of a node's parents with its own. @discussion Unless an audio unit specifically documents that its parameter addresses are stable and persistent, hosts, when recording parameter values, should bind to the keyPath. The individual node identifiers in a key path are separated by periods. (".") Passing a node's keyPath to -[tree valueForKeyPath:] should return the same node.

func (*AUParameterNode) RemoveParameterObserver

func (o *AUParameterNode) RemoveParameterObserver(token unsafe.Pointer)

@method removeParameterObserver: @brief Remove an observer created with tokenByAddingParameterObserver, tokenByAddingParameterRecordingObserver, or tokenByAddingParameterAutomationObserver. @discussion This call will remove the callback corresponding to the supplied token. Note that this will block until any callbacks currently in flight have completed.

func (*AUParameterNode) SetImplementorDisplayNameWithLengthCallback

func (o *AUParameterNode) SetImplementorDisplayNameWithLengthCallback(implementorDisplayNameWithLengthCallback objc.Block)

func (*AUParameterNode) SetImplementorStringFromValueCallback

func (o *AUParameterNode) SetImplementorStringFromValueCallback(implementorStringFromValueCallback objc.Block)

func (*AUParameterNode) SetImplementorValueFromStringCallback

func (o *AUParameterNode) SetImplementorValueFromStringCallback(implementorValueFromStringCallback objc.Block)

func (*AUParameterNode) SetImplementorValueObserver

func (o *AUParameterNode) SetImplementorValueObserver(implementorValueObserver func(*AUParameter, float32))

func (*AUParameterNode) SetImplementorValueProvider

func (o *AUParameterNode) SetImplementorValueProvider(implementorValueProvider objc.Block)

func (*AUParameterNode) TokenByAddingParameterAutomationObserver

func (o *AUParameterNode) TokenByAddingParameterAutomationObserver(observer func(int, *AUParameterAutomationEvent)) unsafe.Pointer

@method tokenByAddingParameterAutomationObserver: @brief Add a recording observer for a parameter or all parameters in a group/tree. @discussion An audio unit host can use an AUParameterAutomationObserver or AUParameterRecordingObserver to capture a series of changes to a parameter value, including the timing of the events, as generated by a UI gesture in a view, for example. Unlike AUParameterObserver, these callbacks are not throttled. This block is called in an arbitrary thread context. It is responsible for thread-safety. It must not make any calls to add or remove other observers, including itself; this will deadlock. An audio unit's engine should interact with the parameter object via implementorValueObserver and implementorValueProvider. @param observer A block to call to record the changing of a parameter value. @return A token which can be passed to removeParameterObserver: or to -[AUParameter setValue:originator:]

func (*AUParameterNode) TokenByAddingParameterObserver

func (o *AUParameterNode) TokenByAddingParameterObserver(observer func(uint64, float32)) unsafe.Pointer

@method tokenByAddingParameterObserver: @brief Add an observer for a parameter or all parameters in a group/tree. @discussion An audio unit view can use an AUParameterObserver to be notified of changes to a single parameter, or to all parameters in a group/tree. These callbacks are throttled so as to limit the rate of redundant notifications in the case of frequent changes to a single parameter. This block is called in an arbitrary thread context. It is responsible for thread-safety. It must not make any calls to add or remove other observers, including itself; this will deadlock. An audio unit's implementation should interact with the parameter object via implementorValueObserver and implementorValueProvider. Parameter observers are bound to a specific parameter instance. If this parameter is destroyed, e.g. if the parameter tree is re-constructed, the previously set parameter observers will no longer be valid. Clients can observe changes to the parameter tree via KVO. See the discussion of -[AUAudioUnit parameterTree]. @param observer A block to call after the value of a parameter has changed. @return A token which can be passed to removeParameterObserver: or to -[AUParameter setValue:originator:]

func (*AUParameterNode) TokenByAddingParameterRecordingObserver

func (o *AUParameterNode) TokenByAddingParameterRecordingObserver(observer func(int, *AURecordedParameterEvent)) unsafe.Pointer

@method tokenByAddingParameterRecordingObserver: @brief Add a recording observer for a parameter or all parameters in a group/tree. @discussion This is a variant of tokenByAddingParameterAutomationObserver where the callback receives AURecordedParameterEvents instead of AUParameterAutomationEvents. This will be deprecated in favor of tokenByAddingParameterAutomationObserver in a future release.

type AUParameterTree

type AUParameterTree struct {
	AUParameterGroup
}

Apple documentation: https://developer.apple.com/documentation/audiotoolbox/auparametertree

func AUParameterTreeCreateTreeWithChildren

func AUParameterTreeCreateTreeWithChildren(children *foundation.NSArray[*AUParameterNode]) *AUParameterTree

@brief Create an AUParameterTree. @param children The tree's top-level child nodes.

func AUParameterTreeFromID

func AUParameterTreeFromID(id objc.ID) *AUParameterTree

func (*AUParameterTree) ParameterWithAddress

func (o *AUParameterTree) ParameterWithAddress(address uint64) *AUParameter

@method parameterWithAddress: @brief Search a tree for a parameter with a specific address. @return The parameter corresponding to the supplied address, or nil if no such parameter exists.

func (*AUParameterTree) ParameterWithIDScopeElement

func (o *AUParameterTree) ParameterWithIDScopeElement(paramID uint, scope uint, element uint) *AUParameter

@method parameterWithID:scope:element: @brief Search a tree for a specific v2 audio unit parameter. @discussion V2 audio units publish parameters identified by a parameter ID, scope, and element. A host that knows that it is dealing with a v2 unit can locate parameters using this method, for example, for the Apple-supplied system audio units. @return The parameter corresponding to the supplied ID/scope/element, or nil if no such parameter exists, or if the audio unit is not a v2 unit.

type AUPreset

type AUPreset struct {
	PresetNumber int
	PresetName   unsafe.Pointer
}

@struct AUPreset @abstract Used to publish and set factory presets on an audio unit @var presetNumber If < 0, then preset is a user preset If >= 0, then this field is used to select the factory preset @var presetName If a factory preset, the name of the specified factory preset

type AUPresetEvent

type AUPresetEvent struct {
	Scope   uint
	Element uint
	Preset  unsafe.Pointer
}

@struct AUPresetEvent @discussion The parameters to specify a preset for an audio unit.

type AURecordedParameterEvent

type AURecordedParameterEvent struct {
	HostTime uint64
	Address  uint64
	Value    float32
}

@typedef AURecordedParameterEvent @brief An event recording the changing of a parameter at a particular host time.

type AURenderCallbackStruct

type AURenderCallbackStruct struct {
	InputProc       unsafe.Pointer
	InputProcRefCon unsafe.Pointer
}

@struct AURenderCallbackStruct @abstract Used by a host when registering a callback with the audio unit to provide input

type AURenderEventHeader

type AURenderEventHeader struct {
	Next            unsafe.Pointer
	EventSampleTime int64
	EventType       AURenderEventType
	Reserved        uint8
}

Common header for an AURenderEvent.

type AURenderEventType

type AURenderEventType int64
const (
	AURenderEventParameter     AURenderEventType = 1
	AURenderEventParameterRamp AURenderEventType = 2
	AURenderEventMIDI          AURenderEventType = 8
	AURenderEventMIDISysEx     AURenderEventType = 9
	AURenderEventMIDIEventList AURenderEventType = 10
)

func (AURenderEventType) String

func (e AURenderEventType) String() string

type AUReverbRoomType

type AUReverbRoomType int64
const (
	KReverbRoomType_SmallRoom     AUReverbRoomType = 0
	KReverbRoomType_MediumRoom    AUReverbRoomType = 1
	KReverbRoomType_LargeRoom     AUReverbRoomType = 2
	KReverbRoomType_MediumHall    AUReverbRoomType = 3
	KReverbRoomType_LargeHall     AUReverbRoomType = 4
	KReverbRoomType_Plate         AUReverbRoomType = 5
	KReverbRoomType_MediumChamber AUReverbRoomType = 6
	KReverbRoomType_LargeChamber  AUReverbRoomType = 7
	KReverbRoomType_Cathedral     AUReverbRoomType = 8
	KReverbRoomType_LargeRoom2    AUReverbRoomType = 9
	KReverbRoomType_MediumHall2   AUReverbRoomType = 10
	KReverbRoomType_MediumHall3   AUReverbRoomType = 11
	KReverbRoomType_LargeHall2    AUReverbRoomType = 12
)

func (AUReverbRoomType) String

func (e AUReverbRoomType) String() string

type AUSamplerBankPresetData

type AUSamplerBankPresetData struct {
	BankURL  unsafe.Pointer
	BankMSB  uint8
	BankLSB  uint8
	PresetID uint8
	Reserved uint8
}

type AUSamplerInstrumentData

type AUSamplerInstrumentData struct {
	FileURL        unsafe.Pointer
	InstrumentType uint8
	BankMSB        uint8
	BankLSB        uint8
	PresetID       uint8
}

type AUScheduledAudioSliceFlags

type AUScheduledAudioSliceFlags int64
const (
	KScheduledAudioSliceFlag_Complete          AUScheduledAudioSliceFlags = 1
	KScheduledAudioSliceFlag_BeganToRender     AUScheduledAudioSliceFlags = 2
	KScheduledAudioSliceFlag_BeganToRenderLate AUScheduledAudioSliceFlags = 4
	KScheduledAudioSliceFlag_Loop              AUScheduledAudioSliceFlags = 8
	KScheduledAudioSliceFlag_Interrupt         AUScheduledAudioSliceFlags = 16
	KScheduledAudioSliceFlag_InterruptAtLoop   AUScheduledAudioSliceFlags = 32
)

func (AUScheduledAudioSliceFlags) String

type AUSpatialMixerAttenuationCurve

type AUSpatialMixerAttenuationCurve int64
const (
	KSpatialMixerAttenuationCurve_Power       AUSpatialMixerAttenuationCurve = 0
	KSpatialMixerAttenuationCurve_Exponential AUSpatialMixerAttenuationCurve = 1
	KSpatialMixerAttenuationCurve_Inverse     AUSpatialMixerAttenuationCurve = 2
	KSpatialMixerAttenuationCurve_Linear      AUSpatialMixerAttenuationCurve = 3
)

func (AUSpatialMixerAttenuationCurve) String

type AUSpatialMixerOutputType

type AUSpatialMixerOutputType int64
const (
	KSpatialMixerOutputType_Headphones       AUSpatialMixerOutputType = 1
	KSpatialMixerOutputType_BuiltInSpeakers  AUSpatialMixerOutputType = 2
	KSpatialMixerOutputType_ExternalSpeakers AUSpatialMixerOutputType = 3
)

func (AUSpatialMixerOutputType) String

func (e AUSpatialMixerOutputType) String() string

type AUSpatialMixerPersonalizedHRTFMode

type AUSpatialMixerPersonalizedHRTFMode int64
const (
	KSpatialMixerPersonalizedHRTFMode_Off  AUSpatialMixerPersonalizedHRTFMode = 0
	KSpatialMixerPersonalizedHRTFMode_On   AUSpatialMixerPersonalizedHRTFMode = 1
	KSpatialMixerPersonalizedHRTFMode_Auto AUSpatialMixerPersonalizedHRTFMode = 2
)

func (AUSpatialMixerPersonalizedHRTFMode) String

type AUSpatialMixerPointSourceInHeadMode

type AUSpatialMixerPointSourceInHeadMode int64
const (
	KSpatialMixerPointSourceInHeadMode_Mono   AUSpatialMixerPointSourceInHeadMode = 0
	KSpatialMixerPointSourceInHeadMode_Bypass AUSpatialMixerPointSourceInHeadMode = 1
)

func (AUSpatialMixerPointSourceInHeadMode) String

type AUSpatialMixerRenderingFlags

type AUSpatialMixerRenderingFlags int64
const (
	KSpatialMixerRenderingFlags_InterAuralDelay     AUSpatialMixerRenderingFlags = 1
	KSpatialMixerRenderingFlags_DistanceAttenuation AUSpatialMixerRenderingFlags = 4
)

func (AUSpatialMixerRenderingFlags) String

type AUSpatialMixerSourceMode

type AUSpatialMixerSourceMode int64
const (
	KSpatialMixerSourceMode_SpatializeIfMono AUSpatialMixerSourceMode = 0
	KSpatialMixerSourceMode_Bypass           AUSpatialMixerSourceMode = 1
	KSpatialMixerSourceMode_PointSource      AUSpatialMixerSourceMode = 2
	KSpatialMixerSourceMode_AmbienceBed      AUSpatialMixerSourceMode = 3
)

func (AUSpatialMixerSourceMode) String

func (e AUSpatialMixerSourceMode) String() string

type AUSpatializationAlgorithm

type AUSpatializationAlgorithm int64
const (
	KSpatializationAlgorithm_EqualPowerPanning  AUSpatializationAlgorithm = 0
	KSpatializationAlgorithm_SphericalHead      AUSpatializationAlgorithm = 1
	KSpatializationAlgorithm_HRTF               AUSpatializationAlgorithm = 2
	KSpatializationAlgorithm_SoundField         AUSpatializationAlgorithm = 3
	KSpatializationAlgorithm_VectorBasedPanning AUSpatializationAlgorithm = 4
	KSpatializationAlgorithm_StereoPassThrough  AUSpatializationAlgorithm = 5
	KSpatializationAlgorithm_HRTFHQ             AUSpatializationAlgorithm = 6
	KSpatializationAlgorithm_UseOutputType      AUSpatializationAlgorithm = 7
)

func (AUSpatializationAlgorithm) String

func (e AUSpatializationAlgorithm) String() string

type AUVoiceIOOtherAudioDuckingConfiguration

type AUVoiceIOOtherAudioDuckingConfiguration struct {
	MEnableAdvancedDucking uint8
	MDuckingLevel          AUVoiceIOOtherAudioDuckingLevel
}

@struct AUVoiceIOOtherAudioDuckingConfiguration @abstract The configuration of ducking other (i.e. non-voice) audio @var mEnableAdvancedDucking Enables advanced ducking which ducks other audio based on the presence of voice activity from local and/or remote chat participants. @var mDuckingLevel Ducking level of other audio

type AUVoiceIOOtherAudioDuckingLevel

type AUVoiceIOOtherAudioDuckingLevel int64
const (
	KAUVoiceIOOtherAudioDuckingLevelDefault AUVoiceIOOtherAudioDuckingLevel = 0
	KAUVoiceIOOtherAudioDuckingLevelMin     AUVoiceIOOtherAudioDuckingLevel = 10
	KAUVoiceIOOtherAudioDuckingLevelMid     AUVoiceIOOtherAudioDuckingLevel = 20
	KAUVoiceIOOtherAudioDuckingLevelMax     AUVoiceIOOtherAudioDuckingLevel = 30
)

func (AUVoiceIOOtherAudioDuckingLevel) String

type AUVoiceIOSpeechActivityEvent

type AUVoiceIOSpeechActivityEvent int64
const (
	KAUVoiceIOSpeechActivityHasStarted AUVoiceIOSpeechActivityEvent = 0
	KAUVoiceIOSpeechActivityHasEnded   AUVoiceIOSpeechActivityEvent = 1
)

func (AUVoiceIOSpeechActivityEvent) String

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type AudioBalanceFade

type AudioBalanceFade struct {
	MLeftRightBalance float32
	MBackFrontFade    float32
	MType             AudioBalanceFadeType
	MChannelLayout    *coreaudiotypes.AudioChannelLayout
}

@struct AudioBalanceFade @abstract this struct is used with kAudioFormatProperty_BalanceFade @var mLeftRightBalance -1 is full left, 0 is center, +1 is full right @var mBackFrontFade -1 is full rear, 0 is center, +1 is full front @var mType an AudioBalanceFadeType constant @var mChannelLayout a pointer to an AudioChannelLayout

type AudioBalanceFadeType

type AudioBalanceFadeType int64
const (
	KAudioBalanceFadeType_MaxUnityGain AudioBalanceFadeType = 0
	KAudioBalanceFadeType_EqualPower   AudioBalanceFadeType = 1
)

func (AudioBalanceFadeType) String

func (e AudioBalanceFadeType) String() string

type AudioBytePacketTranslation

type AudioBytePacketTranslation struct {
	MByte               int64
	MPacket             int64
	MByteOffsetInPacket uint
	MFlags              AudioBytePacketTranslationFlags
}

@struct AudioBytePacketTranslation @abstract used for properties kAudioFileByteToPacket and kAudioFilePacketToByte @discussion See description of kAudioFileByteToPacket and kAudioFilePacketToByte @var mByte a byte number. @var mPacket a packet number. @var mByteOffsetInPacket a byte offset in a packet. @var mFlags if kBytePacketTranslationFlag_IsEstimate is set, then the value is an estimate.

type AudioBytePacketTranslationFlags

type AudioBytePacketTranslationFlags int64
const (
	KBytePacketTranslationFlag_IsEstimate AudioBytePacketTranslationFlags = 1
)

func (AudioBytePacketTranslationFlags) String

type AudioCodecMagicCookieInfo

type AudioCodecMagicCookieInfo struct {
	MMagicCookieSize uint
	MMagicCookie     unsafe.Pointer
}

@struct AudioCodecMagicCookieInfo @abstract Structure holding the <em>magic cookie</em> information. @discussion Passed as input to AudioCodecGetProperty for kAudioCodecPropertyFormatList. The first four + sizeof(void *) bytes of the buffer pointed at by outPropertyData will contain this struct. @var mMagicCookieSize The size of the magic cookie @var mMagicCookie Generic const pointer to magic cookie

type AudioCodecPrimeInfo

type AudioCodecPrimeInfo struct {
	LeadingFrames  uint
	TrailingFrames uint
}

@struct AudioCodecPrimeInfo @discussion Specifies the number of leading and trailing empty frames which have to be inserted. @var leadingFrames An unsigned integer specifying the number of leading empty frames @var trailingFrames An unsigned integer specifying the number of trailing empty frames

type AudioComponentDescription

type AudioComponentDescription struct {
	ComponentType         uint
	ComponentSubType      uint
	ComponentManufacturer uint
	ComponentFlags        uint
	ComponentFlagsMask    uint
}

type AudioComponentFlags

type AudioComponentFlags int64
const (
	KAudioComponentFlag_Unsearchable               AudioComponentFlags = 1
	KAudioComponentFlag_SandboxSafe                AudioComponentFlags = 2
	KAudioComponentFlag_IsV3AudioUnit              AudioComponentFlags = 4
	KAudioComponentFlag_RequiresAsyncInstantiation AudioComponentFlags = 8
	KAudioComponentFlag_CanLoadInProcess           AudioComponentFlags = 16
)

func (AudioComponentFlags) String

func (e AudioComponentFlags) String() string

type AudioComponentInstance

type AudioComponentInstance = *carboncore.ComponentInstanceRecord

AudioComponentInstance is an opaque pointer to ComponentInstanceRecord (C typedef AudioComponentInstance).

type AudioComponentInstantiationOptions

type AudioComponentInstantiationOptions int64
const (
	KAudioComponentInstantiation_LoadOutOfProcess AudioComponentInstantiationOptions = 1
	KAudioComponentInstantiation_LoadInProcess    AudioComponentInstantiationOptions = 2
)

func (AudioComponentInstantiationOptions) String

type AudioComponentPlugInInterface

type AudioComponentPlugInInterface struct {
	Open     unsafe.Pointer
	Close    unsafe.Pointer
	Lookup   unsafe.Pointer
	Reserved unsafe.Pointer
}

@struct AudioComponentPlugInInterface @discussion A structure used to represent an audio plugin's routines @var Open the function used to open (or create) an audio plugin instance @var Close the function used to close (or dispose) an audio plugin instance @var Lookup this is used to return a function pointer for a given selector, or NULL if that selector is not implemented @var reserved must be NULL

type AudioComponentValidationResult

type AudioComponentValidationResult int64
const (
	KAudioComponentValidationResult_Unknown                AudioComponentValidationResult = 0
	KAudioComponentValidationResult_Passed                 AudioComponentValidationResult = 1
	KAudioComponentValidationResult_Failed                 AudioComponentValidationResult = 2
	KAudioComponentValidationResult_TimedOut               AudioComponentValidationResult = 3
	KAudioComponentValidationResult_UnauthorizedError_Open AudioComponentValidationResult = 4
	KAudioComponentValidationResult_UnauthorizedError_Init AudioComponentValidationResult = 5
)

func (AudioComponentValidationResult) String

type AudioConverterOptions

type AudioConverterOptions int64
const (
	KAudioConverterOption_Unbuffered AudioConverterOptions = 65536
)

func (AudioConverterOptions) String

func (e AudioConverterOptions) String() string

type AudioConverterPrimeInfo

type AudioConverterPrimeInfo struct {
	LeadingFrames  uint
	TrailingFrames uint
}

@struct AudioConverterPrimeInfo @abstract Specifies priming information. When using AudioConverterFillComplexBuffer() (either a single call or a series of calls), some conversions, particularly involving sample-rate conversion, ideally require a certain number of input frames previous to the normal start input frame and beyond the end of the last expected input frame in order to yield high-quality results. These are expressed in the leadingFrames and trailingFrames members of the structure. The very first call to AudioConverterFillComplexBuffer(), or first call after AudioConverterReset(), will request additional input frames beyond those normally expected in the input proc callback to fulfill this first AudioConverterFillComplexBuffer() request. The number of additional frames requested, depending on the prime method, will be approximately: Prime method | Additional frames ------------------------------|---------------------- kConverterPrimeMethod_Pre | leadingFrames + trailingFrames kConverterPrimeMethod_Normal | trailingFrames kConverterPrimeMethod_None | 0 Thus, in effect, the first input proc callback(s) may provide not only the leading frames, but also may "read ahead" by an additional number of trailing frames depending on the prime method. kConverterPrimeMethod_None is useful in a real-time application processing live input, in which case trailingFrames (relative to input sample rate) of through latency will be seen at the beginning of the output of the AudioConverter. In other real-time applications such as DAW systems, it may be possible to provide these initial extra audio frames since they are stored on disk or in memory somewhere and kConverterPrimeMethod_Pre may be preferable. The default method is kConverterPrimeMethod_Normal, which requires no pre-seeking of the input stream and generates no latency at the output. @var leadingFrames Specifies the number of leading (previous) input frames, relative to the normal/desired start input frame, required by the converter to perform a high quality conversion. If using kConverterPrimeMethod_Pre, the client should "pre-seek" the input stream provided through the input proc by leadingFrames. If no frames are available previous to the desired input start frame (because, for example, the desired start frame is at the very beginning of available audio), then provide "leadingFrames" worth of initial zero frames in the input proc. Do not "pre-seek" in the default case of kConverterPrimeMethod_Normal or when using kConverterPrimeMethod_None. @var trailingFrames Specifies the number of trailing input frames (past the normal/expected end input frame) required by the converter to perform a high quality conversion. The client should be prepared to provide this number of additional input frames except when using kConverterPrimeMethod_None. If no more frames of input are available in the input stream (because, for example, the desired end frame is at the end of an audio file), then zero (silent) trailing frames will be synthesized for the client.

type AudioFileFDFTable

type AudioFileFDFTable struct {
	MComponentStorage   unsafe.Pointer
	MReadBytesFDF       unsafe.Pointer
	MWriteBytesFDF      unsafe.Pointer
	MReadPacketsFDF     unsafe.Pointer
	MWritePacketsFDF    unsafe.Pointer
	MGetPropertyInfoFDF unsafe.Pointer
	MGetPropertyFDF     unsafe.Pointer
	MSetPropertyFDF     unsafe.Pointer
	MCountUserDataFDF   unsafe.Pointer
	MGetUserDataSizeFDF unsafe.Pointer
	MGetUserDataFDF     unsafe.Pointer
	MSetUserDataFDF     unsafe.Pointer
}

type AudioFileFDFTableExtended deprecated

type AudioFileFDFTableExtended struct {
	MComponentStorage   unsafe.Pointer
	MReadBytesFDF       unsafe.Pointer
	MWriteBytesFDF      unsafe.Pointer
	MReadPacketsFDF     unsafe.Pointer
	MWritePacketsFDF    unsafe.Pointer
	MGetPropertyInfoFDF unsafe.Pointer
	MGetPropertyFDF     unsafe.Pointer
	MSetPropertyFDF     unsafe.Pointer
	MCountUserDataFDF   unsafe.Pointer
	MGetUserDataSizeFDF unsafe.Pointer
	MGetUserDataFDF     unsafe.Pointer
	MSetUserDataFDF     unsafe.Pointer
	MReadPacketDataFDF  unsafe.Pointer
}

Deprecated: no longer supported

type AudioFileFlags

type AudioFileFlags int64
const (
	KAudioFileFlags_EraseFile              AudioFileFlags = 1
	KAudioFileFlags_DontPageAlignAudioData AudioFileFlags = 2
)

func (AudioFileFlags) String

func (e AudioFileFlags) String() string

type AudioFileMarker

type AudioFileMarker struct {
	MFramePosition float64
	MName          unsafe.Pointer
	MMarkerID      int
	MSMPTETime     AudioFile_SMPTE_Time
	MType          uint
	MReserved      uint16
	MChannel       uint16
}

@struct AudioFileMarker @abstract A marker annotates a position in an audio file with additional information. @discussion (description) @var mFramePosition The frame in the file counting from the start of the audio data. @var mName The name of this marker. @var mMarkerID A unique ID for this marker. @var mSMPTETime The SMPTE time for this marker. @var mType The marker type. @var mReserved A reserved field. Set to zero. @var mChannel The channel number that the marker refers to. Set to zero if marker applies to all channels.

type AudioFileMarkerList

type AudioFileMarkerList struct {
	MSMPTE_TimeType uint
	MNumberMarkers  uint
	MMarkers        [1]AudioFileMarker
}

@struct AudioFileMarkerList @abstract A list of AudioFileMarker. @var mSMPTE_TimeType This defines the SMPTE timing scheme used in the marker list. See CAFFile.h for the values used here. @var mNumberMarkers The number of markers in the mMarkers list. @var mMarkers A list of AudioFileMarker.

type AudioFilePacketTableInfo

type AudioFilePacketTableInfo struct {
	MNumberValidFrames int64
	MPrimingFrames     int
	MRemainderFrames   int
}

@struct AudioFilePacketTableInfo @abstract This contains information about the number of valid frames in a file and where they begin and end. @discussion Some data formats may have packets whose contents are not completely valid, but represent priming or remainder frames that are not meant to be played. For example a file with 100 packets of AAC is nominally 1024 * 100 = 102400 frames of data. However the first 2112 frames of that may be priming frames and there may be some number of remainder frames added to pad out to a full packet of 1024 frames. The priming and remainder frames should be discarded. The total number of packets in the file times the frames per packet (or counting each packet's frames individually for a variable frames per packet format) minus mPrimingFrames, minus mRemainderFrames, should equal mNumberValidFrames. @var mNumberValidFrames the number of valid frames in the file. @var mPrimingFrames the number of invalid frames at the beginning of the file. @var mRemainderFrames the number of invalid frames at the end of the file.

type AudioFilePermissions

type AudioFilePermissions int64
const (
	KAudioFileReadPermission      AudioFilePermissions = 1
	KAudioFileWritePermission     AudioFilePermissions = 2
	KAudioFileReadWritePermission AudioFilePermissions = 3
)

func (AudioFilePermissions) String

func (e AudioFilePermissions) String() string

type AudioFileRegion

type AudioFileRegion struct {
	MRegionID      uint
	MName          unsafe.Pointer
	MFlags         AudioFileRegionFlags
	MNumberMarkers uint
	MMarkers       [1]AudioFileMarker
}

@struct AudioFileRegion @abstract An AudioFileRegion specifies a segment of audio data. @discussion Generally a region consists of at least two markers marking the beginning and end of the segment. There may also be other markers defining other meta information such as sync point. @var mRegionID each region must have a unique ID. @var mName The name of the region. @var mFlags AudioFileRegionFlags. @var mNumberMarkers The number of markers in the mMarkers array. @var mMarkers A variable length array of AudioFileMarkers.

func NextAudioFileRegion

func NextAudioFileRegion(inAFRegionPtr *AudioFileRegion) *AudioFileRegion

type AudioFileRegionFlags

type AudioFileRegionFlags int64
const (
	KAudioFileRegionFlag_LoopEnable   AudioFileRegionFlags = 1
	KAudioFileRegionFlag_PlayForward  AudioFileRegionFlags = 2
	KAudioFileRegionFlag_PlayBackward AudioFileRegionFlags = 4
)

func (AudioFileRegionFlags) String

func (e AudioFileRegionFlags) String() string

type AudioFileRegionList

type AudioFileRegionList struct {
	MSMPTE_TimeType uint
	MNumberRegions  uint
	MRegions        [1]AudioFileRegion
}

@struct AudioFileRegionList @abstract A list of the AudioFileRegions in a file. @discussion This is the struct used by the kAudioFilePropertyRegionList property. @var mSMPTE_TimeType This defines the SMPTE timing scheme used in the file. See CAFFile.h for the values used here. @var mNumberRegions The number of regions in the mRegions list. @var mRegions A list of AudioFileRegions. Note that AudioFileMarkers are variable length, so this list cannot be accessed as an array. Use the NextAudioFileRegion macro for traversing the list instead.

type AudioFileStreamParseFlags

type AudioFileStreamParseFlags int64
const (
	KAudioFileStreamParseFlag_Discontinuity AudioFileStreamParseFlags = 1
)

func (AudioFileStreamParseFlags) String

func (e AudioFileStreamParseFlags) String() string

type AudioFileStreamPropertyFlags

type AudioFileStreamPropertyFlags int64
const (
	KAudioFileStreamPropertyFlag_PropertyIsCached AudioFileStreamPropertyFlags = 1
	KAudioFileStreamPropertyFlag_CacheProperty    AudioFileStreamPropertyFlags = 2
)

func (AudioFileStreamPropertyFlags) String

type AudioFileStreamSeekFlags

type AudioFileStreamSeekFlags int64
const (
	KAudioFileStreamSeekFlag_OffsetIsEstimated AudioFileStreamSeekFlags = 1
)

func (AudioFileStreamSeekFlags) String

func (e AudioFileStreamSeekFlags) String() string

type AudioFileTypeAndFormatID

type AudioFileTypeAndFormatID struct {
	MFileType uint
	MFormatID uint
}

@struct AudioFileTypeAndFormatID @abstract This is used as a specifier for kAudioFileGlobalInfo_AvailableStreamDescriptions @discussion This struct is used to specify a desired audio file type and data format ID so that a list of stream descriptions of available formats can be obtained. @var mFileType a four char code for the file type such as kAudioFileAIFFType, kAudioFileCAFType, etc. @var mFormatID a four char code for the format ID such as kAudioFormatLinearPCM, kAudioFormatMPEG4AAC, etc.

type AudioFile_SMPTE_Time

type AudioFile_SMPTE_Time struct {
	MHours                int8
	MMinutes              uint8
	MSeconds              uint8
	MFrames               uint8
	MSubFrameSampleOffset uint
}

@struct AudioFile_SMPTE_Time @abstract A struct for describing a SMPTE time. @var mHours The hours. @var mMinutes The minutes. @var mSeconds The seconds. @var mFrames The frames. @var mSubFrameSampleOffset The sample offset within a frame.

type AudioFormatInfo

type AudioFormatInfo struct {
	MASBD            coreaudiotypes.AudioStreamBasicDescription
	MMagicCookie     unsafe.Pointer
	MMagicCookieSize uint
}

@struct AudioFormatInfo @abstract this struct is used as a specifier for the kAudioFormatProperty_FormatList property @var mASBD an AudioStreamBasicDescription @var mMagicCookie a pointer to the decompression info for the data described in mASBD @var mMagicCookieSize the size in bytes of mMagicCookie

type AudioFramePacketTranslation

type AudioFramePacketTranslation struct {
	MFrame               int64
	MPacket              int64
	MFrameOffsetInPacket uint
}

@struct AudioFramePacketTranslation @abstract used for properties kAudioFilePropertyPacketToFrame and kAudioFilePropertyFrameToPacket @discussion See description of kAudioFilePropertyPacketToFrame and kAudioFilePropertyFrameToPacket @var mFrame a frame number. @var mPacket a packet number. @var mFrameOffsetInPacket a frame offset in a packet.

type AudioIndependentPacketTranslation

type AudioIndependentPacketTranslation struct {
	MPacket                       int64
	MIndependentlyDecodablePacket int64
}

@struct AudioIndependentPacketTranslation @abstract used for property kAudioFilePropertyPreviousIndependentPacket and kAudioFilePropertyNextIndependentPacket @discussion See descriptions of kAudioFilePropertyPreviousIndependentPacket and kAudioFilePropertyNextIndependentPacket @var mPacket a packet number @var mIndependentlyDecodablePacket a packet number not equal to mPacket of an independent packet

type AudioOutputUnitMIDICallbacks

type AudioOutputUnitMIDICallbacks struct {
	UserData      unsafe.Pointer
	MIDIEventProc unsafe.Pointer
	MIDISysExProc unsafe.Pointer
}

@struct AudioOutputUnitMIDICallbacks @abstract For inter-app audio, callbacks for receiving MIDI messages. @discussion The supplied callback functions are called from the realtime rendering thread, before each render cycle, to provide any incoming MIDI messages.

type AudioOutputUnitStartAtTimeParams

type AudioOutputUnitStartAtTimeParams struct {
	MTimestamp coreaudiotypes.AudioTimeStamp
	MFlags     uint
}

@struct AudioOutputUnitStartAtTimeParams

type AudioPacketDependencyInfoTranslation

type AudioPacketDependencyInfoTranslation struct {
	MPacket                   int64
	MIsIndependentlyDecodable uint
	MNumberPrerollPackets     uint
}

@struct AudioPacketDependencyInfoTranslation @abstract used for property kAudioFilePropertyPacketToDependencyInfo @discussion See descriptions of kAudioFilePropertyPacketToDependencyInfo and kAudioFilePropertyRestrictsRandomAccess @var mPacket a packet number @var mIsIndependentlyDecodable 1 means that the specified packet is independently decodable; 0 means it's not @var mNumberPrerollPackets if the packet is independently decodable, the count of packets that must be decoded after the packet with the specified number in order to refresh the decoder

type AudioPacketRangeByteCountTranslation

type AudioPacketRangeByteCountTranslation struct {
	MPacket              int64
	MPacketCount         int64
	MByteCountUpperBound int64
}

@struct AudioPacketRangeByteCountTranslation @abstract used for property kAudioFilePropertyPacketRangeByteCountUpperBound @discussion See description of kAudioFilePropertyPacketRangeByteCountUpperBound @var mPacket a packet number. @var mPacketCount a packet count. @var mByteCountUpperBound an upper bound for the total size of the specified packets.

type AudioPacketRollDistanceTranslation

type AudioPacketRollDistanceTranslation struct {
	MPacket       int64
	MRollDistance int64
}

@struct AudioPacketRollDistanceTranslation @abstract used for property kAudioFilePropertyPacketToRollDistance @discussion See descriptions of kAudioFilePropertyPacketToRollDistance and kAudioFilePropertyRestrictsRandomAccess @var mPacket a packet number @var mRollDistance a count of packets that must be decoded prior to the packet with the specified number in order to achieve the best practice for the decoding of that packet

type AudioPanningInfo

type AudioPanningInfo struct {
	MPanningMode      AudioPanningMode
	MCoordinateFlags  uint
	MCoordinates      [3]float32
	MGainScale        float32
	MOutputChannelMap *coreaudiotypes.AudioChannelLayout
}

@struct AudioPanningInfo @abstract This struct is for use with kAudioFormatProperty_PanningMatrix. @var mPanningMode the PanningMode to be used for the pan @var mCoordinateFlags the coordinates are specified as in the AudioChannelDescription struct in CoreAudioTypes.h @var mCoordinates the coordinates are specified as in the AudioChannelDescription struct in CoreAudioTypes.h @var mGainScale mGainScale is used to multiply the panning values. In typical usage you are applying an existing volume. value in 0 -> 1 (where 1 is unity gain) to the panned values. 1 would give you panning at unity. 0 would give you back a matrix of zeroes. @var mOutputChannelMap This is the channel map that is going to be used to determine channel volumes for this pan.

type AudioPanningMode

type AudioPanningMode int64
const (
	KPanningMode_SoundField         AudioPanningMode = 3
	KPanningMode_VectorBasedPanning AudioPanningMode = 4
)

func (AudioPanningMode) String

func (e AudioPanningMode) String() string

type AudioQueueBuffer

type AudioQueueBuffer struct {
	MAudioDataBytesCapacity    uint
	MAudioData                 unsafe.Pointer
	MAudioDataByteSize         uint
	MUserData                  unsafe.Pointer
	MPacketDescriptionCapacity uint
	MPacketDescriptions        unsafe.Pointer
	MPacketDescriptionCount    uint
}

type AudioQueueChannelAssignment

type AudioQueueChannelAssignment struct {
	MDeviceUID     unsafe.Pointer
	MChannelNumber uint
}

@struct AudioQueueChannelAssignment @abstract Specifies an audio device channel to which the queue will play or from which it will record. @var mDeviceUID On iOS, this is a port UID obtained from AVAudioSession. On macOS, this is the UID obtained from an AudioDeviceID. @var mChannelNumber The 1-based index of the channel.

type AudioQueueLevelMeterState

type AudioQueueLevelMeterState struct {
	MAveragePower float32
	MPeakPower    float32
}

@struct AudioQueueLevelMeterState @abstract Specifies the current level metering information for one channel of an audio queue. @var mAveragePower The audio channel's average RMS power. @var mPeakPower The audio channel's peak RMS power

type AudioQueueParameterEvent

type AudioQueueParameterEvent struct {
	MID    uint
	MValue float32
}

@struct AudioQueueParameterEvent @abstract Specifies a value for an audio queue parameter. Two ways are available to supply an audio queue with parameters: - Provide one or more parameters by calling the AudioQueueEnqueueBufferWithParameters function. In this case, the parameters are applied to the specified buffer when it is played. - Assign a parameter value immediately to an audio queue by calling the AudioQueueSetParameter function. Note that the AudioQueueGetParameter function always returns the actual value of the parameter. In macOS v10.5, audio queues have one parameter available: kAudioQueueParam_Volume, which controls the queue's playback volume. @var mID The parameter. @var mValue The value of the specified parameter.

type AudioQueueProcessingTapFlags

type AudioQueueProcessingTapFlags int64
const (
	KAudioQueueProcessingTap_PreEffects    AudioQueueProcessingTapFlags = 1
	KAudioQueueProcessingTap_PostEffects   AudioQueueProcessingTapFlags = 2
	KAudioQueueProcessingTap_Siphon        AudioQueueProcessingTapFlags = 4
	KAudioQueueProcessingTap_StartOfStream AudioQueueProcessingTapFlags = 256
	KAudioQueueProcessingTap_EndOfStream   AudioQueueProcessingTapFlags = 512
)

func (AudioQueueProcessingTapFlags) String

type AudioSettingsFlags

type AudioSettingsFlags int64
const (
	KAudioSettingsFlags_ExpertParameter        AudioSettingsFlags = 1
	KAudioSettingsFlags_InvisibleParameter     AudioSettingsFlags = 2
	KAudioSettingsFlags_MetaParameter          AudioSettingsFlags = 4
	KAudioSettingsFlags_UserInterfaceParameter AudioSettingsFlags = 8
)

func (AudioSettingsFlags) String

func (e AudioSettingsFlags) String() string

type AudioUnitCocoaViewInfo

type AudioUnitCocoaViewInfo struct {
	MCocoaAUViewBundleLocation unsafe.Pointer
	MCocoaAUViewClass          [1]unsafe.Pointer
}

@struct AudioUnitCocoaViewInfo @abstract The location and class name of one or more view factory objects an Audio Unit publishes @var mCocoaAUViewBundleLocation Contains the location of the bundle which the host app can then use to locate the bundle @var mCocoaAUViewClass Contains the names of the classes that implements the required protocol (AUCocoaUIBase). This class is a view factory that creates the NSView object that is the AudioUnit view.

type AudioUnitConnection

type AudioUnitConnection struct {
	SourceAudioUnit    *carboncore.ComponentInstanceRecord
	SourceOutputNumber uint
	DestInputNumber    uint
}

@struct AudioUnitConnection @abstract This structure contains the information needed to make a connection between a source and destination audio unit. @discussion The structure is set on the destination audio unit's input element @var sourceAudioUnit The audio unit that is the source for the connection @var sourceOutputNumber The source audio unit's output element to be used in the connection @var destInputNumber The destination audio unit's input element to be used in the connection

type AudioUnitEvent

type AudioUnitEvent struct {
	MEventType AudioUnitEventType
	MArgument  unsafe.Pointer
}

@struct AudioUnitEvent @abstract Describes a change to an Audio Unit's state. @var mEventType The type of event. @var mArgument Specifies the parameter or property which has changed.

type AudioUnitEventType

type AudioUnitEventType int64
const (
	KAudioUnitEvent_ParameterValueChange        AudioUnitEventType = 0
	KAudioUnitEvent_BeginParameterChangeGesture AudioUnitEventType = 1
	KAudioUnitEvent_EndParameterChangeGesture   AudioUnitEventType = 2
	KAudioUnitEvent_PropertyChange              AudioUnitEventType = 3
)

func (AudioUnitEventType) String

func (e AudioUnitEventType) String() string

type AudioUnitExternalBuffer

type AudioUnitExternalBuffer struct {
	Buffer *uint8
	Size   uint
}

@struct AudioUnitExternalBuffer @abstract Allow a host to tell an audio unit to use the provided memory for its input callback

type AudioUnitFrequencyResponseBin

type AudioUnitFrequencyResponseBin struct {
	MFrequency float64
	MMagnitude float64
}

@struct AudioUnitFrequencyResponseBin @abstract Structure used to get the magnitude of the frequency response at a particular frequency via kAudioUnitProperty_FrequencyResponse. @discussion An array of AudioUnitFrequencyResponseBin are passed in to kAudioUnitProperty_FrequencyResponse with the mFrequency field filled in. The array is returned with the mMagnitude fields filled in. If fewer than kNumberOfResponseFrequencies are needed, then the first unused bin should be marked with a negative frequency.

type AudioUnitMIDIControlMapping

type AudioUnitMIDIControlMapping struct {
	MidiNRPN    uint16
	MidiControl uint8
	Scope       uint8
	Element     uint
	Parameter   uint
}

type AudioUnitMeterClipping

type AudioUnitMeterClipping struct {
	PeakValueSinceLastCall float32
	SawInfinity            uint8
	SawNotANumber          uint8
}

@struct AudioUnitMeterClipping @var peakValueSinceLastCall; The maximum value seen on the channel since the last time the property was retrieved. @var sawInfinity; TRUE if there was an infinite value on this channel. @var sawNotANumber TRUE if there was a floating point Not-A-Number value on this channel.

type AudioUnitNodeConnection

type AudioUnitNodeConnection struct {
	SourceNode         int
	SourceOutputNumber uint
	DestNode           int
	DestInputNumber    uint
}

@struct AudioUnitNodeConnection @abstract A connection between two nodes @var sourceNode @var sourceOutputNumber @var destNode @var destInputNumber

type AudioUnitOtherPluginDesc

type AudioUnitOtherPluginDesc struct {
	Format uint
	Plugin coreaudiotypes.AudioClassDescription
}

@struct AudioUnitOtherPluginDesc @var format One of the OtherPluginFormat values @var plugin struct AudioClassDescription { OSType mType; OSType mSubType; OSType mManufacturer; }; is defined in <CoreAudioTypes/CoreAudioTypes.h> mType specifies a generic, plug-in format defined descriptor mSubType is usually left to the manufacturer to use at their discretion mManufacturer is a registered code to identify all plugins from the same manufacturer

type AudioUnitParameter

type AudioUnitParameter struct {
	MAudioUnit   *carboncore.ComponentInstanceRecord
	MParameterID uint
	MScope       uint
	MElement     uint
}

@struct AudioUnitParameter @discussion An audio unit parameter is defined by the triplet of audio unit scope, element and parameterID. This struct is used with the functions in AudioUnitUtilities.h to deal with audio unit parameters, but is included in this header file for completeness. @var mAudioUnit The audio unit instance to which the specified parameter applies. @var mParameterID The parameterID for the parameter @var mScope The scope for the parameter @var mElement The element for the parameter

type AudioUnitParameterEvent

type AudioUnitParameterEvent struct {
	Scope       uint
	Element     uint
	Parameter   uint
	EventType   AUParameterEventType
	EventValues unsafe.Pointer
}

@struct AudioUnitParameterEvent @discussion A parameter event describes a change to a parameter's value, where the type of the event describes how that change is to be applied (see AUParameterEventType). A parameter is uniquely defined through the triplet of scope, element and parameterID. See AudioUnitScheduleParameters @var scope The scope for the parameter @var element The element for the parameter @var parameter The parameterID for the parameter @var eventType The event type. This field further defines how the union described by eventValues is to be interpreted. @var eventValues If the parameter event type is _Immediate, then the immediate struct of this union should be used. If the parameter event type is _Ramped, then the ramp struct of this union should be used.

type AudioUnitParameterHistoryInfo

type AudioUnitParameterHistoryInfo struct {
	UpdatesPerSecond         float32
	HistoryDurationInSeconds float32
}

@struct AudioUnitParameterHistoryInfo @abstract This structure contains the suggested update rate and history duration for parameters which have the kAudioUnitParameterFlag_PlotHistory flag set. The structure is filled out by getting kAudioUnitProperty_ParameterHistoryInfo. @var updatesPerSecond This is the number of times per second that it is suggested that the host get the value of this parameter. @var historyDurationInSeconds This is the duration in seconds of history that should be plotted.

type AudioUnitParameterIDName

type AudioUnitParameterIDName = AudioUnitParameterNameInfo

AudioUnitParameterIDName is an alias for AudioUnitParameterNameInfo (C typedef AudioUnitParameterIDName).

type AudioUnitParameterInfo

type AudioUnitParameterInfo struct {
	Name         [52]int8
	UnitName     unsafe.Pointer
	ClumpID      uint
	CfNameString unsafe.Pointer
	Unit         AudioUnitParameterUnit
	MinValue     float32
	MaxValue     float32
	DefaultValue float32
	Flags        AudioUnitParameterOptions
}

@struct AudioUnitParameterInfo @var name UNUSED - set to zero - UTF8 encoded C string (originally). @var unitName Only valid if the unit field equals kAudioUnitParameterUnit_CustomUnit, in which case, unitName must contain a valid CFStringRef. As with cfNameString, if (flags & kAudioUnitParameterFlag_CFNameRelease) is non-zero, the AudioUnit must return a +1 reference to this string, and the host must release it. @var clumpID Only valid if kAudioUnitParameterFlag_HasClump is set. @var cfNameString Only valid if kAudioUnitParameterFlag_HasCFNameString is set. @var unit If the "unit" field contains a value not in the enum above, then assume kAudioUnitParameterUnit_Generic @var minValue The parameter's minimum value. @var maxValue The parameter's maximum value. @var defaultValue The parameter's default value. @var flags Due to some vagaries about the ways in which Parameter's CFNames have been described, it was necessary to add a flag: kAudioUnitParameterFlag_CFNameRelease. In normal usage a parameter name is essentially a static object, but sometimes an audio unit will generate parameter names dynamically.. As these are expected to be CFStrings, in that case the host should release those names when it is finished with them, but there was no way to communicate this distinction in behavior. Thus, if an audio unit will (or could) generate a name dynamically, it should set this flag in the parameter's info. The host should check for this flag, and if present, release the parameter name when it is finished with it.

type AudioUnitParameterNameInfo

type AudioUnitParameterNameInfo struct {
	InID            uint
	InDesiredLength int
	OutName         unsafe.Pointer
}

@struct AudioUnitParameterNameInfo @abstract Used to provide shorter names for a specified parameter

type AudioUnitParameterOptions

type AudioUnitParameterOptions int64
const (
	KAudioUnitParameterFlag_CFNameRelease      AudioUnitParameterOptions = 16
	KAudioUnitParameterFlag_OmitFromPresets    AudioUnitParameterOptions = 8192
	KAudioUnitParameterFlag_PlotHistory        AudioUnitParameterOptions = 16384
	KAudioUnitParameterFlag_MeterReadOnly      AudioUnitParameterOptions = 32768
	KAudioUnitParameterFlag_DisplayMask        AudioUnitParameterOptions = 4653056
	KAudioUnitParameterFlag_DisplaySquareRoot  AudioUnitParameterOptions = 65536
	KAudioUnitParameterFlag_DisplaySquared     AudioUnitParameterOptions = 131072
	KAudioUnitParameterFlag_DisplayCubed       AudioUnitParameterOptions = 196608
	KAudioUnitParameterFlag_DisplayCubeRoot    AudioUnitParameterOptions = 262144
	KAudioUnitParameterFlag_DisplayExponential AudioUnitParameterOptions = 327680
	KAudioUnitParameterFlag_HasClump           AudioUnitParameterOptions = 1048576
	KAudioUnitParameterFlag_ValuesHaveStrings  AudioUnitParameterOptions = 2097152
	KAudioUnitParameterFlag_DisplayLogarithmic AudioUnitParameterOptions = 4194304
	KAudioUnitParameterFlag_IsHighResolution   AudioUnitParameterOptions = 8388608
	KAudioUnitParameterFlag_NonRealTime        AudioUnitParameterOptions = 16777216
	KAudioUnitParameterFlag_CanRamp            AudioUnitParameterOptions = 33554432
	KAudioUnitParameterFlag_ExpertMode         AudioUnitParameterOptions = 67108864
	KAudioUnitParameterFlag_HasCFNameString    AudioUnitParameterOptions = 134217728
	KAudioUnitParameterFlag_IsGlobalMeta       AudioUnitParameterOptions = 268435456
	KAudioUnitParameterFlag_IsElementMeta      AudioUnitParameterOptions = 536870912
	KAudioUnitParameterFlag_IsReadable         AudioUnitParameterOptions = 1073741824
	KAudioUnitParameterFlag_IsWritable         AudioUnitParameterOptions = 2147483648
)

func (AudioUnitParameterOptions) String

func (e AudioUnitParameterOptions) String() string

type AudioUnitParameterStringFromValue

type AudioUnitParameterStringFromValue struct {
	InParamID uint
	InValue   *float32
	OutString unsafe.Pointer
}

@struct AudioUnitParameterStringFromValue @abstract Provide a string representation of a parameter's value

type AudioUnitParameterUnit

type AudioUnitParameterUnit int64
const (
	KAudioUnitParameterUnit_Generic             AudioUnitParameterUnit = 0
	KAudioUnitParameterUnit_Indexed             AudioUnitParameterUnit = 1
	KAudioUnitParameterUnit_Boolean             AudioUnitParameterUnit = 2
	KAudioUnitParameterUnit_Percent             AudioUnitParameterUnit = 3
	KAudioUnitParameterUnit_Seconds             AudioUnitParameterUnit = 4
	KAudioUnitParameterUnit_SampleFrames        AudioUnitParameterUnit = 5
	KAudioUnitParameterUnit_Phase               AudioUnitParameterUnit = 6
	KAudioUnitParameterUnit_Rate                AudioUnitParameterUnit = 7
	KAudioUnitParameterUnit_Hertz               AudioUnitParameterUnit = 8
	KAudioUnitParameterUnit_Cents               AudioUnitParameterUnit = 9
	KAudioUnitParameterUnit_RelativeSemiTones   AudioUnitParameterUnit = 10
	KAudioUnitParameterUnit_MIDINoteNumber      AudioUnitParameterUnit = 11
	KAudioUnitParameterUnit_MIDIController      AudioUnitParameterUnit = 12
	KAudioUnitParameterUnit_Decibels            AudioUnitParameterUnit = 13
	KAudioUnitParameterUnit_LinearGain          AudioUnitParameterUnit = 14
	KAudioUnitParameterUnit_Degrees             AudioUnitParameterUnit = 15
	KAudioUnitParameterUnit_EqualPowerCrossfade AudioUnitParameterUnit = 16
	KAudioUnitParameterUnit_MixerFaderCurve1    AudioUnitParameterUnit = 17
	KAudioUnitParameterUnit_Pan                 AudioUnitParameterUnit = 18
	KAudioUnitParameterUnit_Meters              AudioUnitParameterUnit = 19
	KAudioUnitParameterUnit_AbsoluteCents       AudioUnitParameterUnit = 20
	KAudioUnitParameterUnit_Octaves             AudioUnitParameterUnit = 21
	KAudioUnitParameterUnit_BPM                 AudioUnitParameterUnit = 22
	KAudioUnitParameterUnit_Beats               AudioUnitParameterUnit = 23
	KAudioUnitParameterUnit_Milliseconds        AudioUnitParameterUnit = 24
	KAudioUnitParameterUnit_Ratio               AudioUnitParameterUnit = 25
	KAudioUnitParameterUnit_CustomUnit          AudioUnitParameterUnit = 26
	KAudioUnitParameterUnit_MIDI2Controller     AudioUnitParameterUnit = 27
)

func (AudioUnitParameterUnit) String

func (e AudioUnitParameterUnit) String() string

type AudioUnitParameterValueFromString

type AudioUnitParameterValueFromString struct {
	InParamID uint
	InString  unsafe.Pointer
	OutValue  float32
}

@struct AudioUnitParameterValueFromString @abstract Provide the parameter's value for a given string representation of it

type AudioUnitParameterValueName

type AudioUnitParameterValueName struct {
	InParamID uint
	InValue   *float32
	OutName   unsafe.Pointer
}

type AudioUnitParameterValueTranslation

type AudioUnitParameterValueTranslation struct {
	OtherDesc    AudioUnitOtherPluginDesc
	OtherParamID uint
	OtherValue   float32
	AuParamID    uint
	AuValue      float32
}

@struct AudioUnitParameterValueTranslation @abstract Used to translate another plug-in's parameter values to audio unit parameter values

type AudioUnitPresetMAS_SettingData

type AudioUnitPresetMAS_SettingData struct {
	IsStockSetting uint
	SettingID      uint
	DataLen        uint
	Data           [1]uint8
}

@struct AudioUnitPresetMAS_SettingData @discussion AU-MAS specific structs for the data contained in the "masdata" key of an audio unit preset dictionary

type AudioUnitPresetMAS_Settings

type AudioUnitPresetMAS_Settings struct {
	ManufacturerID   uint
	EffectID         uint
	VariantID        uint
	SettingsVersion  uint
	NumberOfSettings uint
	Settings         [1]AudioUnitPresetMAS_SettingData
}

@struct AudioUnitPresetMAS_Settings @discussion See MAS documentation

type AudioUnitProperty

type AudioUnitProperty struct {
	MAudioUnit  *carboncore.ComponentInstanceRecord
	MPropertyID uint
	MScope      uint
	MElement    uint
}

@struct AudioUnitProperty @discussion An audio unit property is defined by the triplet of audio unit scope, element and propertyID. This struct is used with the functions in AudioUnitUtilities.h to deal with audio unit properties, but is included in this header file for completeness. @var mAudioUnit The audio unit instance which the specified property applies too @var mPropertyID The propertyID for the property @var mScope The scope for the property @var mElement The element for the property

type AudioUnitRemoteControlEvent

type AudioUnitRemoteControlEvent int64
const (
	KAudioUnitRemoteControlEvent_TogglePlayPause AudioUnitRemoteControlEvent = 1
	KAudioUnitRemoteControlEvent_ToggleRecord    AudioUnitRemoteControlEvent = 2
	KAudioUnitRemoteControlEvent_Rewind          AudioUnitRemoteControlEvent = 3
)

func (AudioUnitRemoteControlEvent) String

type AudioUnitRenderActionFlags

type AudioUnitRenderActionFlags int64
const (
	KAudioUnitRenderAction_PreRender            AudioUnitRenderActionFlags = 4
	KAudioUnitRenderAction_PostRender           AudioUnitRenderActionFlags = 8
	KAudioUnitRenderAction_OutputIsSilence      AudioUnitRenderActionFlags = 16
	KAudioOfflineUnitRenderAction_Preflight     AudioUnitRenderActionFlags = 32
	KAudioOfflineUnitRenderAction_Render        AudioUnitRenderActionFlags = 64
	KAudioOfflineUnitRenderAction_Complete      AudioUnitRenderActionFlags = 128
	KAudioUnitRenderAction_PostRenderError      AudioUnitRenderActionFlags = 256
	KAudioUnitRenderAction_DoNotCheckRenderArgs AudioUnitRenderActionFlags = 512
)

func (AudioUnitRenderActionFlags) String

type AudioUnitRenderContext

type AudioUnitRenderContext struct {
	Workgroup unsafe.Pointer
	Reserved  [6]uint32
}

type CABarBeatTime

type CABarBeatTime struct {
	Bar            int
	Beat           uint16
	Subbeat        uint16
	SubbeatDivisor uint16
	Reserved       uint16
}

@struct CABarBeatTime @abstract A display representation of a musical time in beats. A clock's internal representation of musical time is in beats based on the beginning of the timeline. Normally, such times should be displayed to the user in terms of bars, beats, and subbeats (sometimes called "units" or "parts per quarter" [PPQ]). This data structure is such a display representation. By convention, bar 1 is the beginning of the sequence. Beat 1 is the first beat of the measure. In 4/4 time, beat will have a value from 1 to 4. Music applications often use beat divisions such as 480 and 960. @var bar A measure number. @var beat A beat number (1..n). @var subbeat The numerator of the fractional number of beats. @var subbeatDivisor The denominator of the fractional number of beats. @var reserved Must be 0.

type CAClockMessage

type CAClockMessage int64
const (
	KCAClockMessage_StartTimeSet     CAClockMessage = 1937009005
	KCAClockMessage_Started          CAClockMessage = 1937011316
	KCAClockMessage_Stopped          CAClockMessage = 1937010544
	KCAClockMessage_Armed            CAClockMessage = 1634889060
	KCAClockMessage_Disarmed         CAClockMessage = 1684107885
	KCAClockMessage_PropertyChanged  CAClockMessage = 1885562983
	KCAClockMessage_WrongSMPTEFormat CAClockMessage = 1064529264
)

func (CAClockMessage) String

func (e CAClockMessage) String() string

type CAClockPropertyID

type CAClockPropertyID int64
const (
	KCAClockProperty_InternalTimebase      CAClockPropertyID = 1768846434
	KCAClockProperty_TimebaseSource        CAClockPropertyID = 1769235059
	KCAClockProperty_SyncMode              CAClockPropertyID = 1937337965
	KCAClockProperty_SyncSource            CAClockPropertyID = 1937337971
	KCAClockProperty_SMPTEFormat           CAClockPropertyID = 1936552038
	KCAClockProperty_SMPTEOffset           CAClockPropertyID = 1936552047
	KCAClockProperty_MIDIClockDestinations CAClockPropertyID = 1835164516
	KCAClockProperty_MTCDestinations       CAClockPropertyID = 1836344164
	KCAClockProperty_MTCFreewheelTime      CAClockPropertyID = 1836344951
	KCAClockProperty_TempoMap              CAClockPropertyID = 1953329263
	KCAClockProperty_MeterTrack            CAClockPropertyID = 1835365490
	KCAClockProperty_Name                  CAClockPropertyID = 1851878757
	KCAClockProperty_SendMIDISPP           CAClockPropertyID = 1836281968
)

func (CAClockPropertyID) String

func (e CAClockPropertyID) String() string

type CAClockSyncMode

type CAClockSyncMode int64
const (
	KCAClockSyncMode_Internal           CAClockSyncMode = 1768846450
	KCAClockSyncMode_MIDIClockTransport CAClockSyncMode = 1835232363
	KCAClockSyncMode_MTCTransport       CAClockSyncMode = 1835889763
)

func (CAClockSyncMode) String

func (e CAClockSyncMode) String() string

type CAClockTime

type CAClockTime struct {
	Format   CAClockTimeFormat
	Reserved uint
	Time     unsafe.Pointer
}

@struct CAClockTime @abstract Represents a time value using one of several possible units. @var format Specifies the time's format and units. @var reserved Must be 0. @var time The time value. Use the member of the union appropriate to the format (see the description of CAClockTimeFormat).

type CAClockTimeFormat

type CAClockTimeFormat int64
const (
	KCAClockTimeFormat_HostTime        CAClockTimeFormat = 1752134516
	KCAClockTimeFormat_Samples         CAClockTimeFormat = 1935764848
	KCAClockTimeFormat_Beats           CAClockTimeFormat = 1650811252
	KCAClockTimeFormat_Seconds         CAClockTimeFormat = 1936024435
	KCAClockTimeFormat_SMPTESeconds    CAClockTimeFormat = 1936552051
	KCAClockTimeFormat_SMPTETime       CAClockTimeFormat = 1936552052
	KCAClockTimeFormat_AbsoluteSeconds CAClockTimeFormat = 1634952547
)

func (CAClockTimeFormat) String

func (e CAClockTimeFormat) String() string

type CAClockTimebase

type CAClockTimebase int64
const (
	KCAClockTimebase_HostTime        CAClockTimebase = 1752134516
	KCAClockTimebase_AudioDevice     CAClockTimebase = 1635083369
	KCAClockTimebase_AudioOutputUnit CAClockTimebase = 1635086197
)

func (CAClockTimebase) String

func (e CAClockTimebase) String() string

type CAFAudioDescription

type CAFAudioDescription struct {
	MSampleRate       float64
	MFormatID         uint
	MFormatFlags      CAFFormatFlags
	MBytesPerPacket   uint
	MFramesPerPacket  uint
	MChannelsPerFrame uint
	MBitsPerChannel   uint
}

type CAFAudioFormatListItem

type CAFAudioFormatListItem struct {
	MFormat           CAFAudioDescription
	MChannelLayoutTag uint
}

type CAFChunkHeader

type CAFChunkHeader struct {
	MChunkType uint
	MChunkSize int64
}

type CAFDataChunk

type CAFDataChunk struct {
	MEditCount uint
	MData      [1]uint8
}

type CAFFileHeader

type CAFFileHeader struct {
	MFileType    uint
	MFileVersion uint16
	MFileFlags   uint16
}

type CAFFormatFlags

type CAFFormatFlags int64
const (
	KCAFLinearPCMFormatFlagIsFloat        CAFFormatFlags = 1
	KCAFLinearPCMFormatFlagIsLittleEndian CAFFormatFlags = 2
)

func (CAFFormatFlags) String

func (e CAFFormatFlags) String() string

type CAFInfoStrings

type CAFInfoStrings struct {
	MNumEntries uint
}

type CAFInstrumentChunk

type CAFInstrumentChunk struct {
	MBaseNote         float32
	MMIDILowNote      uint8
	MMIDIHighNote     uint8
	MMIDILowVelocity  uint8
	MMIDIHighVelocity uint8
	MdBGain           float32
	MStartRegionID    uint
	MSustainRegionID  uint
	MReleaseRegionID  uint
	MInstrumentID     uint
}

type CAFMarker

type CAFMarker struct {
	MType          uint
	MFramePosition float64
	MMarkerID      uint
	MSMPTETime     CAF_SMPTE_Time
	MChannel       uint
}

type CAFMarkerChunk

type CAFMarkerChunk struct {
	MSMPTE_TimeType uint
	MNumberMarkers  uint
	MMarkers        [1]CAFMarker
}

type CAFOverviewChunk

type CAFOverviewChunk struct {
	MEditCount             uint
	MNumFramesPerOVWSample uint
	MData                  [1]CAFOverviewSample
}

type CAFOverviewSample

type CAFOverviewSample struct {
	MMinValue int16
	MMaxValue int16
}

type CAFPacketTableHeader

type CAFPacketTableHeader struct {
	MNumberPackets      int64
	MNumberValidFrames  int64
	MPrimingFrames      int
	MRemainderFrames    int
	MPacketDescriptions [1]uint8
}

type CAFPeakChunk

type CAFPeakChunk struct {
	MEditCount uint
	MPeaks     [1]CAFPositionPeak
}

type CAFPositionPeak

type CAFPositionPeak struct {
	MValue       float32
	MFrameNumber uint64
}

type CAFRegion

type CAFRegion struct {
	MRegionID      uint
	MFlags         CAFRegionFlags
	MNumberMarkers uint
	MMarkers       [1]CAFMarker
}

type CAFRegionChunk

type CAFRegionChunk struct {
	MSMPTE_TimeType uint
	MNumberRegions  uint
	MRegions        [1]CAFRegion
}

type CAFRegionFlags

type CAFRegionFlags int64
const (
	KCAFRegionFlag_LoopEnable   CAFRegionFlags = 1
	KCAFRegionFlag_PlayForward  CAFRegionFlags = 2
	KCAFRegionFlag_PlayBackward CAFRegionFlags = 4
)

func (CAFRegionFlags) String

func (e CAFRegionFlags) String() string

type CAFStringID

type CAFStringID struct {
	MStringID              uint
	MStringStartByteOffset int64
}

type CAFStrings

type CAFStrings struct {
	MNumEntries uint
	MStringsIDs [1]CAFStringID
}

type CAFUMIDChunk

type CAFUMIDChunk struct {
	MBytes [64]uint8
}

type CAF_SMPTE_Time

type CAF_SMPTE_Time struct {
	MHours                int8
	MMinutes              int8
	MSeconds              int8
	MFrames               int8
	MSubFrameSampleOffset uint
}

type CAF_UUID_ChunkHeader

type CAF_UUID_ChunkHeader struct {
	MHeader CAFChunkHeader
	MUUID   [16]uint8
}

type CAMeterTrackEntry

type CAMeterTrackEntry struct {
	Beats      float64
	MeterNumer uint16
	MeterDenom uint16
}

@struct CAMeterTrackEntry @abstract A time signature change event. The meter track is used for converting between beats as floating-point numbers (CAClockBeats) and their display representations (CABarBeatTime). @var beats The beat time at which the time signature (meter) changes. @var meterNumer The numerator of the new time signature. @var meterDenom The denominator of the new time signature (1, 2, 4, 8, etc.).

type CATempoMapEntry

type CATempoMapEntry struct {
	Beats    float64
	TempoBPM float64
}

@struct CATempoMapEntry @abstract A tempo change event. The clock's tempo map defines the correspondence between seconds and musical beats, and is used in conversions between the two. @var beats The beat time at which the tempo changes. @var tempoBPM The new tempo as of that time.

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type ComponentDescription

type ComponentDescription struct{}

ComponentDescription is an opaque type.

type ComponentInstanceRecord

type ComponentInstanceRecord struct{}

ComponentInstanceRecord is an opaque type.

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type ExtendedAudioFormatInfo

type ExtendedAudioFormatInfo struct {
	MASBD             coreaudiotypes.AudioStreamBasicDescription
	MMagicCookie      unsafe.Pointer
	MMagicCookieSize  uint
	MClassDescription coreaudiotypes.AudioClassDescription
}

@struct ExtendedAudioFormatInfo @abstract this struct is used as a specifier for the kAudioFormatProperty_FormatList property @var mASBD an AudioStreamBasicDescription @var mMagicCookie a pointer to the decompression info for the data described in mASBD @var mMagicCookieSize the size in bytes of mMagicCookie @var mClassDescription an AudioClassDescription specifying the codec to be used in answering the question.

type ExtendedControlEvent

type ExtendedControlEvent struct {
	GroupID   uint
	ControlID uint
	Value     float32
}

type ExtendedNoteOnEvent

type ExtendedNoteOnEvent struct {
	InstrumentID   uint
	GroupID        uint
	Duration       float32
	ExtendedParams MusicDeviceNoteParams
}

@struct ExtendedNoteOnEvent @discussion The parameters to specify an extended note on event

type ExtendedTempoEvent

type ExtendedTempoEvent struct {
	Bpm float64
}

@struct ExtendedTempoEvent @discussion specifies the value for a tempo in beats per minute

type FSRef

type FSRef struct{}

FSRef is an opaque type.

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type HostCallbackInfo

type HostCallbackInfo struct {
	HostUserData            unsafe.Pointer
	BeatAndTempoProc        unsafe.Pointer
	MusicalTimeLocationProc unsafe.Pointer
	TransportStateProc      unsafe.Pointer
	TransportStateProc2     unsafe.Pointer
}

@struct HostCallbackInfo @abstract Contains the various callbacks for an audio unit to call @discussion Any callback can be NULL.

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type MIDIChannelMessage

type MIDIChannelMessage struct {
	Status   uint8
	Data1    uint8
	Data2    uint8
	Reserved uint8
}

@struct MIDIChannelMessage @discussion The parameters to specify a MIDI channel message

type MIDIEventList

type MIDIEventList struct{}

@struct MIDIEventList @abstract Forward declaration of MIDIEventList found in <CoreMIDI/MIDIServices.h> MIDIEventList is an opaque type.

type MIDIMetaEvent

type MIDIMetaEvent struct {
	MetaEventType uint8
	Unused1       uint8
	Unused2       uint8
	Unused3       uint8
	DataLength    uint
	Data          [1]uint8
}

@struct MIDIMetaEvent @discussion The parameters to specify a MIDI meta event

type MIDINoteMessage

type MIDINoteMessage struct {
	Channel         uint8
	Note            uint8
	Velocity        uint8
	ReleaseVelocity uint8
	Duration        float32
}

@struct MIDINoteMessage @discussion The parameters to specify a MIDI note

type MIDIPacketList

type MIDIPacketList struct{}

@struct MIDIPacketList @abstract Forward declaration of MIDIPacketList found in <CoreMIDI/MIDIServices.h> MIDIPacketList is an opaque type.

type MIDIRawData

type MIDIRawData struct {
	Length uint
	Data   [1]uint8
}

@struct MIDIRawData @discussion Generally used to represent a MIDI SysEx message

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type MagicCookieInfo

type MagicCookieInfo = AudioCodecMagicCookieInfo

MagicCookieInfo is an alias for AudioCodecMagicCookieInfo (C typedef MagicCookieInfo).

type MixerDistanceParams

type MixerDistanceParams struct {
	MReferenceDistance float32
	MMaxDistance       float32
	MMaxAttenuation    float32
}

@struct MixerDistanceParams

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type MusicDeviceNoteParams

type MusicDeviceNoteParams struct {
	ArgCount  uint
	MPitch    float32
	MVelocity float32
	MControls [1]NoteParamsControlValue
}

@struct MusicDeviceNoteParams @abstract Used to hold the value of the inParams parameter for the MusicDeviceStartNote function. @discussion The generic version of this structure describes an arg count (which is the number of mControls values + 1 for mPitch and 1 for mVelocity). So, argCount should at least be two. See MusicDeviceStdNoteParams for the common use case, as many audio unit instruments will not respond to control values provided in the start note function @var argCount The number of controls + 2 (for mPitch and mVelocity) @var mPitch The pitch of the new note, typically specified using a MIDI note number (and a fractional pitch) within the range of 0 < 128. So 60 is middle C, 60.5 is middle C + 50 cents. @var mVelocity The velocity of the new note - this can be a fractional value - specified as MIDI (within the range of 0 < 128) @var mControls A variable length array with the number of elements: argCount - 2.

type MusicDeviceStdNoteParams

type MusicDeviceStdNoteParams struct {
	ArgCount  uint
	MPitch    float32
	MVelocity float32
}

@struct MusicDeviceStdNoteParams @abstract convenience struct for specifying a note and velocity @discussion This struct is the common usage for MusicDeviceStartNote, as most synths that implement this functionality will only allow for the specification of a note number and velocity when starting a new note. @var argCount Should be set to 2 @var mPitch The pitch of the new note, typically specified using a MIDI note number (and a fractional pitch) within the range of 0 < 128. So 60 is middle C, 60.5 is middle C + 50 cents. @var mVelocity The velocity of the new note - this can be a fractional value - specified as MIDI (within the range of 0 < 128)

type MusicEventUserData

type MusicEventUserData struct {
	Length uint
	Data   [1]uint8
}

@struct MusicEventUserData @discussion Provides a general struct for specifying a user defined event. @var length the size in bytes of the data @var data size bytes of user defined event data

type MusicSequenceFileFlags

type MusicSequenceFileFlags int64
const (
	KMusicSequenceFileFlags_Default   MusicSequenceFileFlags = 0
	KMusicSequenceFileFlags_EraseFile MusicSequenceFileFlags = 1
)

func (MusicSequenceFileFlags) String

func (e MusicSequenceFileFlags) String() string

type MusicSequenceFileTypeID

type MusicSequenceFileTypeID int64
const (
	KMusicSequenceFile_AnyType     MusicSequenceFileTypeID = 0
	KMusicSequenceFile_MIDIType    MusicSequenceFileTypeID = 1835623529
	KMusicSequenceFile_iMelodyType MusicSequenceFileTypeID = 1768777068
)

func (MusicSequenceFileTypeID) String

func (e MusicSequenceFileTypeID) String() string

type MusicSequenceLoadFlags

type MusicSequenceLoadFlags int64
const (
	KMusicSequenceLoadSMF_PreserveTracks   MusicSequenceLoadFlags = 0
	KMusicSequenceLoadSMF_ChannelsToTracks MusicSequenceLoadFlags = 1
)

func (MusicSequenceLoadFlags) String

func (e MusicSequenceLoadFlags) String() string

type MusicSequenceType

type MusicSequenceType int64
const (
	KMusicSequenceType_Beats   MusicSequenceType = 1650811252
	KMusicSequenceType_Seconds MusicSequenceType = 1936024435
	KMusicSequenceType_Samples MusicSequenceType = 1935764848
)

func (MusicSequenceType) String

func (e MusicSequenceType) String() string

type MusicTrackLoopInfo

type MusicTrackLoopInfo struct {
	LoopDuration  float64
	NumberOfLoops int
}

@struct MusicTrackLoopInfo @discussion Used to control the looping behaviour of a track

type NoteParamsControlValue

type NoteParamsControlValue struct {
	MID    uint
	MValue float32
}

@struct NoteParamsControlValue @abstract used to describe a control and value @discussion This struct is used to describe a parameterID (a control in MIDI terminology, though it is not limited to MIDI CC specifications) and the value of this parameter. @var mID The parameter ID @var mValue The value of that parameter

type OpaqueAUGraph

type OpaqueAUGraph struct{}

@typedef AUGraph @abstract A reference to an AUGraph object. OpaqueAUGraph is an opaque type.

type OpaqueAudioComponent

type OpaqueAudioComponent struct{}

@typedef AudioComponent @abstract The type used to represent a class of particular audio components @discussion An audio component is usually found through a search and is then uniquely identified by the triple of an audio component's type, subtype and manufacturer. It can have properties associated with it (such as a name, a version). It is then used as a factory (like a class in an object-oriented programming language) from which to create instances. The instances are used to do the actual work. For example: the AudioComponentDescription 'aufx'/'dely'/'appl' describes the delay audio unit effect from Apple, Inc. You can find this component by searching explicitly for the audio component that matches this pattern (this is an unique identifier - there is only one match to this triple ID). Then once found, instances of the Apple delay effect audio unit can be created from its audio component and used to apply that effect to an audio signal. A single component can create any number of component instances. OpaqueAudioComponent is an opaque type.

type OpaqueAudioConverter

type OpaqueAudioConverter struct{}

@typedef AudioConverterRef @abstract A reference to an AudioConverter object. OpaqueAudioConverter is an opaque type.

type OpaqueAudioFileStreamID

type OpaqueAudioFileStreamID struct{}

OpaqueAudioFileStreamID is an opaque type.

type OpaqueAudioQueue

type OpaqueAudioQueue struct{}

@typedef AudioQueueRef @abstract An opaque data type that represents an audio queue. OpaqueAudioQueue is an opaque type.

type OpaqueAudioQueueProcessingTap

type OpaqueAudioQueueProcessingTap struct{}

@typedef AudioQueueProcessingTapRef @abstract An object for intercepting and processing audio within an audio queue. OpaqueAudioQueueProcessingTap is an opaque type.

type OpaqueAudioQueueTimeline

type OpaqueAudioQueueTimeline struct{}

@typedef AudioQueueTimelineRef @abstract An opaque data type that represents an audio queue timeline. You can use this object to observe any overloads in the audio device associated with the audio queue. A timeline object receives notifications of discontinuities in the audio hardware's sample timeline--for instance, a period of silence when sound was expected. Causes of discontinuities include changes in the device state or processing overloads. See Technical Q & A: QA 1467 for a discussion of Core Audio overload warnings. These warnings indicate you are taking too long to process audio data and the system has cut you off. You query a timeline object by passing it as a parameter to AudioQueueGetCurrentTime, which means a discontinuity has occurred. OpaqueAudioQueueTimeline is an opaque type.

type OpaqueCAClock

type OpaqueCAClock struct{}

@typedef CAClockRef @abstract A reference to a Core Audio Clock object. OpaqueCAClock is an opaque type.

type OpaqueExtAudioFile

type OpaqueExtAudioFile struct{}

@typedef ExtAudioFileRef @abstract An extended audio file object. OpaqueExtAudioFile is an opaque type.

type OpaqueMusicEventIterator

type OpaqueMusicEventIterator struct{}

OpaqueMusicEventIterator is an opaque type.

type OpaqueMusicPlayer

type OpaqueMusicPlayer struct{}

OpaqueMusicPlayer is an opaque type.

type OpaqueMusicSequence

type OpaqueMusicSequence struct{}

OpaqueMusicSequence is an opaque type.

type OpaqueMusicTrack

type OpaqueMusicTrack struct{}

OpaqueMusicTrack is an opaque type.

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type ParameterEvent

type ParameterEvent struct {
	ParameterID uint
	Scope       uint
	Element     uint
	Value       float32
}

@struct ParameterEvent @discussion The parameters to specify a parameter event to an audio unit.

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type ScheduledAudioFileRegion

type ScheduledAudioFileRegion struct {
	MTimeStamp              coreaudiotypes.AudioTimeStamp
	MCompletionProc         unsafe.Pointer
	MCompletionProcUserData unsafe.Pointer
	MAudioFile              unsafe.Pointer
	MLoopCount              uint
	MStartFrame             int64
	MFramesToPlay           uint
}

@struct ScheduledAudioFileRegion @var mTimeStamp @var mCompletionProc may be NULL @var mCompletionProcUserData @var mAudioFile must be a valid and open AudioFileID defined in AudioToolbox/AudioFile.h: typedef struct OpaqueAudioFileID *AudioFileID; @var mLoopCount 0 = don't loop @var mStartFrame offset into file @var mFramesToPlay number of frames to play

type ScheduledAudioSlice

type ScheduledAudioSlice struct {
	MTimeStamp              coreaudiotypes.AudioTimeStamp
	MCompletionProc         unsafe.Pointer
	MCompletionProcUserData unsafe.Pointer
	MFlags                  AUScheduledAudioSliceFlags
	MReserved               uint
	MReserved2              unsafe.Pointer
	MNumberFrames           uint
	MBufferList             *coreaudiotypes.AudioBufferList
}

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL