Documentation
¶
Overview ¶
Package audiotoolbox provides Go bindings for the AudioToolbox framework.
Record or play audio, convert formats, parse audio streams, and configure your audio session.
The AudioToolbox framework provides interfaces for recording, playback, and stream parsing. In iOS, the framework provides additional interfaces for managing audio sessions.
Essentials ¶
- Porting your audio code to Apple silicon: Eliminate issues in your audio-specific code when running on Apple silicon Mac computers.
Audio Units ¶
- Generating spatial audio from a multichannel audio stream: Convert 8-channel audio to 2-channel spatial audio by using a spatial mixer audio unit.
- Audio Unit v3 Plug-Ins: Deliver custom audio effects, instruments, and other audio behaviors using an Audio Unit v3 app extension. (AUAudioUnit, AUAudioUnitBus, AUAudioUnitBusArray, AUAudioUnitPreset, AUAudioUnitV2Bridge)
- Audio Components: Find, load, and configure audio components, such as Audio Units and audio codecs. (AudioComponent, AudioComponentInstantiationOptions, AudioComponentDescription, AudioComponentInstance, AudioComponentFlags)
- Audio Unit Properties: Obtain information about the built-in mixers, equalizers, filters, effects, and other Audio Unit app extensions. (HostCallbackInfo, AUSpatialMixerAttenuationCurve, AUSpatialMixerRenderingFlags, AUSpatialMixerOutputType, AUSpatialMixerPointSourceInHeadMode)
- Audio Unit Voice I/O: Configure system voice processing and respond to speech events. (AUVoiceIOMutedSpeechActivityEventListener, AUVoiceIOSpeechActivityEvent, AUVoiceIOOtherAudioDuckingConfiguration)
Playback and Recording ¶
- Audio Queue Services: Connect to audio hardware and manage the recording or playback process. (AudioQueueRef, AudioQueueInputCallbackBlock, AudioQueueOutputCallbackBlock, AudioQueueTimelineRef, AudioQueueInputCallback)
- Audio Services: Play short sounds or trigger a vibration effect on iOS devices with the appropriate hardware. (SystemSoundID, AudioServicesSystemSoundCompletionProc, AudioServicesPropertyID)
- Music Player: Create and play a sequence of tracks, and manage aspects of playback in response to standard events. (MusicPlayer, MusicTimeStamp, MusicEventIterator, MusicEventType, ExtendedNoteOnEvent)
- Anchoring sound to a window or volume: Provide unique app experiences by attaching sounds to windows and volumes in 3D space.
Audio Files and Formats ¶
- Audio Format Services: Access information about audio formats and codecs. (AudioBalanceFade, AudioFormatInfo, AudioFormatListItem, AudioPanningInfo, ExtendedAudioFormatInfo)
- Audio File Services: Read or write a variety of audio data to or from disk or a memory buffer. (AudioFile_ReadProc, AudioFile_WriteProc, AudioFile_GetSizeProc, AudioFile_SetSizeProc, AudioBytePacketTranslationFlags)
- Extended Audio File Services: Read and write compressed files and linear PCM audio files using a simplified interface. (ExtAudioFilePacketTableInfoOverride, ExtAudioFileRef, ExtAudioFilePropertyID)
- Audio File Stream Services: Parse streamed audio files as the data arrives on the user’s computer. (AudioFileStream_PropertyListenerProc, AudioFileStream_PacketsProc, AudioFileStreamPropertyID, AudioFileStreamID)
- Audio File Components: Get information about audio file formats, and about files containing audio data. (AudioFileComponent, AudioFileComponentPropertyID, AudioFileComponentCreateURLProc, AudioFileComponentOpenWithCallbacksProc, AudioFileComponentOpenURLProc)
- Core Audio File Format: Parse the structure of Core Audio files. (CAFAudioDescription, CAFAudioFormatListItem, CAFChunkHeader, CAFDataChunk, CAFFileHeader)
Utilities ¶
- Analyzing audio performance with Instruments: Ensure a smooth and immersive audio experience in your apps using Audio System Trace.
- Audio Converter Services: Convert between linear PCM audio formats, and between linear PCM and compressed formats. (AudioConverterComplexInputDataProc, AudioConverterInputDataProc, AudioConverterPrimeInfo, AudioConverterRef, AudioConverterPropertyID)
- Audio Session Support: Describe the properties that you associate with audio sessions and audio routes. (AudioSessionInterruptionType)
- Audio Toolbox Debugging: Obtain the internal state of Core Audio objects during the development and debugging of your code.
- Workgroup Management: Coordinate the activity of custom real-time audio threads with those of the system and other processes.
- Audio Codec: Translate audio data from one format to another. (AudioCodecMagicCookieInfo, AudioCodecPrimeInfo, AudioCodec, AudioCodecAppendInputBufferListProc, AudioCodecAppendInputDataProc)
- Clock Utilities: Manage time-related information associated with audio playback. (CAClockRef, CAClockListenerProc, CAClockMessage, CAClockTime, CAClockTimeFormat)
Functions ¶
- AudioConverterFillComplexBufferRealtimeSafe
- AudioConverterFillComplexBufferWithPacketDependencies
- AudioFileWritePacketsWithDependencies
Type Aliases ¶
Enumerations ¶
Key Types ¶
- AUAudioUnit - A class that defines a host’s interface to an audio unit.
- AUParameter - An object that represents a single audio unit parameter.
- AUAudioUnitBus - A class that defines an input or output connection point on an audio unit.
- AUParameterNode - An object that represents a node in an audio unit’s parameter tree.
- AUAudioUnitBusArray - A class that defines a container for an audio unit’s input or output busses.
- AUParameterTree - An object that represents a top-level group node that contains all of an audio unit’s parameters.
- AUAudioUnitPreset - A class that describes an interface for custom parameter settings provided by the audio unit developer.
- AUAudioUnitV2Bridge - A class that wraps a version 2 audio unit as version 3 audio unit.
- AUParameterGroup - A parameter group object represents a group of related audio unit parameters.
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AUEventListenerAddEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, ...) int32
- func AUEventListenerCreate(inProc AUEventListenerProc, inUserData unsafe.Pointer, ...) int32
- func AUEventListenerCreateWithDispatchQueue(outListener *AUEventListenerRef, inNotificationInterval float32, ...) int32
- func AUEventListenerNotify(inSendingListener AUEventListenerRef, inSendingObject unsafe.Pointer, ...) int32
- func AUEventListenerRemoveEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, ...) int32
- func AUGraphAddNode(inGraph AUGraph, inDescription *AudioComponentDescription, outNode *AUNode) int32deprecated
- func AUGraphAddRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) int32deprecated
- func AUGraphClearConnections(inGraph AUGraph) int32deprecated
- func AUGraphClose(inGraph AUGraph) int32deprecated
- func AUGraphConnectNodeInput(inGraph AUGraph, inSourceNode AUNode, inSourceOutputNumber uint32, ...) int32deprecated
- func AUGraphCountNodeConnections(inGraph AUGraph, inNode AUNode, outNumConnections *uint32) int32deprecated
- func AUGraphCountNodeInteractions(inGraph AUGraph, inNode AUNode, outNumInteractions *uint32) int32deprecated
- func AUGraphDisconnectNodeInput(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32) int32deprecated
- func AUGraphGetCPULoad(inGraph AUGraph, outAverageCPULoad *float32) int32deprecated
- func AUGraphGetConnectionInfo(inGraph AUGraph, inConnectionIndex uint32, outSourceNode *AUNode, ...) int32deprecated
- func AUGraphGetIndNode(inGraph AUGraph, inIndex uint32, outNode *AUNode) int32deprecated
- func AUGraphGetInteractionInfo(inGraph AUGraph, inInteractionIndex uint32, outInteraction *AUNodeInteraction) int32deprecated
- func AUGraphGetMaxCPULoad(inGraph AUGraph, outMaxLoad *float32) int32deprecated
- func AUGraphGetNodeConnections(inGraph AUGraph, inNode AUNode, outConnections *AudioUnitNodeConnection, ...) int32deprecated
- func AUGraphGetNodeCount(inGraph AUGraph, outNumberOfNodes *uint32) int32deprecated
- func AUGraphGetNodeInfo(inGraph AUGraph, inNode AUNode, ...) int32deprecated
- func AUGraphGetNodeInfoSubGraph(inGraph AUGraph, inNode AUNode, outSubGraph *AUGraph) int32deprecated
- func AUGraphGetNodeInteractions(inGraph AUGraph, inNode AUNode, ioNumInteractions *uint32, ...) int32deprecated
- func AUGraphGetNumberOfConnections(inGraph AUGraph, outNumConnections *uint32) int32deprecated
- func AUGraphGetNumberOfInteractions(inGraph AUGraph, outNumInteractions *uint32) int32deprecated
- func AUGraphInitialize(inGraph AUGraph) int32deprecated
- func AUGraphIsInitialized(inGraph AUGraph, outIsInitialized *bool) int32deprecated
- func AUGraphIsNodeSubGraph(inGraph AUGraph, inNode AUNode, outFlag *bool) int32deprecated
- func AUGraphIsOpen(inGraph AUGraph, outIsOpen *bool) int32deprecated
- func AUGraphIsRunning(inGraph AUGraph, outIsRunning *bool) int32deprecated
- func AUGraphNewNode(inGraph AUGraph, inDescription *coreservices.ComponentDescription, ...) int32deprecated
- func AUGraphNewNodeSubGraph(inGraph AUGraph, outNode *AUNode) int32deprecated
- func AUGraphNodeInfo(inGraph AUGraph, inNode AUNode, outDescription *AudioComponentDescription, ...) int32deprecated
- func AUGraphOpen(inGraph AUGraph) int32deprecated
- func AUGraphRemoveNode(inGraph AUGraph, inNode AUNode) int32deprecated
- func AUGraphRemoveRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) int32deprecated
- func AUGraphSetNodeInputCallback(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32, ...) int32deprecated
- func AUGraphStart(inGraph AUGraph) int32deprecated
- func AUGraphStop(inGraph AUGraph) int32deprecated
- func AUGraphUninitialize(inGraph AUGraph) int32deprecated
- func AUGraphUpdate(inGraph AUGraph, outIsUpdated *bool) int32deprecated
- func AUListenerAddParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, ...) int32
- func AUListenerCreate(inProc AUParameterListenerProc, inUserData unsafe.Pointer, ...) int32
- func AUListenerCreateWithDispatchQueue(outListener *AUParameterListenerRef, inNotificationInterval float32, ...) int32
- func AUListenerDispose(inListener AUParameterListenerRef) int32
- func AUListenerRemoveParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, ...) int32
- func AUParameterFormatValue(inParameterValue float64, inParameter *AudioUnitParameter, inTextBuffer *byte, ...) *byte
- func AUParameterListenerNotify(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, ...) int32
- func AUParameterSet(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, ...) int32
- func AUParameterValueToLinear(inParameterValue AudioUnitParameterValue, inParameter *AudioUnitParameter) float32
- func AudioCodecAppendInputBufferList(inCodec AudioCodec, inBufferList *coreaudiotypes.AudioBufferList, ...) int32
- func AudioCodecAppendInputData(inCodec AudioCodec, inInputData unsafe.Pointer, ioInputDataByteSize *uint32, ...) int32
- func AudioCodecGetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, ...) int32
- func AudioCodecGetPropertyInfo(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, outSize *uint32, ...) int32
- func AudioCodecInitialize(inCodec AudioCodec, inInputFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioCodecProduceOutputBufferList(inCodec AudioCodec, ioBufferList *coreaudiotypes.AudioBufferList, ...) int32
- func AudioCodecProduceOutputPackets(inCodec AudioCodec, outOutputData unsafe.Pointer, ioOutputDataByteSize *uint32, ...) int32
- func AudioCodecReset(inCodec AudioCodec) int32
- func AudioCodecSetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, ...) int32
- func AudioCodecUninitialize(inCodec AudioCodec) int32
- func AudioComponentCopyConfigurationInfo(inComponent AudioComponent, ...) int32
- func AudioComponentCopyIcon(comp AudioComponent) *objc.ID
- func AudioComponentCopyName(inComponent AudioComponent, outName *corefoundation.CFStringRef) int32
- func AudioComponentCount(inDesc *AudioComponentDescription) uint32
- func AudioComponentGetDescription(inComponent AudioComponent, outDesc *AudioComponentDescription) int32
- func AudioComponentGetIcon(comp AudioComponent) *objc.IDdeprecated
- func AudioComponentGetVersion(inComponent AudioComponent, outVersion *uint32) int32
- func AudioComponentInstanceCanDo(inInstance AudioComponentInstance, inSelectorID int16) bool
- func AudioComponentInstanceDispose(inInstance AudioComponentInstance) int32
- func AudioComponentInstanceNew(inComponent AudioComponent, outInstance *AudioComponentInstance) int32
- func AudioComponentInstantiate(inComponent AudioComponent, inOptions AudioComponentInstantiationOptions)
- func AudioComponentValidate(inComponent AudioComponent, ...) int32
- func AudioComponentValidateWithResults(inComponent AudioComponent, ...) int32
- func AudioConverterConvertBuffer(inAudioConverter AudioConverterRef, inInputDataSize uint32, ...) int32
- func AudioConverterConvertComplexBuffer(inAudioConverter AudioConverterRef, inNumberPCMFrames uint32, ...) int32
- func AudioConverterDispose(inAudioConverter AudioConverterRef) int32
- func AudioConverterFillComplexBuffer(inAudioConverter AudioConverterRef, ...) int32
- func AudioConverterFillComplexBufferRealtimeSafe(inAudioConverter AudioConverterRef, ...) int32
- func AudioConverterFillComplexBufferWithPacketDependencies(inAudioConverter AudioConverterRef, ...) int32
- func AudioConverterGetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ...) int32
- func AudioConverterGetPropertyInfo(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ...) int32
- func AudioConverterNew(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioConverterNewSpecific(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioConverterNewWithOptions(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioConverterPrepare(inFlags uint32, ioReserved unsafe.Pointer)
- func AudioConverterReset(inAudioConverter AudioConverterRef) int32
- func AudioConverterSetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ...) int32
- func AudioFileClose(inAudioFile AudioFileID) int32
- func AudioFileComponentCloseFile(inComponent AudioFileComponent) int32
- func AudioFileComponentCountUserData(inComponent AudioFileComponent, inUserDataID uint32, outNumberItems *uint32) int32
- func AudioFileComponentCreate(inComponent AudioFileComponent, inParentRef *coreservices.FSRef, ...) int32deprecated
- func AudioFileComponentCreateURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, ...) int32
- func AudioFileComponentDataIsThisFormat(inComponent AudioFileComponent, inClientData unsafe.Pointer, ...) int32deprecated
- func AudioFileComponentExtensionIsThisFormat(inComponent AudioFileComponent, inExtension corefoundation.CFStringRef, ...) int32
- func AudioFileComponentFileDataIsThisFormat(inComponent AudioFileComponent, inDataByteSize uint32, inData unsafe.Pointer, ...) int32
- func AudioFileComponentFileIsThisFormat(inComponent AudioFileComponent, inFileRefNum int16, outResult *uint32) int32deprecated
- func AudioFileComponentGetGlobalInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ...) int32
- func AudioFileComponentGetGlobalInfoSize(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ...) int32
- func AudioFileComponentGetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ...) int32
- func AudioFileComponentGetPropertyInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ...) int32
- func AudioFileComponentGetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileComponentGetUserDataAtOffset(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileComponentGetUserDataSize(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileComponentGetUserDataSize64(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileComponentInitialize(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, ...) int32deprecated
- func AudioFileComponentInitializeWithCallbacks(inComponent AudioFileComponent, inClientData unsafe.Pointer, ...) int32
- func AudioFileComponentOpenFile(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, ...) int32deprecated
- func AudioFileComponentOpenURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, ...) int32
- func AudioFileComponentOpenWithCallbacks(inComponent AudioFileComponent, inClientData unsafe.Pointer, ...) int32
- func AudioFileComponentOptimize(inComponent AudioFileComponent) int32
- func AudioFileComponentReadBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ...) int32
- func AudioFileComponentReadPacketData(inComponent AudioFileComponent, inUseCache bool, ioNumBytes *uint32, ...) int32
- func AudioFileComponentReadPackets(inComponent AudioFileComponent, inUseCache bool, outNumBytes *uint32, ...) int32
- func AudioFileComponentRemoveUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32) int32
- func AudioFileComponentSetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ...) int32
- func AudioFileComponentSetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileComponentWriteBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ...) int32
- func AudioFileComponentWritePackets(inComponent AudioFileComponent, inUseCache bool, inNumBytes uint32, ...) int32
- func AudioFileCountUserData(inAudioFile AudioFileID, inUserDataID uint32, outNumberItems *uint32) int32
- func AudioFileCreateWithURL(inFileRef corefoundation.CFURLRef, inFileType AudioFileTypeID, ...) int32
- func AudioFileGetGlobalInfo(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, ...) int32
- func AudioFileGetGlobalInfoSize(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, ...) int32
- func AudioFileGetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, ioDataSize *uint32, ...) int32
- func AudioFileGetPropertyInfo(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, outDataSize *uint32, ...) int32
- func AudioFileGetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileGetUserDataAtOffset(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, inOffset int64, ...) int32
- func AudioFileGetUserDataSize(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileGetUserDataSize64(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileInitializeWithCallbacks(inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, ...) int32
- func AudioFileOpenURL(inFileRef corefoundation.CFURLRef, inPermissions AudioFilePermissions, ...) int32
- func AudioFileOpenWithCallbacks(inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, ...) int32
- func AudioFileOptimize(inAudioFile AudioFileID) int32
- func AudioFileReadBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ...) int32
- func AudioFileReadPacketData(inAudioFile AudioFileID, inUseCache bool, ioNumBytes *uint32, ...) int32
- func AudioFileRemoveUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32) int32
- func AudioFileSetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, inDataSize uint32, ...) int32
- func AudioFileSetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ...) int32
- func AudioFileStreamClose(inAudioFileStream AudioFileStreamID) int32
- func AudioFileStreamGetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, ...) int32
- func AudioFileStreamGetPropertyInfo(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, ...) int32
- func AudioFileStreamOpen(inClientData unsafe.Pointer, ...) int32
- func AudioFileStreamParseBytes(inAudioFileStream AudioFileStreamID, inDataByteSize uint32, ...) int32
- func AudioFileStreamSeek(inAudioFileStream AudioFileStreamID, inPacketOffset int64, ...) int32
- func AudioFileStreamSetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, ...) int32
- func AudioFileWriteBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ...) int32
- func AudioFileWritePackets(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, ...) int32
- func AudioFileWritePacketsWithDependencies(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, ...) int32
- func AudioFormatGetProperty(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, ...) int32
- func AudioFormatGetPropertyInfo(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, ...) int32
- func AudioOutputUnitStart(ci AudioUnit) int32
- func AudioOutputUnitStop(ci AudioUnit) int32
- func AudioQueueAddPropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, ...) int32
- func AudioQueueAllocateBuffer(inAQ AudioQueueRef, inBufferByteSize uint32, outBuffer *AudioQueueBufferRef) int32
- func AudioQueueAllocateBufferWithPacketDescriptions(inAQ AudioQueueRef, inBufferByteSize uint32, inNumberPacketDescriptions uint32, ...) int32
- func AudioQueueCreateTimeline(inAQ AudioQueueRef, outTimeline *AudioQueueTimelineRef) int32
- func AudioQueueDeviceGetCurrentTime(inAQ AudioQueueRef, outTimeStamp *coreaudiotypes.AudioTimeStamp) int32
- func AudioQueueDeviceGetNearestStartTime(inAQ AudioQueueRef, ioRequestedStartTime *coreaudiotypes.AudioTimeStamp, ...) int32
- func AudioQueueDeviceTranslateTime(inAQ AudioQueueRef, inTime *coreaudiotypes.AudioTimeStamp, ...) int32
- func AudioQueueDispose(inAQ AudioQueueRef, inImmediate bool) int32
- func AudioQueueDisposeTimeline(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef) int32
- func AudioQueueEnqueueBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, ...) int32
- func AudioQueueEnqueueBufferWithParameters(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, ...) int32
- func AudioQueueFlush(inAQ AudioQueueRef) int32
- func AudioQueueFreeBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef) int32
- func AudioQueueGetCurrentTime(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef, ...) int32
- func AudioQueueGetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, ...) int32
- func AudioQueueGetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, outData unsafe.Pointer, ...) int32
- func AudioQueueGetPropertySize(inAQ AudioQueueRef, inID AudioQueuePropertyID, outDataSize *uint32) int32
- func AudioQueueNewInput(inFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioQueueNewInputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioQueueNewOutput(inFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioQueueNewOutputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioQueueOfflineRender(inAQ AudioQueueRef, inTimestamp *coreaudiotypes.AudioTimeStamp, ...) int32
- func AudioQueuePause(inAQ AudioQueueRef) int32
- func AudioQueuePrime(inAQ AudioQueueRef, inNumberOfFramesToPrepare uint32, ...) int32
- func AudioQueueProcessingTapDispose(inAQTap AudioQueueProcessingTapRef) int32
- func AudioQueueProcessingTapGetQueueTime(inAQTap AudioQueueProcessingTapRef, outQueueSampleTime *float64, ...) int32
- func AudioQueueProcessingTapGetSourceAudio(inAQTap AudioQueueProcessingTapRef, inNumberFrames uint32, ...) int32
- func AudioQueueProcessingTapNew(inAQ AudioQueueRef, inCallback AudioQueueProcessingTapCallback, ...) int32
- func AudioQueueRemovePropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, ...) int32
- func AudioQueueReset(inAQ AudioQueueRef) int32
- func AudioQueueSetOfflineRenderFormat(inAQ AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, ...) int32
- func AudioQueueSetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, ...) int32
- func AudioQueueSetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, inData unsafe.Pointer, ...) int32
- func AudioQueueStart(inAQ AudioQueueRef, inStartTime *coreaudiotypes.AudioTimeStamp) int32
- func AudioQueueStop(inAQ AudioQueueRef, inImmediate bool) int32
- func AudioServicesAddSystemSoundCompletion(inSystemSoundID SystemSoundID, inRunLoop corefoundation.CFRunLoopRef, ...) int32
- func AudioServicesCreateSystemSoundID(inFileURL corefoundation.CFURLRef, outSystemSoundID *SystemSoundID) int32
- func AudioServicesDisposeSystemSoundID(inSystemSoundID SystemSoundID) int32
- func AudioServicesGetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, ...) int32
- func AudioServicesGetPropertyInfo(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, ...) int32
- func AudioServicesPlayAlertSound(inSystemSoundID SystemSoundID)
- func AudioServicesPlayAlertSoundWithCompletion(inSystemSoundID SystemSoundID)
- func AudioServicesPlaySystemSound(inSystemSoundID SystemSoundID)
- func AudioServicesPlaySystemSoundWithCompletion(inSystemSoundID SystemSoundID)
- func AudioServicesRemoveSystemSoundCompletion(inSystemSoundID SystemSoundID)
- func AudioServicesSetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, ...) int32
- func AudioUnitAddPropertyListener(inUnit AudioUnit, inID AudioUnitPropertyID, ...) int32
- func AudioUnitAddRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) int32
- func AudioUnitExtensionCopyComponentList(extensionIdentifier corefoundation.CFStringRef) corefoundation.CFArrayRef
- func AudioUnitExtensionSetComponentList(extensionIdentifier corefoundation.CFStringRef, ...) int32
- func AudioUnitGetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, ...) int32
- func AudioUnitGetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, ...) int32
- func AudioUnitGetPropertyInfo(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, ...) int32
- func AudioUnitInitialize(inUnit AudioUnit) int32
- func AudioUnitProcess(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, ...) int32
- func AudioUnitProcessMultiple(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, ...) int32
- func AudioUnitRemovePropertyListenerWithUserData(inUnit AudioUnit, inID AudioUnitPropertyID, ...) int32
- func AudioUnitRemoveRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) int32
- func AudioUnitRender(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, ...) int32
- func AudioUnitReset(inUnit AudioUnit, inScope AudioUnitScope, inElement AudioUnitElement) int32
- func AudioUnitScheduleParameters(inUnit AudioUnit, inParameterEvent *AudioUnitParameterEvent, ...) int32
- func AudioUnitSetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, ...) int32
- func AudioUnitSetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, ...) int32
- func AudioUnitUninitialize(inUnit AudioUnit) int32
- func AudioWorkIntervalCreate(name string, clock os.Os_clockid_t, attr os.Os_workgroup_attr_t) os.Os_workgroup_interval_t
- func CAClockAddListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, ...) int32
- func CAClockArm(inCAClock CAClockRef) int32
- func CAClockBarBeatTimeToBeats(inCAClock CAClockRef, inBarBeatTime *CABarBeatTime, outBeats *CAClockBeats) int32
- func CAClockBeatsToBarBeatTime(inCAClock CAClockRef, inBeats CAClockBeats, inSubbeatDivisor uint16, ...) int32
- func CAClockDisarm(inCAClock CAClockRef) int32
- func CAClockDispose(inCAClock CAClockRef) int32
- func CAClockGetCurrentTempo(inCAClock CAClockRef, outTempo *CAClockTempo, outTimestamp *CAClockTime) int32
- func CAClockGetCurrentTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32
- func CAClockGetPlayRate(inCAClock CAClockRef, outPlayRate *float64) int32
- func CAClockGetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, ...) int32
- func CAClockGetPropertyInfo(inCAClock CAClockRef, inPropertyID CAClockPropertyID, outSize *uint32, ...) int32
- func CAClockGetStartTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32
- func CAClockNew(inReservedFlags uint32, outCAClock *CAClockRef) int32
- func CAClockParseMIDI(inCAClock CAClockRef, inMIDIPacketList *coremidi.MIDIPacketList) int32
- func CAClockRemoveListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, ...) int32
- func CAClockSMPTETimeToSeconds(inCAClock CAClockRef, inSMPTETime *coreaudiotypes.SMPTETime, ...) int32
- func CAClockSecondsToSMPTETime(inCAClock CAClockRef, inSeconds CAClockSeconds, inSubframeDivisor uint16, ...) int32
- func CAClockSetCurrentTempo(inCAClock CAClockRef, inTempo CAClockTempo, inTimestamp *CAClockTime) int32
- func CAClockSetCurrentTime(inCAClock CAClockRef, inTime *CAClockTime) int32
- func CAClockSetPlayRate(inCAClock CAClockRef, inPlayRate float64) int32
- func CAClockSetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, ...) int32
- func CAClockStart(inCAClock CAClockRef) int32
- func CAClockStop(inCAClock CAClockRef) int32
- func CAClockTranslateTime(inCAClock CAClockRef, inTime *CAClockTime, ...) int32
- func CAShow(inObject unsafe.Pointer)
- func CAShowFile(inObject unsafe.Pointer, inFile unsafe.Pointer)
- func CopyInstrumentInfoFromSoundBank(inURL corefoundation.CFURLRef, outInstrumentInfo *corefoundation.CFArrayRef) int32
- func CopyNameFromSoundBank(inURL corefoundation.CFURLRef, outName *corefoundation.CFStringRef) int32
- func DisposeAUGraph(inGraph AUGraph) int32deprecated
- func DisposeMusicEventIterator(inIterator MusicEventIterator) int32
- func DisposeMusicPlayer(inPlayer MusicPlayer) int32
- func DisposeMusicSequence(inSequence MusicSequence) int32
- func ExtAudioFileCreateNew(inParentDir *coreservices.FSRef, inFileName corefoundation.CFStringRef, ...) int32deprecated
- func ExtAudioFileCreateWithURL(inURL corefoundation.CFURLRef, inFileType AudioFileTypeID, ...) int32
- func ExtAudioFileDispose(inExtAudioFile ExtAudioFileRef) int32
- func ExtAudioFileGetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, ...) int32
- func ExtAudioFileGetPropertyInfo(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, ...) int32
- func ExtAudioFileOpen(inFSRef *coreservices.FSRef, outExtAudioFile *ExtAudioFileRef) int32deprecated
- func ExtAudioFileOpenURL(inURL corefoundation.CFURLRef, outExtAudioFile *ExtAudioFileRef) int32
- func ExtAudioFileRead(inExtAudioFile ExtAudioFileRef, ioNumberFrames *uint32, ...) int32
- func ExtAudioFileSeek(inExtAudioFile ExtAudioFileRef, inFrameOffset int64) int32
- func ExtAudioFileSetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, ...) int32
- func ExtAudioFileTell(inExtAudioFile ExtAudioFileRef, outFrameOffset *int64) int32
- func ExtAudioFileWrapAudioFileID(inFileID AudioFileID, inForWriting bool, outExtAudioFile *ExtAudioFileRef) int32
- func ExtAudioFileWrite(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ...) int32
- func ExtAudioFileWriteAsync(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ...) int32
- func GetNameFromSoundBank(inSoundBankRef *coreservices.FSRef, outName *corefoundation.CFStringRef) int32deprecated
- func MusicDeviceMIDIEvent(inUnit MusicDeviceComponent, inStatus uint32, inData1 uint32, inData2 uint32, ...) int32
- func MusicDeviceMIDIEventList(inUnit MusicDeviceComponent, inOffsetSampleFrame uint32, ...) int32
- func MusicDevicePrepareInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) int32deprecated
- func MusicDeviceReleaseInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) int32deprecated
- func MusicDeviceStartNote(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID, ...) int32
- func MusicDeviceStopNote(inUnit MusicDeviceComponent, inGroupID MusicDeviceGroupID, ...) int32
- func MusicDeviceSysEx(inUnit MusicDeviceComponent, inData []byte, inLength uint32) int32
- func MusicEventIteratorDeleteEvent(inIterator MusicEventIterator) int32
- func MusicEventIteratorGetEventInfo(inIterator MusicEventIterator, outTimeStamp *MusicTimeStamp, ...) int32
- func MusicEventIteratorHasCurrentEvent(inIterator MusicEventIterator, outHasCurEvent *bool) int32
- func MusicEventIteratorHasNextEvent(inIterator MusicEventIterator, outHasNextEvent *bool) int32
- func MusicEventIteratorHasPreviousEvent(inIterator MusicEventIterator, outHasPrevEvent *bool) int32
- func MusicEventIteratorNextEvent(inIterator MusicEventIterator) int32
- func MusicEventIteratorPreviousEvent(inIterator MusicEventIterator) int32
- func MusicEventIteratorSeek(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) int32
- func MusicEventIteratorSetEventInfo(inIterator MusicEventIterator, inEventType MusicEventType, ...) int32
- func MusicEventIteratorSetEventTime(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) int32
- func MusicPlayerGetBeatsForHostTime(inPlayer MusicPlayer, inHostTime uint64, outBeats *MusicTimeStamp) int32
- func MusicPlayerGetHostTimeForBeats(inPlayer MusicPlayer, inBeats MusicTimeStamp, outHostTime *uint64) int32
- func MusicPlayerGetPlayRateScalar(inPlayer MusicPlayer, outScaleRate *float64) int32
- func MusicPlayerGetSequence(inPlayer MusicPlayer, outSequence *MusicSequence) int32
- func MusicPlayerGetTime(inPlayer MusicPlayer, outTime *MusicTimeStamp) int32
- func MusicPlayerIsPlaying(inPlayer MusicPlayer, outIsPlaying *bool) int32
- func MusicPlayerPreroll(inPlayer MusicPlayer) int32
- func MusicPlayerSetPlayRateScalar(inPlayer MusicPlayer, inScaleRate float64) int32
- func MusicPlayerSetSequence(inPlayer MusicPlayer, inSequence MusicSequence) int32
- func MusicPlayerSetTime(inPlayer MusicPlayer, inTime MusicTimeStamp) int32
- func MusicPlayerStart(inPlayer MusicPlayer) int32
- func MusicPlayerStop(inPlayer MusicPlayer) int32
- func MusicSequenceBarBeatTimeToBeats(inSequence MusicSequence, inBarBeatTime *CABarBeatTime, ...) int32
- func MusicSequenceBeatsToBarBeatTime(inSequence MusicSequence, inBeats MusicTimeStamp, inSubbeatDivisor uint32, ...) int32
- func MusicSequenceDisposeTrack(inSequence MusicSequence, inTrack MusicTrack) int32
- func MusicSequenceFileCreate(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, ...) int32
- func MusicSequenceFileCreateData(inSequence MusicSequence, inFileType MusicSequenceFileTypeID, ...) int32
- func MusicSequenceFileLoad(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, ...) int32
- func MusicSequenceFileLoadData(inSequence MusicSequence, inData corefoundation.CFDataRef, ...) int32
- func MusicSequenceGetAUGraph(inSequence MusicSequence, outGraph *AUGraph) int32
- func MusicSequenceGetBeatsForSeconds(inSequence MusicSequence, inSeconds float64, outBeats *MusicTimeStamp) int32
- func MusicSequenceGetIndTrack(inSequence MusicSequence, inTrackIndex uint32, outTrack *MusicTrack) int32
- func MusicSequenceGetInfoDictionary(inSequence MusicSequence) corefoundation.CFDictionaryRef
- func MusicSequenceGetSecondsForBeats(inSequence MusicSequence, inBeats MusicTimeStamp, outSeconds *float64) int32
- func MusicSequenceGetSequenceType(inSequence MusicSequence, outType *MusicSequenceType) int32
- func MusicSequenceGetTempoTrack(inSequence MusicSequence, outTrack *MusicTrack) int32
- func MusicSequenceGetTrackCount(inSequence MusicSequence, outNumberOfTracks *uint32) int32
- func MusicSequenceGetTrackIndex(inSequence MusicSequence, inTrack MusicTrack, outTrackIndex *uint32) int32
- func MusicSequenceLoadSMFDataWithFlags(inSequence MusicSequence, inData corefoundation.CFDataRef, ...) int32deprecated
- func MusicSequenceLoadSMFWithFlags(inSequence MusicSequence, inFileRef *coreservices.FSRef, ...) int32deprecated
- func MusicSequenceNewTrack(inSequence MusicSequence, outTrack *MusicTrack) int32
- func MusicSequenceReverse(inSequence MusicSequence) int32
- func MusicSequenceSaveMIDIFile(inSequence MusicSequence, inParentDirectory *coreservices.FSRef, ...) int32deprecated
- func MusicSequenceSaveSMFData(inSequence MusicSequence, outData *corefoundation.CFDataRef, ...) int32deprecated
- func MusicSequenceSetAUGraph(inSequence MusicSequence, inGraph AUGraph) int32
- func MusicSequenceSetMIDIEndpoint(inSequence MusicSequence, inEndpoint uint32) int32
- func MusicSequenceSetSequenceType(inSequence MusicSequence, inType MusicSequenceType) int32
- func MusicSequenceSetUserCallback(inSequence MusicSequence, inCallback MusicSequenceUserCallback, ...) int32
- func MusicTrackClear(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) int32
- func MusicTrackCopyInsert(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, ...) int32
- func MusicTrackCut(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) int32
- func MusicTrackGetDestMIDIEndpoint(inTrack MusicTrack, outEndpoint *coremidi.MIDIEndpointRef) int32
- func MusicTrackGetDestNode(inTrack MusicTrack, outNode *AUNode) int32
- func MusicTrackGetProperty(inTrack MusicTrack, inPropertyID uint32, outData unsafe.Pointer, ...) int32
- func MusicTrackGetSequence(inTrack MusicTrack, outSequence *MusicSequence) int32
- func MusicTrackMerge(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, ...) int32
- func MusicTrackMoveEvents(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp, ...) int32
- func MusicTrackNewAUPresetEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inPresetEvent *AUPresetEvent) int32
- func MusicTrackNewExtendedControlEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedControlEvent) int32deprecated
- func MusicTrackNewExtendedNoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedNoteOnEvent) int32
- func MusicTrackNewExtendedTempoEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inBPM float64) int32
- func MusicTrackNewMIDIChannelEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDIChannelMessage) int32
- func MusicTrackNewMIDINoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDINoteMessage) int32
- func MusicTrackNewMIDIRawDataEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inRawData *MIDIRawData) int32
- func MusicTrackNewMetaEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMetaEvent *MIDIMetaEvent) int32
- func MusicTrackNewParameterEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ParameterEvent) int32
- func MusicTrackNewUserEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inUserData *MusicEventUserData) int32
- func MusicTrackSetDestMIDIEndpoint(inTrack MusicTrack, inEndpoint uint32) int32
- func MusicTrackSetDestNode(inTrack MusicTrack, inNode AUNode) int32
- func MusicTrackSetProperty(inTrack MusicTrack, inPropertyID uint32, inData unsafe.Pointer, ...) int32
- func NewAUEventListenerBlock(handler AUEventListenerBlock) (objc.ID, func())
- func NewAUImplementorValueObserverBlock(handler AUImplementorValueObserver) (objc.ID, func())
- func NewAUImplementorValueProviderBlock(handler AUImplementorValueProvider) (objc.ID, func())
- func NewAUInputHandlerBlock(handler AUInputHandler) (objc.ID, func())
- func NewAUMIDICIProfileChangedBlock(handler AUMIDICIProfileChangedBlock) (objc.ID, func())
- func NewAUParameterAutomationObserverBlock(handler AUParameterAutomationObserver) (objc.ID, func())
- func NewAUParameterFloat32Block(handler AUParameterFloat32Handler) (objc.ID, func())
- func NewAUParameterListenerBlock(handler AUParameterListenerBlock) (objc.ID, func())
- func NewAUParameterObserverBlock(handler AUParameterObserver) (objc.ID, func())
- func NewAUParameterRecordingObserverBlock(handler AUParameterRecordingObserver) (objc.ID, func())
- func NewAURenderContextObserverBlock(handler AURenderContextObserver) (objc.ID, func())
- func NewAURenderObserverBlock(handler AURenderObserver) (objc.ID, func())
- func NewAUScheduleMIDIEventBlock(handler AUScheduleMIDIEventBlock) (objc.ID, func())
- func NewAUScheduleParameterBlock(handler AUScheduleParameterBlock) (objc.ID, func())
- func NewAUVoiceIOMutedSpeechActivityEventListenerBlock(handler AUVoiceIOMutedSpeechActivityEventListener) (objc.ID, func())
- func NewAudioComponentInstanceErrorBlock(handler AudioComponentInstanceErrorHandler) (objc.ID, func())
- func NewAudioQueueInputCallbackBlock(handler AudioQueueInputCallbackBlock) (objc.ID, func())
- func NewAudioQueueOutputCallbackBlock(handler AudioQueueOutputCallbackBlock) (objc.ID, func())
- func NewAudioUnitRemoteControlEventListenerBlock(handler AudioUnitRemoteControlEventListener) (objc.ID, func())
- func NewAudioUnitRenderActionFlagsAudioTimeStampUint32Int64Block(handler AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler) (objc.ID, func())
- func NewCallHostBlock(handler CallHostBlock) (objc.ID, func())
- func NewFloat32AUParameterBlock(handler Float32AUParameterHandler) (objc.ID, func())
- func NewFloat32AUParameterStringBlock(handler Float32AUParameterStringHandler) (objc.ID, func())
- func NewInt64AUParameterAutomationEventBlock(handler Int64AUParameterAutomationEventHandler) (objc.ID, func())
- func NewInt64AURecordedParameterEventBlock(handler Int64AURecordedParameterEventHandler) (objc.ID, func())
- func NewInt64Uint32Uint64Float32Block(handler Int64Uint32Uint64Float32Handler) (objc.ID, func())
- func NewIntAudioTimeStampUint32Int64Block(handler IntAudioTimeStampUint32Int64Handler) (objc.ID, func())
- func NewIntAudioUnitRenderActionFlagsBlock(handler IntAudioUnitRenderActionFlagsHandler) (objc.ID, func())
- func NewIntInt64Block(handler IntInt64Handler) (objc.ID, func())
- func NewMusicEventIterator(inTrack MusicTrack, outIterator *MusicEventIterator) int32
- func NewMusicPlayer(outPlayer *MusicPlayer) int32
- func NewMusicSequence(outSequence *MusicSequence) int32
- func NewMusicTrackFrom(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, ...) int32deprecated
- func NewStringAUParameterNodeInt64Block(handler StringAUParameterNodeInt64Handler) (objc.ID, func())
- func NewStringVoidBlock(handler StringVoidHandler) (objc.ID, func())
- func NewUint32Uint32MIDICIProfileBoolBlock(handler Uint32Uint32MIDICIProfileBoolHandler) (objc.ID, func())
- func NewUint64Float32Block(handler Uint64Float32Handler) (objc.ID, func())
- func NewconststructAudioUnitRenderContextBlock(handler conststructAudioUnitRenderContextHandler) (objc.ID, func())
- type AU3DMixerAttenuationCurve
- type AU3DMixerRenderingFlags
- type AUAudioChannelCount
- type AUAudioFrameCount
- type AUAudioMixRenderingStyle
- type AUAudioObjectID
- type AUAudioUnit
- func AUAudioUnitFromID(id objc.ID) AUAudioUnit
- func NewAUAudioUnit() AUAudioUnit
- func NewAudioUnitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)
- func NewAudioUnitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, ...) (AUAudioUnit, error)
- func (a AUAudioUnit) AllParameterValues() bool
- func (a AUAudioUnit) AllocateRenderResourcesAndReturnError() (bool, error)
- func (a AUAudioUnit) AudioUnitMIDIProtocol() int32
- func (a AUAudioUnit) AudioUnitName() string
- func (a AUAudioUnit) AudioUnitShortName() string
- func (a AUAudioUnit) Autorelease() AUAudioUnit
- func (a AUAudioUnit) CanPerformInput() bool
- func (a AUAudioUnit) CanPerformOutput() bool
- func (a AUAudioUnit) CanProcessInPlace() bool
- func (a AUAudioUnit) ChannelCapabilities() []foundation.NSNumber
- func (a AUAudioUnit) ChannelMap() []foundation.NSNumber
- func (a AUAudioUnit) Component() AudioComponent
- func (a AUAudioUnit) ComponentDescription() AudioComponentDescription
- func (a AUAudioUnit) ComponentName() string
- func (a AUAudioUnit) ComponentVersion() uint32
- func (a AUAudioUnit) ContextName() string
- func (a AUAudioUnit) CurrentPreset() IAUAudioUnitPreset
- func (a AUAudioUnit) DeallocateRenderResources()
- func (a AUAudioUnit) DeleteUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
- func (a AUAudioUnit) DeviceID() AUAudioObjectID
- func (a AUAudioUnit) DeviceInputLatency() foundation.NSTimeInterval
- func (a AUAudioUnit) DeviceOutputLatency() foundation.NSTimeInterval
- func (a AUAudioUnit) DisableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
- func (a AUAudioUnit) EnableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
- func (a AUAudioUnit) FactoryPresets() []AUAudioUnitPreset
- func (a AUAudioUnit) FullState() foundation.INSDictionary
- func (a AUAudioUnit) FullStateForDocument() foundation.INSDictionary
- func (a AUAudioUnit) HostMIDIProtocol() int32
- func (a AUAudioUnit) Init() AUAudioUnit
- func (a AUAudioUnit) InitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)
- func (a AUAudioUnit) InitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, ...) (AUAudioUnit, error)
- func (a AUAudioUnit) InputBusses() IAUAudioUnitBusArray
- func (a AUAudioUnit) InputHandler() AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler
- func (a AUAudioUnit) InternalRenderBlock() IntAudioUnitRenderActionFlagsHandler
- func (a AUAudioUnit) IsInputEnabled() bool
- func (a AUAudioUnit) IsLoadedInProcess() bool
- func (a AUAudioUnit) IsMusicDeviceOrEffect() bool
- func (a AUAudioUnit) IsOutputEnabled() bool
- func (a AUAudioUnit) IsRenderingOffline() bool
- func (a AUAudioUnit) IsRunning() bool
- func (a AUAudioUnit) Latency() foundation.NSTimeInterval
- func (a AUAudioUnit) MIDIOutputBufferSizeHint() int
- func (a AUAudioUnit) MIDIOutputEventBlock() IntInt64Handler
- func (a AUAudioUnit) MIDIOutputEventListBlock() IntInt64Handler
- func (a AUAudioUnit) MIDIOutputNames() []string
- func (a AUAudioUnit) ManufacturerName() string
- func (a AUAudioUnit) MaximumFramesToRender() AUAudioFrameCount
- func (a AUAudioUnit) MessageChannelFor(channelName string) AUMessageChannel
- func (a AUAudioUnit) MigrateFromPlugin() foundation.INSArray
- func (a AUAudioUnit) MusicalContextBlock() AUHostMusicalContextBlock
- func (a AUAudioUnit) OsWorkgroup() os.OSWorkgroup
- func (a AUAudioUnit) OutputBusses() IAUAudioUnitBusArray
- func (a AUAudioUnit) OutputProvider() IntAudioUnitRenderActionFlagsHandler
- func (a AUAudioUnit) ParameterTree() IAUParameterTree
- func (a AUAudioUnit) ParametersForOverviewWithCount(count int) []foundation.NSNumber
- func (a AUAudioUnit) PresetStateForError(userPreset IAUAudioUnitPreset) (foundation.INSDictionary, error)
- func (a AUAudioUnit) ProfileChangedBlock() Uint32Uint32MIDICIProfileBoolHandler
- func (a AUAudioUnit) ProfileStateForCableChannel(cable uint8, channel MIDIChannelNumber) coremidi.MIDICIProfileState
- func (a AUAudioUnit) ProvidesUserInterface() bool
- func (a AUAudioUnit) RemoveRenderObserver(token int)
- func (a AUAudioUnit) RenderBlock() IntAudioUnitRenderActionFlagsHandler
- func (a AUAudioUnit) RenderContextObserver() conststructAudioUnitRenderContextHandler
- func (a AUAudioUnit) RenderQuality() int
- func (a AUAudioUnit) RenderResourcesAllocated() bool
- func (a AUAudioUnit) Reset()
- func (a AUAudioUnit) SaveUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
- func (a AUAudioUnit) ScheduleMIDIEventBlock() AUScheduleMIDIEventBlock
- func (a AUAudioUnit) ScheduleMIDIEventListBlock() IntInt64Handler
- func (a AUAudioUnit) ScheduleParameterBlock() Int64Uint32Uint64Float32Handler
- func (a AUAudioUnit) SelectViewConfiguration(viewConfiguration objectivec.IObject)
- func (a AUAudioUnit) SetChannelMap(value []foundation.NSNumber)
- func (a AUAudioUnit) SetContextName(value string)
- func (a AUAudioUnit) SetCurrentPreset(value IAUAudioUnitPreset)
- func (a AUAudioUnit) SetDeviceIDError(deviceID AUAudioObjectID) (bool, error)
- func (a AUAudioUnit) SetFullState(value foundation.INSDictionary)
- func (a AUAudioUnit) SetFullStateForDocument(value foundation.INSDictionary)
- func (a AUAudioUnit) SetHostMIDIProtocol(value int32)
- func (a AUAudioUnit) SetInputEnabled(value bool)
- func (a AUAudioUnit) SetInputHandler(value AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler)
- func (a AUAudioUnit) SetMIDIOutputBufferSizeHint(value int)
- func (a AUAudioUnit) SetMIDIOutputEventBlock(value IntInt64Handler)
- func (a AUAudioUnit) SetMIDIOutputEventListBlock(value IntInt64Handler)
- func (a AUAudioUnit) SetMaximumFramesToRender(value AUAudioFrameCount)
- func (a AUAudioUnit) SetMusicalContextBlock(value objc.ID)
- func (a AUAudioUnit) SetOutputEnabled(value bool)
- func (a AUAudioUnit) SetOutputProvider(value IntAudioUnitRenderActionFlagsHandler)
- func (a AUAudioUnit) SetParameterTree(value IAUParameterTree)
- func (a AUAudioUnit) SetProfileChangedBlock(value Uint32Uint32MIDICIProfileBoolHandler)
- func (a AUAudioUnit) SetRenderQuality(value int)
- func (a AUAudioUnit) SetRenderingOffline(value bool)
- func (a AUAudioUnit) SetShouldBypassEffect(value bool)
- func (a AUAudioUnit) SetTransportStateBlock(value objc.ID)
- func (a AUAudioUnit) ShouldBypassEffect() bool
- func (a AUAudioUnit) ShouldChangeToFormatForBus(format objectivec.IObject, bus IAUAudioUnitBus) bool
- func (a AUAudioUnit) StartHardwareAndReturnError() (bool, error)
- func (a AUAudioUnit) StopHardware()
- func (a AUAudioUnit) SupportedViewConfigurations(availableViewConfigurations []objectivec.IObject) foundation.NSIndexSet
- func (a AUAudioUnit) SupportsMPE() bool
- func (a AUAudioUnit) SupportsUserPresets() bool
- func (a AUAudioUnit) TailTime() foundation.NSTimeInterval
- func (a AUAudioUnit) TokenByAddingRenderObserver(observer IntAudioTimeStampUint32Int64Handler) int
- func (a AUAudioUnit) TransportStateBlock() AUHostTransportStateBlock
- func (a AUAudioUnit) UserPresets() []AUAudioUnitPreset
- func (a AUAudioUnit) VirtualMIDICableCount() int
- type AUAudioUnitBus
- func (a AUAudioUnitBus) Autorelease() AUAudioUnitBus
- func (a AUAudioUnitBus) BusType() AUAudioUnitBusType
- func (a AUAudioUnitBus) ContextPresentationLatency() foundation.NSTimeInterval
- func (a AUAudioUnitBus) Format() objectivec.IObject
- func (a AUAudioUnitBus) Index() uint
- func (a AUAudioUnitBus) Init() AUAudioUnitBus
- func (a AUAudioUnitBus) InitWithFormatError(format objectivec.IObject) (AUAudioUnitBus, error)
- func (a AUAudioUnitBus) IsEnabled() bool
- func (a AUAudioUnitBus) MaximumChannelCount() AUAudioChannelCount
- func (a AUAudioUnitBus) Name() string
- func (a AUAudioUnitBus) OwnerAudioUnit() IAUAudioUnit
- func (a AUAudioUnitBus) SetContextPresentationLatency(value foundation.NSTimeInterval)
- func (a AUAudioUnitBus) SetEnabled(value bool)
- func (a AUAudioUnitBus) SetFormatError(format objectivec.IObject) (bool, error)
- func (a AUAudioUnitBus) SetMaximumChannelCount(value AUAudioChannelCount)
- func (a AUAudioUnitBus) SetName(value string)
- func (a AUAudioUnitBus) SetShouldAllocateBuffer(value bool)
- func (a AUAudioUnitBus) SetSupportedChannelCounts(value []foundation.NSNumber)
- func (a AUAudioUnitBus) ShouldAllocateBuffer() bool
- func (a AUAudioUnitBus) SupportedChannelCounts() []foundation.NSNumber
- func (a AUAudioUnitBus) SupportedChannelLayoutTags() []foundation.NSNumber
- type AUAudioUnitBusArray
- func AUAudioUnitBusArrayFromID(id objc.ID) AUAudioUnitBusArray
- func NewAUAudioUnitBusArray() AUAudioUnitBusArray
- func NewAudioUnitBusArrayWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray
- func NewAudioUnitBusArrayWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray
- func (a AUAudioUnitBusArray) AddObserverToAllBussesForKeyPathOptionsContext(observer objectivec.NSObject, keyPath string, options uint, ...)
- func (a AUAudioUnitBusArray) Autorelease() AUAudioUnitBusArray
- func (a AUAudioUnitBusArray) BusType() AUAudioUnitBusType
- func (a AUAudioUnitBusArray) Count() uint
- func (a AUAudioUnitBusArray) Init() AUAudioUnitBusArray
- func (a AUAudioUnitBusArray) InitWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray
- func (a AUAudioUnitBusArray) InitWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray
- func (a AUAudioUnitBusArray) IsCountChangeable() bool
- func (a AUAudioUnitBusArray) ObjectAtIndexedSubscript(index uint) IAUAudioUnitBus
- func (a AUAudioUnitBusArray) OwnerAudioUnit() IAUAudioUnit
- func (a AUAudioUnitBusArray) RemoveObserverFromAllBussesForKeyPathContext(observer objectivec.NSObject, keyPath string, context unsafe.Pointer)
- func (a AUAudioUnitBusArray) ReplaceBusses(busArray []AUAudioUnitBus)
- func (a AUAudioUnitBusArray) SetBusCountError(count uint) (bool, error)
- type AUAudioUnitBusArrayClass
- type AUAudioUnitBusClass
- type AUAudioUnitBusType
- type AUAudioUnitClass
- func (ac AUAudioUnitClass) Alloc() AUAudioUnit
- func (ac AUAudioUnitClass) Class() objc.Class
- func (ac AUAudioUnitClass) InstantiateWithComponentDescriptionOptions(ctx context.Context, componentDescription AudioComponentDescription, ...) (AudioComponentInstance, error)
- func (_AUAudioUnitClass AUAudioUnitClass) InstantiateWithComponentDescriptionOptionsCompletionHandler(componentDescription AudioComponentDescription, ...)
- func (_AUAudioUnitClass AUAudioUnitClass) RegisterSubclassAsComponentDescriptionNameVersion(cls objectivec.Class, componentDescription AudioComponentDescription, ...)
- type AUAudioUnitFactory
- type AUAudioUnitFactoryObject
- type AUAudioUnitPreset
- func (a AUAudioUnitPreset) Autorelease() AUAudioUnitPreset
- func (a AUAudioUnitPreset) EncodeWithCoder(coder foundation.INSCoder)
- func (a AUAudioUnitPreset) Init() AUAudioUnitPreset
- func (a AUAudioUnitPreset) InitWithCoder(coder foundation.INSCoder) AUAudioUnitPreset
- func (a AUAudioUnitPreset) Name() string
- func (a AUAudioUnitPreset) Number() int
- func (a AUAudioUnitPreset) SetName(value string)
- func (a AUAudioUnitPreset) SetNumber(value int)
- type AUAudioUnitPresetClass
- type AUAudioUnitStatus
- type AUAudioUnitV2Bridge
- func AUAudioUnitV2BridgeFromID(id objc.ID) AUAudioUnitV2Bridge
- func NewAUAudioUnitV2Bridge() AUAudioUnitV2Bridge
- func NewAudioUnitV2BridgeWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnitV2Bridge, error)
- func NewAudioUnitV2BridgeWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, ...) (AUAudioUnitV2Bridge, error)
- type AUAudioUnitV2BridgeClass
- type AUChannelInfo
- type AUCocoaUIBase
- type AUCocoaUIBaseObject
- type AUDependentParameter
- type AUDistanceAttenuationData
- type AUEventListenerBlock
- type AUEventListenerProc
- type AUEventListenerRef
- type AUEventSampleTime
- type AUEventSampleTimeImmediateConstants
- type AUGraph
- type AUHostIdentifier
- type AUHostMusicalContextBlock
- type AUHostTransportStateBlock
- type AUHostTransportStateFlags
- type AUHostVersionIdentifier
- type AUImplementorDisplayNameWithLengthCallback
- type AUImplementorStringFromValueCallback
- type AUImplementorValueFromStringCallback
- type AUImplementorValueObserver
- type AUImplementorValueProvider
- type AUInputHandler
- type AUInputSamplesInOutputCallback
- type AUInputSamplesInOutputCallbackStruct
- type AUInternalRenderBlock
- type AUMIDICIProfileChangedBlock
- type AUMIDIEvent
- func (s *AUMIDIEvent) Cable() uint8
- func (s *AUMIDIEvent) Data() [3]uint8
- func (s *AUMIDIEvent) EventSampleTime() AUEventSampleTime
- func (s *AUMIDIEvent) EventType() AURenderEventType
- func (s *AUMIDIEvent) Length() uint16
- func (s *AUMIDIEvent) Next() *AURenderEvent
- func (s *AUMIDIEvent) Reserved() uint8
- func (s *AUMIDIEvent) SetCable(v uint8)
- func (s *AUMIDIEvent) SetData(v [3]uint8)
- func (s *AUMIDIEvent) SetEventSampleTime(v AUEventSampleTime)
- func (s *AUMIDIEvent) SetEventType(v AURenderEventType)
- func (s *AUMIDIEvent) SetLength(v uint16)
- func (s *AUMIDIEvent) SetNext(v *AURenderEvent)
- func (s *AUMIDIEvent) SetReserved(v uint8)
- type AUMIDIEventList
- func (s *AUMIDIEventList) Cable() uint8
- func (s *AUMIDIEventList) EventList() coremidi.MIDIEventList
- func (s *AUMIDIEventList) EventSampleTime() AUEventSampleTime
- func (s *AUMIDIEventList) EventType() AURenderEventType
- func (s *AUMIDIEventList) Next() *AURenderEvent
- func (s *AUMIDIEventList) Reserved() uint8
- func (s *AUMIDIEventList) SetCable(v uint8)
- func (s *AUMIDIEventList) SetEventList(v coremidi.MIDIEventList)
- func (s *AUMIDIEventList) SetEventSampleTime(v AUEventSampleTime)
- func (s *AUMIDIEventList) SetEventType(v AURenderEventType)
- func (s *AUMIDIEventList) SetNext(v *AURenderEvent)
- func (s *AUMIDIEventList) SetReserved(v uint8)
- type AUMIDIEventListBlock
- type AUMIDIOutputCallback
- type AUMIDIOutputCallbackStruct
- type AUMIDIOutputEventBlock
- type AUMessageChannel
- type AUMessageChannelObject
- type AUNode
- type AUNodeConnection
- type AUNodeInteraction
- type AUNodeRenderCallback
- type AUNumVersion
- type AUParameter
- func (p AUParameter) Address() AUParameterAddress
- func (p AUParameter) Autorelease() AUParameter
- func (p AUParameter) DependentParameters() []foundation.NSNumber
- func (p AUParameter) Flags() AudioUnitParameterOptions
- func (p AUParameter) Init() AUParameter
- func (p AUParameter) MaxValue() AUValue
- func (p AUParameter) MinValue() AUValue
- func (p AUParameter) SetValue(value AUValue)
- func (p AUParameter) SetValueOriginator(value AUValue, originator AUParameterObserverToken)
- func (p AUParameter) SetValueOriginatorAtHostTime(value AUValue, originator AUParameterObserverToken, hostTime uint64)
- func (p AUParameter) SetValueOriginatorAtHostTimeEventType(value AUValue, originator AUParameterObserverToken, hostTime uint64, ...)
- func (p AUParameter) StringFromValue(value *AUValue) string
- func (p AUParameter) Unit() AudioUnitParameterUnit
- func (p AUParameter) UnitName() string
- func (p AUParameter) Value() AUValue
- func (p AUParameter) ValueFromString(string_ string) AUValue
- func (p AUParameter) ValueStrings() []string
- type AUParameterAddress
- type AUParameterAutomationEvent
- type AUParameterAutomationEventType
- type AUParameterAutomationObserver
- type AUParameterClass
- type AUParameterEvent
- func (s *AUParameterEvent) EventSampleTime() AUEventSampleTime
- func (s *AUParameterEvent) EventType() AURenderEventType
- func (s *AUParameterEvent) Next() *AURenderEvent
- func (s *AUParameterEvent) ParameterAddress() AUParameterAddress
- func (s *AUParameterEvent) RampDurationSampleFrames() AUAudioFrameCount
- func (s *AUParameterEvent) Reserved() [3]uint8
- func (s *AUParameterEvent) SetEventSampleTime(v AUEventSampleTime)
- func (s *AUParameterEvent) SetEventType(v AURenderEventType)
- func (s *AUParameterEvent) SetNext(v *AURenderEvent)
- func (s *AUParameterEvent) SetParameterAddress(v AUParameterAddress)
- func (s *AUParameterEvent) SetRampDurationSampleFrames(v AUAudioFrameCount)
- func (s *AUParameterEvent) SetReserved(v [3]uint8)
- func (s *AUParameterEvent) SetValue(v AUValue)
- func (s *AUParameterEvent) Value() AUValue
- type AUParameterEventType
- type AUParameterFloat32Handler
- type AUParameterGroup
- type AUParameterGroupClass
- type AUParameterListenerBlock
- type AUParameterListenerProc
- type AUParameterListenerRef
- type AUParameterMIDIMapping
- type AUParameterMIDIMappingFlags
- type AUParameterNode
- func (p AUParameterNode) Autorelease() AUParameterNode
- func (p AUParameterNode) DisplayName() string
- func (p AUParameterNode) DisplayNameWithLength(maximumLength int) string
- func (p AUParameterNode) Identifier() string
- func (p AUParameterNode) ImplementorDisplayNameWithLengthCallback() StringAUParameterNodeInt64Handler
- func (p AUParameterNode) ImplementorStringFromValueCallback() StringVoidHandler
- func (p AUParameterNode) ImplementorValueFromStringCallback() Float32AUParameterStringHandler
- func (p AUParameterNode) ImplementorValueObserver() AUParameterFloat32Handler
- func (p AUParameterNode) ImplementorValueProvider() Float32AUParameterHandler
- func (p AUParameterNode) Init() AUParameterNode
- func (p AUParameterNode) KeyPath() string
- func (p AUParameterNode) RemoveParameterObserver(token AUParameterObserverToken)
- func (p AUParameterNode) SetImplementorDisplayNameWithLengthCallback(value StringAUParameterNodeInt64Handler)
- func (p AUParameterNode) SetImplementorStringFromValueCallback(value StringVoidHandler)
- func (p AUParameterNode) SetImplementorValueFromStringCallback(value Float32AUParameterStringHandler)
- func (p AUParameterNode) SetImplementorValueObserver(value AUParameterFloat32Handler)
- func (p AUParameterNode) SetImplementorValueProvider(value Float32AUParameterHandler)
- func (p AUParameterNode) TokenByAddingParameterAutomationObserver(observer Int64AUParameterAutomationEventHandler) AUParameterObserverToken
- func (p AUParameterNode) TokenByAddingParameterObserver(observer Uint64Float32Handler) AUParameterObserverToken
- func (p AUParameterNode) TokenByAddingParameterRecordingObserver(observer Int64AURecordedParameterEventHandler) AUParameterObserverToken
- type AUParameterNodeClass
- type AUParameterObserver
- type AUParameterObserverToken
- type AUParameterRecordingObserver
- type AUParameterTree
- func (p AUParameterTree) Autorelease() AUParameterTree
- func (p AUParameterTree) Init() AUParameterTree
- func (p AUParameterTree) ParameterWithAddress(address AUParameterAddress) IAUParameter
- func (p AUParameterTree) ParameterWithIDScopeElement(paramID AudioUnitParameterID, scope AudioUnitScope, element AudioUnitElement) IAUParameter
- type AUParameterTreeClass
- func (ac AUParameterTreeClass) Alloc() AUParameterTree
- func (ac AUParameterTreeClass) Class() objc.Class
- func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupFromTemplateIdentifierNameAddressOffset(templateGroup IAUParameterGroup, identifier string, name string, ...) AUParameterGroup
- func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupTemplate(children []AUParameterNode) AUParameterGroup
- func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupWithIdentifierNameChildren(identifier string, name string, children []AUParameterNode) AUParameterGroup
- func (_AUParameterTreeClass AUParameterTreeClass) CreateParameterWithIdentifierNameAddressMinMaxUnitUnitNameFlagsValueStringsDependentParameters(identifier string, name string, address AUParameterAddress, min AUValue, ...) AUParameter
- func (_AUParameterTreeClass AUParameterTreeClass) CreateTreeWithChildren(children []AUParameterNode) AUParameterTree
- type AUPreset
- type AUPresetEvent
- type AURecordedParameterEvent
- type AURenderBlock
- type AURenderCallback
- type AURenderCallbackStruct
- type AURenderContextObserver
- type AURenderEvent
- func (s *AURenderEvent) Head() AURenderEventHeader
- func (s *AURenderEvent) MIDI() AUMIDIEvent
- func (s *AURenderEvent) MIDIEventsList() AUMIDIEventList
- func (s *AURenderEvent) Parameter() AUParameterEvent
- func (s *AURenderEvent) SetHead(v AURenderEventHeader)
- func (s *AURenderEvent) SetMIDI(v AUMIDIEvent)
- func (s *AURenderEvent) SetMIDIEventsList(v AUMIDIEventList)
- func (s *AURenderEvent) SetParameter(v AUParameterEvent)
- type AURenderEventHeader
- func (s *AURenderEventHeader) EventSampleTime() AUEventSampleTime
- func (s *AURenderEventHeader) EventType() AURenderEventType
- func (s *AURenderEventHeader) Next() *AURenderEvent
- func (s *AURenderEventHeader) Reserved() uint8
- func (s *AURenderEventHeader) SetEventSampleTime(v AUEventSampleTime)
- func (s *AURenderEventHeader) SetEventType(v AURenderEventType)
- func (s *AURenderEventHeader) SetNext(v *AURenderEvent)
- func (s *AURenderEventHeader) SetReserved(v uint8)
- type AURenderEventType
- type AURenderObserver
- type AURenderPullInputBlock
- type AUReverbRoomType
- type AUSamplerBankPresetData
- type AUSamplerInstrumentData
- type AUScheduleMIDIEventBlock
- type AUScheduleParameterBlock
- type AUScheduledAudioSliceFlags
- type AUSpatialMixerAttenuationCurve
- type AUSpatialMixerOutputType
- type AUSpatialMixerPersonalizedHRTFMode
- type AUSpatialMixerPointSourceInHeadMode
- type AUSpatialMixerRenderingFlags
- type AUSpatialMixerSourceMode
- type AUSpatializationAlgorithm
- type AUValue
- type AUViewControllerBaseHandler
- type AUVoiceIOMutedSpeechActivityEventListener
- type AUVoiceIOOtherAudioDuckingConfiguration
- type AUVoiceIOOtherAudioDuckingLevel
- type AUVoiceIOSpeechActivityEvent
- type AudioBalanceFade
- type AudioBalanceFadeType
- type AudioBytePacketTranslation
- type AudioBytePacketTranslationFlags
- type AudioCodec
- type AudioCodecAppendInputBufferListProc
- type AudioCodecAppendInputDataProc
- type AudioCodecGetPropertyInfoProc
- type AudioCodecGetPropertyProc
- type AudioCodecInitializeProc
- type AudioCodecMagicCookieInfo
- type AudioCodecPrimeInfo
- type AudioCodecProduceOutputBufferListProc
- type AudioCodecProduceOutputPacketsProc
- type AudioCodecPropertyID
- type AudioCodecResetProc
- type AudioCodecSetPropertyProc
- type AudioCodecUninitializeProc
- type AudioComponent
- func AudioComponentFindNext(inComponent AudioComponent, inDesc *AudioComponentDescription) AudioComponent
- func AudioComponentInstanceGetComponent(inInstance AudioComponentInstance) AudioComponent
- func AudioComponentRegister(inDesc *AudioComponentDescription, inName corefoundation.CFStringRef, ...) AudioComponent
- type AudioComponentDescription
- type AudioComponentFactoryFunction
- type AudioComponentFlags
- type AudioComponentInstance
- type AudioComponentInstanceErrorHandler
- type AudioComponentInstantiationOptions
- type AudioComponentMethod
- type AudioComponentPlugInInterface
- type AudioComponentValidationResult
- type AudioConverterComplexInputDataProc
- type AudioConverterComplexInputDataProcRealtimeSafe
- type AudioConverterInputDataProc
- type AudioConverterOptions
- type AudioConverterPrimeInfo
- type AudioConverterPropertyID
- type AudioConverterRef
- type AudioFileComponent
- type AudioFileComponentCloseProc
- type AudioFileComponentCountUserDataProc
- type AudioFileComponentCreateURLProc
- type AudioFileComponentExtensionIsThisFormatProc
- type AudioFileComponentFileDataIsThisFormatProc
- type AudioFileComponentGetGlobalInfoProc
- type AudioFileComponentGetGlobalInfoSizeProc
- type AudioFileComponentGetPropertyInfoProc
- type AudioFileComponentGetPropertyProc
- type AudioFileComponentGetUserDataAtOffsetProc
- type AudioFileComponentGetUserDataProc
- type AudioFileComponentGetUserDataSize64Proc
- type AudioFileComponentGetUserDataSizeProc
- type AudioFileComponentInitializeWithCallbacksProc
- type AudioFileComponentOpenURLProc
- type AudioFileComponentOpenWithCallbacksProc
- type AudioFileComponentOptimizeProc
- type AudioFileComponentPropertyID
- type AudioFileComponentReadBytesProc
- type AudioFileComponentReadPacketDataProc
- type AudioFileComponentReadPacketsProc
- type AudioFileComponentRemoveUserDataProc
- type AudioFileComponentSetPropertyProc
- type AudioFileComponentSetUserDataProc
- type AudioFileComponentWriteBytesProc
- type AudioFileComponentWritePacketsProc
- type AudioFileFDFTable
- type AudioFileFDFTableExtended
- type AudioFileFlags
- type AudioFileGetSizeProc
- type AudioFileID
- type AudioFileMarker
- type AudioFileMarkerList
- type AudioFilePacketTableInfo
- type AudioFilePermissions
- type AudioFilePropertyID
- type AudioFileReadProc
- type AudioFileRegion
- type AudioFileRegionFlags
- type AudioFileRegionList
- type AudioFileSetSizeProc
- type AudioFileStreamID
- type AudioFileStreamPacketsProc
- type AudioFileStreamParseFlags
- type AudioFileStreamPropertyFlags
- type AudioFileStreamPropertyID
- type AudioFileStreamPropertyListenerProc
- type AudioFileStreamSeekFlags
- type AudioFileStream_PacketsProc
- type AudioFileStream_PropertyListenerProc
- type AudioFileTypeAndFormatID
- type AudioFileTypeID
- type AudioFileWriteProc
- type AudioFile_GetSizeProc
- type AudioFile_ReadProc
- type AudioFile_SMPTE_Time
- type AudioFile_SetSizeProc
- type AudioFile_WriteProc
- type AudioFormatInfo
- type AudioFormatListItem
- type AudioFormatPropertyID
- type AudioFramePacketTranslation
- type AudioIndependentPacketTranslation
- type AudioOutputUnitMIDICallbacks
- type AudioOutputUnitStartAtTimeParams
- type AudioOutputUnitStartProc
- type AudioOutputUnitStopProc
- type AudioPacketDependencyInfoTranslation
- type AudioPacketRangeByteCountTranslation
- type AudioPacketRollDistanceTranslation
- type AudioPanningInfo
- type AudioPanningMode
- type AudioQueueBuffer
- type AudioQueueBufferRef
- type AudioQueueChannelAssignment
- type AudioQueueInputCallback
- type AudioQueueInputCallbackBlock
- type AudioQueueLevelMeterState
- type AudioQueueOutputCallback
- type AudioQueueOutputCallbackBlock
- type AudioQueueParameterEvent
- type AudioQueueParameterID
- type AudioQueueParameterValue
- type AudioQueueProcessingTapCallback
- type AudioQueueProcessingTapFlags
- type AudioQueueProcessingTapRef
- type AudioQueuePropertyID
- type AudioQueuePropertyListenerProc
- type AudioQueueRef
- type AudioQueueTimelineRef
- type AudioServicesPropertyID
- type AudioServicesSystemSoundCompletionProc
- type AudioSessionInterruptionType
- type AudioSettingsFlags
- type AudioUnit
- type AudioUnitAddPropertyListenerProc
- type AudioUnitAddRenderNotifyProc
- type AudioUnitCarbonView
- type AudioUnitCarbonViewEventID
- type AudioUnitCocoaViewInfo
- type AudioUnitComplexRenderProc
- type AudioUnitConnection
- type AudioUnitElement
- type AudioUnitEvent
- type AudioUnitEventType
- type AudioUnitExternalBuffer
- type AudioUnitFrequencyResponseBin
- type AudioUnitGetParameterProc
- type AudioUnitGetPropertyInfoProc
- type AudioUnitGetPropertyProc
- type AudioUnitInitializeProc
- type AudioUnitMIDIControlMapping
- type AudioUnitMeterClipping
- type AudioUnitNodeConnection
- type AudioUnitOtherPluginDesc
- type AudioUnitParameter
- type AudioUnitParameterEvent
- type AudioUnitParameterHistoryInfo
- type AudioUnitParameterID
- type AudioUnitParameterIDName
- type AudioUnitParameterInfo
- type AudioUnitParameterNameInfo
- type AudioUnitParameterOptions
- type AudioUnitParameterStringFromValue
- type AudioUnitParameterUnit
- type AudioUnitParameterValue
- type AudioUnitParameterValueFromString
- type AudioUnitParameterValueName
- type AudioUnitParameterValueTranslation
- type AudioUnitPresetMAS_SettingData
- type AudioUnitPresetMAS_Settings
- type AudioUnitProcessMultipleProc
- type AudioUnitProcessProc
- type AudioUnitProperty
- type AudioUnitPropertyID
- type AudioUnitPropertyListenerProc
- type AudioUnitRemoteControlEvent
- type AudioUnitRemoteControlEventListener
- type AudioUnitRemovePropertyListenerProc
- type AudioUnitRemovePropertyListenerWithUserDataProc
- type AudioUnitRemoveRenderNotifyProc
- type AudioUnitRenderActionFlags
- type AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler
- type AudioUnitRenderContext
- type AudioUnitRenderProc
- type AudioUnitResetProc
- type AudioUnitScheduleParametersProc
- type AudioUnitScope
- type AudioUnitSetParameterProc
- type AudioUnitSetPropertyProc
- type AudioUnitUninitializeProc
- type BoolAUHostTransportStateFlagsHandler
- type BoolFloat64Handler
- type CABarBeatTime
- type CAClockBeats
- type CAClockListenerProc
- type CAClockMessage
- type CAClockPropertyID
- type CAClockRef
- type CAClockSMPTEFormat
- type CAClockSamples
- type CAClockSeconds
- type CAClockSyncMode
- type CAClockTempo
- type CAClockTime
- type CAClockTimeFormat
- type CAClockTimebase
- type CAFAudioDescription
- func (s *CAFAudioDescription) MBitsPerChannel() uint32
- func (s *CAFAudioDescription) MBytesPerPacket() uint32
- func (s *CAFAudioDescription) MChannelsPerFrame() uint32
- func (s *CAFAudioDescription) MFormatFlags() CAFFormatFlags
- func (s *CAFAudioDescription) MFormatID() uint32
- func (s *CAFAudioDescription) MFramesPerPacket() uint32
- func (s *CAFAudioDescription) MSampleRate() float64
- func (s *CAFAudioDescription) SetMBitsPerChannel(v uint32)
- func (s *CAFAudioDescription) SetMBytesPerPacket(v uint32)
- func (s *CAFAudioDescription) SetMChannelsPerFrame(v uint32)
- func (s *CAFAudioDescription) SetMFormatFlags(v CAFFormatFlags)
- func (s *CAFAudioDescription) SetMFormatID(v uint32)
- func (s *CAFAudioDescription) SetMFramesPerPacket(v uint32)
- func (s *CAFAudioDescription) SetMSampleRate(v float64)
- type CAFAudioFormatListItem
- type CAFChunkHeader
- type CAFDataChunk
- type CAFFileHeader
- type CAFFormatFlags
- type CAFInfoStrings
- type CAFInstrumentChunk
- func (s *CAFInstrumentChunk) MBaseNote() float32
- func (s *CAFInstrumentChunk) MInstrumentID() uint32
- func (s *CAFInstrumentChunk) MMIDIHighNote() uint8
- func (s *CAFInstrumentChunk) MMIDIHighVelocity() uint8
- func (s *CAFInstrumentChunk) MMIDILowNote() uint8
- func (s *CAFInstrumentChunk) MMIDILowVelocity() uint8
- func (s *CAFInstrumentChunk) MReleaseRegionID() uint32
- func (s *CAFInstrumentChunk) MStartRegionID() uint32
- func (s *CAFInstrumentChunk) MSustainRegionID() uint32
- func (s *CAFInstrumentChunk) MdBGain() float32
- func (s *CAFInstrumentChunk) SetMBaseNote(v float32)
- func (s *CAFInstrumentChunk) SetMInstrumentID(v uint32)
- func (s *CAFInstrumentChunk) SetMMIDIHighNote(v uint8)
- func (s *CAFInstrumentChunk) SetMMIDIHighVelocity(v uint8)
- func (s *CAFInstrumentChunk) SetMMIDILowNote(v uint8)
- func (s *CAFInstrumentChunk) SetMMIDILowVelocity(v uint8)
- func (s *CAFInstrumentChunk) SetMReleaseRegionID(v uint32)
- func (s *CAFInstrumentChunk) SetMStartRegionID(v uint32)
- func (s *CAFInstrumentChunk) SetMSustainRegionID(v uint32)
- func (s *CAFInstrumentChunk) SetMdBGain(v float32)
- type CAFMarker
- func (s *CAFMarker) MChannel() uint32
- func (s *CAFMarker) MFramePosition() float64
- func (s *CAFMarker) MMarkerID() uint32
- func (s *CAFMarker) MSMPTETime() CAF_SMPTE_Time
- func (s *CAFMarker) MType() uint32
- func (s *CAFMarker) SetMChannel(v uint32)
- func (s *CAFMarker) SetMFramePosition(v float64)
- func (s *CAFMarker) SetMMarkerID(v uint32)
- func (s *CAFMarker) SetMSMPTETime(v CAF_SMPTE_Time)
- func (s *CAFMarker) SetMType(v uint32)
- type CAFMarkerChunk
- func (s *CAFMarkerChunk) MMarkers() [1]CAFMarker
- func (s *CAFMarkerChunk) MNumberMarkers() uint32
- func (s *CAFMarkerChunk) MSMPTE_TimeType() uint32
- func (s *CAFMarkerChunk) SetMMarkers(v [1]CAFMarker)
- func (s *CAFMarkerChunk) SetMNumberMarkers(v uint32)
- func (s *CAFMarkerChunk) SetMSMPTE_TimeType(v uint32)
- type CAFOverviewChunk
- func (s *CAFOverviewChunk) MData() [1]CAFOverviewSample
- func (s *CAFOverviewChunk) MEditCount() uint32
- func (s *CAFOverviewChunk) MNumFramesPerOVWSample() uint32
- func (s *CAFOverviewChunk) SetMData(v [1]CAFOverviewSample)
- func (s *CAFOverviewChunk) SetMEditCount(v uint32)
- func (s *CAFOverviewChunk) SetMNumFramesPerOVWSample(v uint32)
- type CAFOverviewSample
- type CAFPacketTableHeader
- func (s *CAFPacketTableHeader) MNumberPackets() int64
- func (s *CAFPacketTableHeader) MNumberValidFrames() int64
- func (s *CAFPacketTableHeader) MPacketDescriptions() [1]uint8
- func (s *CAFPacketTableHeader) MPrimingFrames() int32
- func (s *CAFPacketTableHeader) MRemainderFrames() int32
- func (s *CAFPacketTableHeader) SetMNumberPackets(v int64)
- func (s *CAFPacketTableHeader) SetMNumberValidFrames(v int64)
- func (s *CAFPacketTableHeader) SetMPacketDescriptions(v [1]uint8)
- func (s *CAFPacketTableHeader) SetMPrimingFrames(v int32)
- func (s *CAFPacketTableHeader) SetMRemainderFrames(v int32)
- type CAFPeakChunk
- type CAFPositionPeak
- type CAFRegion
- func (s *CAFRegion) MFlags() CAFRegionFlags
- func (s *CAFRegion) MMarkers() [1]CAFMarker
- func (s *CAFRegion) MNumberMarkers() uint32
- func (s *CAFRegion) MRegionID() uint32
- func (s *CAFRegion) SetMFlags(v CAFRegionFlags)
- func (s *CAFRegion) SetMMarkers(v [1]CAFMarker)
- func (s *CAFRegion) SetMNumberMarkers(v uint32)
- func (s *CAFRegion) SetMRegionID(v uint32)
- type CAFRegionChunk
- func (s *CAFRegionChunk) MNumberRegions() uint32
- func (s *CAFRegionChunk) MRegions() [1]CAFRegion
- func (s *CAFRegionChunk) MSMPTE_TimeType() uint32
- func (s *CAFRegionChunk) SetMNumberRegions(v uint32)
- func (s *CAFRegionChunk) SetMRegions(v [1]CAFRegion)
- func (s *CAFRegionChunk) SetMSMPTE_TimeType(v uint32)
- type CAFRegionFlags
- type CAFStringID
- type CAFStrings
- type CAFUMIDChunk
- type CAF_SMPTE_Time
- func (s *CAF_SMPTE_Time) MFrames() int8
- func (s *CAF_SMPTE_Time) MHours() int8
- func (s *CAF_SMPTE_Time) MMinutes() int8
- func (s *CAF_SMPTE_Time) MSeconds() int8
- func (s *CAF_SMPTE_Time) MSubFrameSampleOffset() uint32
- func (s *CAF_SMPTE_Time) SetMFrames(v int8)
- func (s *CAF_SMPTE_Time) SetMHours(v int8)
- func (s *CAF_SMPTE_Time) SetMMinutes(v int8)
- func (s *CAF_SMPTE_Time) SetMSeconds(v int8)
- func (s *CAF_SMPTE_Time) SetMSubFrameSampleOffset(v uint32)
- type CAF_UUID_ChunkHeader
- type CAMeterTrackEntry
- type CATempoMapEntry
- type CallHostBlock
- type CountUserDataFDF
- type ExtAudioFilePacketTableInfoOverride
- type ExtAudioFilePropertyID
- type ExtAudioFileRef
- type ExtendedAudioFormatInfo
- type ExtendedControlEvent
- type ExtendedNoteOnEvent
- type ExtendedTempoEvent
- type Float32AUParameterHandler
- type Float32AUParameterStringHandler
- type GetPropertyFDF
- type GetPropertyInfoFDF
- type GetUserDataFDF
- type GetUserDataSizeFDF
- type HostCallbackGetBeatAndTempo
- type HostCallbackGetMusicalTimeLocation
- type HostCallbackGetTransportState
- type HostCallbackGetTransportState2
- type HostCallbackInfo
- type HostCallback_GetBeatAndTempo
- type HostCallback_GetMusicalTimeLocation
- type HostCallback_GetTransportState
- type HostCallback_GetTransportState2
- type IAUAudioUnit
- type IAUAudioUnitBus
- type IAUAudioUnitBusArray
- type IAUAudioUnitPreset
- type IAUAudioUnitV2Bridge
- type IAUParameter
- type IAUParameterGroup
- type IAUParameterNode
- type IAUParameterTree
- type INSDictionaryDictionaryHandler
- type Int64AUParameterAutomationEventHandler
- type Int64AURecordedParameterEventHandler
- type Int64Uint32Uint64Float32Handler
- type IntAudioTimeStampUint32Int64Handler
- type IntAudioUnitRenderActionFlagsHandler
- type IntInt64Handler
- type K3DMixerParam
- type KAUAudioMixParameter
- type KAUAudioMixProperty
- type KAUGraphErr
- type KAUGroupParameterID
- type KAULowShelfParam
- type KAUNBandEQParam
- type KAUNBandEQProperty
- type KAUNetReceiveParam
- type KAUNetReceiveProperty
- type KAUNetSend
- type KAUNetSendParam
- type KAUNetSendProperty
- type KAUNetStatus
- type KAUNodeInteraction
- type KAUSamplerParam
- type KAUSamplerProperty
- type KAUSoundIsolationParam
- type KAUSoundIsolationSoundType
- type KAUVoiceIOProperty
- type KAudioCodecBitRateControlMode
- type KAudioCodecBitRateFormat
- type KAudioCodecContentSource
- type KAudioCodecDelayMode
- type KAudioCodecDynamicRangeControlConfiguration
- type KAudioCodecGetPropertyInfoSelect
- type KAudioCodecNoError
- type KAudioCodecOutputPrecedence
- type KAudioCodecPrimeMethod
- type KAudioCodecProduceOutputPacket
- type KAudioCodecPropertyInputBufferSize
- type KAudioCodecPropertyNameCFString
- type KAudioCodecPropertyRequiresPacketDescription
- type KAudioCodecPropertySupportedInputFormats
- type KAudioCodecQuality
- type KAudioComponentErr
- type KAudioConverterProperty
- type KAudioConverterPropertyMaximumInputBufferSize
- type KAudioConverterPropertyMinimumInputBufferSize
- type KAudioConverterQuality
- type KAudioConverterSampleRateConverterComplexity
- type KAudioDecoderComponentType
- type KAudioFileAIFFType
- type KAudioFileComponent
- type KAudioFileCreateSelect
- type KAudioFileGlobalInfo
- type KAudioFileLoopDirection
- type KAudioFileProperty
- type KAudioFileStreamError
- type KAudioFileStreamProperty
- type KAudioFileUnspecifiedError
- type KAudioFormat
- type KAudioFormatProperty
- type KAudioHardwareService
- type KAudioOutputUnit
- type KAudioQueue
- type KAudioQueueErr
- type KAudioQueueParam
- type KAudioQueueProperty
- type KAudioQueueTimePitchAlgorithm
- type KAudioServices
- type KAudioServicesProperty
- type KAudioSession
- type KAudioSessionMode
- type KAudioSessionNoError
- type KAudioSessionOverrideAudioRoute
- type KAudioSessionProperty
- type KAudioSessionRouteChangeReason
- type KAudioToolbox
- type KAudioUnit
- type KAudioUnitCarbonView
- type KAudioUnitCarbonViewComponentType
- type KAudioUnitErr
- type KAudioUnitMigrateProperty
- type KAudioUnitOfflineProperty
- type KAudioUnitSRCAlgorithm
- type KAudioUnitSampleRateConverterComplexity
- type KAudioUnitScope
- type KAudioUnitType
- type KBandpassParam
- type KCAClock
- type KCAF
- type KCAFMarkerType
- type KConverterPrimeMethod
- type KDelayParam
- type KDistortionParam
- type KDitherAlgorithm
- type KDynamicRangeCompressionProfile
- type KDynamicRangeControlMode
- type KDynamicsProcessorParam
- type KExtAudioFileError
- type KExtAudioFilePacketTableInfoOverride
- type KExtAudioFileProperty
- type KHighShelfParam
- type KHint
- type KHipassParam
- type KInstrumentType
- type KLimiterParam
- type KLowPassParam
- type KMatrixMixerParam
- type KMultiChannelMixerParam
- type KMultibandCompressorParam
- type KMultibandFilter
- type KMusicDevice
- type KMusicDeviceParam
- type KMusicDeviceSampleFrameMask
- type KMusicEventType
- type KMusicNoteEvent
- type KNewTimePitchParam
- type KOfflinePreflight
- type KOtherPluginFormat
- type KPannerParam
- type KParametricEQParam
- type KProgramTargetLevel
- type KRandomParam
- type KRenderQuality
- type KReverb2Param
- type KReverbParam
- type KRogerBeepParam
- type KRoundTripAACParam
- type KSequenceTrackProperty
- type KSpatialMixerParam
- type KSpeakerConfiguration
- type KStereoMixerParam
- type KTimePitchParam
- type KaudioconvertererrFormatnotsupported
- type KaudiofilemarkertypeGeneric
- type KaudiooutputunitpropertyCurrentdevice
- type KaudiooutputunitpropertyMidicallbacks
- type KaudiosessioncategoryAmbientsound
- type KaudiosessioncategoryUserinterfacesoundeffects
- type KaudiosessioninterruptiontypeShould
- type KaudiosessionpropertyAudioroute
- type KaudiosessionsetactiveflagNotifyothersondeactivation
- type KaudiounitcarbonvieweventMouse
- type KaudiounitclumpidSystem
- type KaudiouniterrInvalidproperty
- type KaudiounitmanufacturerApple
- type KaudiounitparameterflagGlobal
- type KaudiounitparameterflagHasname
- type KaudiounitparameternameFull
- type Kaudiounitproperty3dmixerdistanceparams
- type KaudiounitpropertyAllparametermidimappings
- type KaudiounitpropertyClassinfo
- type KaudiounitpropertyDeferredrenderer
- type KaudiounitpropertyDistanceattenuationdata
- type KaudiounitpropertyMeteringmode
- type KaudiounitpropertyRemotecontroleventlistener
- type KaudiounitpropertyReverbroomtype
- type KaudiounitpropertySamplerateconvertercomplexity
- type KaudiounitpropertyScheduleaudioslice
- type KaudiounitpropertyScheduledfile
- type KaudiounitpropertySpeakerconfiguration
- type KaudiounitpropertySrcalgorithm
- type KaudiounitsubtypeAuconverter
- type KaudiounitsubtypeDlssynth
- type KaudiounitsubtypeGenericoutput
- type KaudiounitsubtypeGraphiceq
- type KaudiounitsubtypeHaloutput
- type KaudiounitsubtypeMultichannelmixer
- type KaudiounitsubtypeNetreceive
- type KaudiounitsubtypePeaklimiter
- type KaudiounitsubtypeSampler
- type KaudiounitsubtypeScheduledsoundplayer
- type KaudiounitsubtypeSphericalheadpanner
- type KaudiounitsubtypeStereomixer
- type KaudiounitsubtypeTimepitch
- type KaudiounittypeRemote
- type KaumidisynthpropertyEnablepreload
- type KaunbandeqfiltertypeParametric
- type KauparameterlistenerAnyparameter
- type KausamplerDefault
- type KausamplerpropertyLoad
- type KauvoiceioerrUnexpectednumberofinputchannels
- type KauvoiceiopropertyMutedspeechactivityeventlistener
- type KauvoiceiopropertyOtheraudioduckingconfiguration
- type KauvoiceiopropertyVoiceprocessingquality
- type KcafFile
- type KcafSmpte
- type KgraphiceqparamNumberofbands
- type KhaloutputparamVolume
- type KmusicdevicepropertyGroupoutputbus
- type KmusicdevicepropertyInstrumentcount
- type KmusicdevicepropertyInstrumentname
- type KmusicdevicepropertyMidixmlnames
- type KmusicdevicepropertyUsesinternalreverb
- type KmusiceventtypeExtendedcontrol
- type KreverbparamFilter
- type KsampledelayparamDelayframes
- type KsystemsoundidUserpreferredalert
- type KsystemsoundidVibrate
- type KvarispeedparamPlayback
- type MIDIChannelMessage
- type MIDIChannelNumber
- type MIDIMetaEvent
- type MIDINoteMessage
- type MIDIRawData
- type MixerDistanceParams
- type MusicDeviceComponent
- type MusicDeviceGroupID
- type MusicDeviceInstrumentID
- type MusicDeviceMIDIEventProc
- type MusicDeviceNoteParams
- type MusicDeviceStartNoteProc
- type MusicDeviceStdNoteParams
- type MusicDeviceStopNoteProc
- type MusicDeviceSysExProc
- type MusicEventIterator
- type MusicEventType
- type MusicEventUserData
- type MusicPlayer
- type MusicSequence
- type MusicSequenceFileFlags
- type MusicSequenceFileTypeID
- type MusicSequenceLoadFlags
- type MusicSequenceType
- type MusicSequenceUserCallback
- type MusicTimeStamp
- type MusicTrack
- type MusicTrackLoopInfo
- type NoteInstanceID
- type NoteParamsControlValue
- type ParameterEvent
- type ReadBytesFDF
- type ReadPacketDataFDF
- type ReadPacketsFDF
- type ScheduledAudioFileRegion
- type ScheduledAudioFileRegionCompletionProc
- type ScheduledAudioSlice
- type ScheduledAudioSliceCompletionProc
- type SetPropertyFDF
- type SetUserDataFDF
- type StringAUParameterNodeInt64Handler
- type StringVoidHandler
- type SystemSoundID
- type Uint32Uint32MIDICIProfileBoolHandler
- type Uint64Float32Handler
- type WriteBytesFDF
- type WritePacketsFDF
Constants ¶
const KAudioCodecPropertyMinimumDelayMode uint32 = 'm'<<24 | 'd'<<16 | 'e'<<8 | 'l' // 'mdel'
const KNumberOfResponseFrequencies uint32 = 1024
Variables ¶
var ( // See: https://developer.apple.com/documentation/AudioToolbox/kAudioComponentInstanceInvalidationNotification KAudioComponentInstanceInvalidationNotification string // See: https://developer.apple.com/documentation/AudioToolbox/kAudioComponentRegistrationsChangedNotification KAudioComponentRegistrationsChangedNotification string )
Functions ¶
func AUEventListenerAddEventType ¶
func AUEventListenerAddEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, inEvent *AudioUnitEvent) int32
AUEventListenerAddEventType.
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerAddEventType(_:_:_:)
func AUEventListenerCreate ¶
func AUEventListenerCreate(inProc AUEventListenerProc, inUserData unsafe.Pointer, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inNotificationInterval float32, inValueChangeGranularity float32, outListener *AUEventListenerRef) int32
AUEventListenerCreate.
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerCreate(_:_:_:_:_:_:_:)
func AUEventListenerCreateWithDispatchQueue ¶
func AUEventListenerCreateWithDispatchQueue(outListener *AUEventListenerRef, inNotificationInterval float32, inValueChangeGranularity float32, inDispatchQueue dispatch.Queue, inBlock AUEventListenerBlock) int32
AUEventListenerCreateWithDispatchQueue.
func AUEventListenerNotify ¶
func AUEventListenerNotify(inSendingListener AUEventListenerRef, inSendingObject unsafe.Pointer, inEvent *AudioUnitEvent) int32
AUEventListenerNotify.
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerNotify(_:_:_:)
func AUEventListenerRemoveEventType ¶
func AUEventListenerRemoveEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, inEvent *AudioUnitEvent) int32
AUEventListenerRemoveEventType.
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerRemoveEventType(_:_:_:)
func AUGraphAddNode
deprecated
func AUGraphAddNode(inGraph AUGraph, inDescription *AudioComponentDescription, outNode *AUNode) int32
AUGraphAddNode adds a node to an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphAddNode(_:_:_:)
func AUGraphAddRenderNotify
deprecated
func AUGraphAddRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) int32
AUGraphAddRenderNotify adds a render notification callback to an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphAddRenderNotify(_:_:_:)
func AUGraphClearConnections
deprecated
AUGraphClearConnections clears all of the interactions in an audio unit processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphClearConnections(_:)
func AUGraphClose
deprecated
AUGraphClose closes an audio unit processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphClose(_:)
func AUGraphConnectNodeInput
deprecated
func AUGraphConnectNodeInput(inGraph AUGraph, inSourceNode AUNode, inSourceOutputNumber uint32, inDestNode AUNode, inDestInputNumber uint32) int32
AUGraphConnectNodeInput connects one node’s output to another node’s input.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphConnectNodeInput(_:_:_:_:_:)
func AUGraphCountNodeConnections
deprecated
AUGraphCountNodeConnections deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphCountNodeConnections
func AUGraphCountNodeInteractions
deprecated
AUGraphCountNodeInteractions retrieves the number of interactions of an audio processing graph’s node.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphCountNodeInteractions(_:_:_:)
func AUGraphDisconnectNodeInput
deprecated
AUGraphDisconnectNodeInput disconnects a node’s input.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphDisconnectNodeInput(_:_:_:)
func AUGraphGetCPULoad
deprecated
AUGraphGetCPULoad obtains the short-term running average of the current CPU load of the audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetCPULoad(_:_:)
func AUGraphGetConnectionInfo
deprecated
func AUGraphGetConnectionInfo(inGraph AUGraph, inConnectionIndex uint32, outSourceNode *AUNode, outSourceOutputNumber *uint32, outDestNode *AUNode, outDestInputNumber *uint32) int32
AUGraphGetConnectionInfo deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetConnectionInfo
func AUGraphGetIndNode
deprecated
AUGraphGetIndNode gets the audio processing graph node at a given index.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetIndNode(_:_:_:)
func AUGraphGetInteractionInfo
deprecated
func AUGraphGetInteractionInfo(inGraph AUGraph, inInteractionIndex uint32, outInteraction *AUNodeInteraction) int32
AUGraphGetInteractionInfo retrieves information about a particular interaction in an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetInteractionInfo(_:_:_:)
func AUGraphGetMaxCPULoad
deprecated
AUGraphGetMaxCPULoad obtains the maximum CPU load of an audio processing graph since this call was last made or since the graph was last started.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetMaxCPULoad(_:_:)
func AUGraphGetNodeConnections
deprecated
func AUGraphGetNodeConnections(inGraph AUGraph, inNode AUNode, outConnections *AudioUnitNodeConnection, ioNumConnections *uint32) int32
AUGraphGetNodeConnections deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeConnections
func AUGraphGetNodeCount
deprecated
AUGraphGetNodeCount the number of nodes in an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeCount(_:_:)
func AUGraphGetNodeInfo
deprecated
func AUGraphGetNodeInfo(inGraph AUGraph, inNode AUNode, outDescription *coreservices.ComponentDescription, outClassDataSize *uint32, outClassData unsafe.Pointer, outAudioUnit *AudioUnit) int32
AUGraphGetNodeInfo deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeInfo
func AUGraphGetNodeInfoSubGraph
deprecated
AUGraphGetNodeInfoSubGraph gets the audio processing subgraph object represented by a node.
Deprecated: Deprecated since macOS 27.0. no longer supported
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeInfoSubGraph(_:_:_:)
func AUGraphGetNodeInteractions
deprecated
func AUGraphGetNodeInteractions(inGraph AUGraph, inNode AUNode, ioNumInteractions *uint32, outInteractions *AUNodeInteraction) int32
AUGraphGetNodeInteractions retrieves information about the interactions in an audio processing graph for a given node.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeInteractions(_:_:_:_:)
func AUGraphGetNumberOfConnections
deprecated
AUGraphGetNumberOfConnections deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNumberOfConnections
func AUGraphGetNumberOfInteractions
deprecated
AUGraphGetNumberOfInteractions retrieves the number of interactions for an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNumberOfInteractions(_:_:)
func AUGraphInitialize
deprecated
AUGraphInitialize initializes an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphInitialize(_:)
func AUGraphIsInitialized
deprecated
AUGraphIsInitialized determines whether an audio processing graph is initialized.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsInitialized(_:_:)
func AUGraphIsNodeSubGraph
deprecated
AUGraphIsNodeSubGraph determines whether a node object represent an audio processing graph or an audio unit.
Deprecated: Deprecated since macOS 27.0. no longer supported
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsNodeSubGraph(_:_:_:)
func AUGraphIsOpen
deprecated
AUGraphIsOpen determines whether an audio processing graph is open.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsOpen(_:_:)
func AUGraphIsRunning
deprecated
AUGraphIsRunning determines whether an audio processing graph running.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsRunning(_:_:)
func AUGraphNewNode
deprecated
func AUGraphNewNode(inGraph AUGraph, inDescription *coreservices.ComponentDescription, inClassDataSize uint32, inClassData unsafe.Pointer, outNode *AUNode) int32
AUGraphNewNode deprecated in OS X v10.5.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphNewNode
func AUGraphNewNodeSubGraph
deprecated
AUGraphNewNodeSubGraph creates a node object to represent a subgraph.
Deprecated: Deprecated since macOS 27.0. no longer supported
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphNewNodeSubGraph(_:_:)
func AUGraphNodeInfo
deprecated
func AUGraphNodeInfo(inGraph AUGraph, inNode AUNode, outDescription *AudioComponentDescription, outAudioUnit *AudioUnit) int32
AUGraphNodeInfo returns information about a node object.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphNodeInfo(_:_:_:_:)
func AUGraphOpen
deprecated
AUGraphOpen opens an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphOpen(_:)
func AUGraphRemoveNode
deprecated
AUGraphRemoveNode removes a node from an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphRemoveNode(_:_:)
func AUGraphRemoveRenderNotify
deprecated
func AUGraphRemoveRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) int32
AUGraphRemoveRenderNotify removes a notification callback from an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphRemoveRenderNotify(_:_:_:)
func AUGraphSetNodeInputCallback
deprecated
func AUGraphSetNodeInputCallback(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32, inInputCallback *AURenderCallbackStruct) int32
AUGraphSetNodeInputCallback sets an input callback function for a node.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphSetNodeInputCallback(_:_:_:_:)
func AUGraphStart
deprecated
AUGraphStart starts an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphStart(_:)
func AUGraphStop
deprecated
AUGraphStop stops an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphStop(_:)
func AUGraphUninitialize
deprecated
AUGraphUninitialize uninitializes an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphUninitialize(_:)
func AUGraphUpdate
deprecated
AUGraphUpdate updates the state of a running audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/AUGraphUpdate(_:_:)
func AUListenerAddParameter ¶
func AUListenerAddParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, inParameter *AudioUnitParameter) int32
AUListenerAddParameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUListenerAddParameter(_:_:_:)
func AUListenerCreate ¶
func AUListenerCreate(inProc AUParameterListenerProc, inUserData unsafe.Pointer, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inNotificationInterval float32, outListener *AUParameterListenerRef) int32
AUListenerCreate.
See: https://developer.apple.com/documentation/AudioToolbox/AUListenerCreate(_:_:_:_:_:_:)
func AUListenerCreateWithDispatchQueue ¶
func AUListenerCreateWithDispatchQueue(outListener *AUParameterListenerRef, inNotificationInterval float32, inDispatchQueue dispatch.Queue, inBlock AUParameterListenerBlock) int32
AUListenerCreateWithDispatchQueue.
See: https://developer.apple.com/documentation/AudioToolbox/AUListenerCreateWithDispatchQueue(_:_:_:_:)
func AUListenerDispose ¶
func AUListenerDispose(inListener AUParameterListenerRef) int32
AUListenerDispose.
See: https://developer.apple.com/documentation/AudioToolbox/AUListenerDispose(_:)
func AUListenerRemoveParameter ¶
func AUListenerRemoveParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, inParameter *AudioUnitParameter) int32
AUListenerRemoveParameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUListenerRemoveParameter(_:_:_:)
func AUParameterFormatValue ¶
func AUParameterFormatValue(inParameterValue float64, inParameter *AudioUnitParameter, inTextBuffer *byte, inDigits uint32) *byte
AUParameterFormatValue.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterFormatValue(_:_:_:_:)
func AUParameterListenerNotify ¶
func AUParameterListenerNotify(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter) int32
AUParameterListenerNotify.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterListenerNotify(_:_:_:)
func AUParameterSet ¶
func AUParameterSet(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter, inValue AudioUnitParameterValue, inBufferOffsetInFrames uint32) int32
AUParameterSet.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterSet(_:_:_:_:_:)
func AUParameterValueToLinear ¶
func AUParameterValueToLinear(inParameterValue AudioUnitParameterValue, inParameter *AudioUnitParameter) float32
AUParameterValueToLinear.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterValueToLinear(_:_:)
func AudioCodecAppendInputBufferList ¶
func AudioCodecAppendInputBufferList(inCodec AudioCodec, inBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint32, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outBytesConsumed *uint32) int32
AudioCodecAppendInputBufferList.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecAppendInputBufferList(_:_:_:_:_:)
func AudioCodecAppendInputData ¶
func AudioCodecAppendInputData(inCodec AudioCodec, inInputData unsafe.Pointer, ioInputDataByteSize *uint32, ioNumberPackets *uint32, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int32
AudioCodecAppendInputData appends audio data to the codec’s input buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecAppendInputData(_:_:_:_:_:)
func AudioCodecGetProperty ¶
func AudioCodecGetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioCodecGetProperty retrieves the value of a codec property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecGetProperty(_:_:_:_:)
func AudioCodecGetPropertyInfo ¶
func AudioCodecGetPropertyInfo(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, outSize *uint32, outWritable *bool) int32
AudioCodecGetPropertyInfo retrieves information about a codec property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecGetPropertyInfo(_:_:_:_:)
func AudioCodecInitialize ¶
func AudioCodecInitialize(inCodec AudioCodec, inInputFormat *coreaudiotypes.AudioStreamBasicDescription, inOutputFormat *coreaudiotypes.AudioStreamBasicDescription, inMagicCookie unsafe.Pointer, inMagicCookieByteSize uint32) int32
AudioCodecInitialize sets up the specified codec to perform a data format translation.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecInitialize(_:_:_:_:_:)
func AudioCodecProduceOutputBufferList ¶
func AudioCodecProduceOutputBufferList(inCodec AudioCodec, ioBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint32, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint32) int32
AudioCodecProduceOutputBufferList.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecProduceOutputBufferList(_:_:_:_:_:)
func AudioCodecProduceOutputPackets ¶
func AudioCodecProduceOutputPackets(inCodec AudioCodec, outOutputData unsafe.Pointer, ioOutputDataByteSize *uint32, ioNumberPackets *uint32, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint32) int32
AudioCodecProduceOutputPackets retrieves output data from a codec.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecProduceOutputPackets(_:_:_:_:_:_:)
func AudioCodecReset ¶
func AudioCodecReset(inCodec AudioCodec) int32
AudioCodecReset flushes all the audio data in the codec and clears the input buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecReset(_:)
func AudioCodecSetProperty ¶
func AudioCodecSetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioCodecSetProperty sets the value of a codec property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecSetProperty(_:_:_:_:)
func AudioCodecUninitialize ¶
func AudioCodecUninitialize(inCodec AudioCodec) int32
AudioCodecUninitialize moves the codec from the initialized state back to the uninitialized state.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecUninitialize(_:)
func AudioComponentCopyConfigurationInfo ¶
func AudioComponentCopyConfigurationInfo(inComponent AudioComponent, outConfigurationInfo *corefoundation.CFDictionaryRef) int32
AudioComponentCopyConfigurationInfo.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentCopyConfigurationInfo(_:_:)
func AudioComponentCopyIcon ¶
func AudioComponentCopyIcon(comp AudioComponent) *objc.ID
AudioComponentCopyIcon.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentCopyIcon(_:)
func AudioComponentCopyName ¶
func AudioComponentCopyName(inComponent AudioComponent, outName *corefoundation.CFStringRef) int32
AudioComponentCopyName returns the generic name of an audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentCopyName(_:_:)
func AudioComponentCount ¶
func AudioComponentCount(inDesc *AudioComponentDescription) uint32
AudioComponentCount returns the number of audio components that match a specified AudioComponentDescription structure.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentCount(_:)
func AudioComponentGetDescription ¶
func AudioComponentGetDescription(inComponent AudioComponent, outDesc *AudioComponentDescription) int32
AudioComponentGetDescription gets the class description, as an AudioComponentDescription structure, of an audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentGetDescription(_:_:)
func AudioComponentGetIcon
deprecated
func AudioComponentGetIcon(comp AudioComponent) *objc.ID
AudioComponentGetIcon the UIImage of the audio component’s icon.
Deprecated: Deprecated since macOS 11.0.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentGetIcon(_:_:)
func AudioComponentGetVersion ¶
func AudioComponentGetVersion(inComponent AudioComponent, outVersion *uint32) int32
AudioComponentGetVersion gets the version of an audio component in hexadecimal form as `0xMMMMmmDD` (major, minor, dot).
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentGetVersion(_:_:)
func AudioComponentInstanceCanDo ¶
func AudioComponentInstanceCanDo(inInstance AudioComponentInstance, inSelectorID int16) bool
AudioComponentInstanceCanDo determines if an audio component instance implements a particular function.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceCanDo(_:_:)
func AudioComponentInstanceDispose ¶
func AudioComponentInstanceDispose(inInstance AudioComponentInstance) int32
AudioComponentInstanceDispose disposes of an audio component instance.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceDispose(_:)
func AudioComponentInstanceNew ¶
func AudioComponentInstanceNew(inComponent AudioComponent, outInstance *AudioComponentInstance) int32
AudioComponentInstanceNew creates a new instance of an audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceNew(_:_:)
func AudioComponentInstantiate ¶
func AudioComponentInstantiate(inComponent AudioComponent, inOptions AudioComponentInstantiationOptions)
AudioComponentInstantiate.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstantiate(_:_:_:)
func AudioComponentValidate ¶
func AudioComponentValidate(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef, outValidationResult *AudioComponentValidationResult) int32
AudioComponentValidate.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentValidate(_:_:_:)
func AudioComponentValidateWithResults ¶
func AudioComponentValidateWithResults(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef) int32
AudioComponentValidateWithResults.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentValidateWithResults(_:_:_:)
func AudioConverterConvertBuffer ¶
func AudioConverterConvertBuffer(inAudioConverter AudioConverterRef, inInputDataSize uint32, inInputData unsafe.Pointer, ioOutputDataSize *uint32, outOutputData unsafe.Pointer) int32
AudioConverterConvertBuffer converts audio data from one linear PCM format to another.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterConvertBuffer(_:_:_:_:_:)
func AudioConverterConvertComplexBuffer ¶
func AudioConverterConvertComplexBuffer(inAudioConverter AudioConverterRef, inNumberPCMFrames uint32, inInputData *coreaudiotypes.AudioBufferList, outOutputData *coreaudiotypes.AudioBufferList) int32
AudioConverterConvertComplexBuffer converts audio data from one linear PCM format to another, where both use the same sample rate.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterConvertComplexBuffer(_:_:_:_:)
func AudioConverterDispose ¶
func AudioConverterDispose(inAudioConverter AudioConverterRef) int32
AudioConverterDispose disposes of an audio converter object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterDispose(_:)
func AudioConverterFillComplexBuffer ¶
func AudioConverterFillComplexBuffer(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int32
AudioConverterFillComplexBuffer converts audio data supplied by a callback function, supporting non-interleaved and packetized formats.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterFillComplexBuffer(_:_:_:_:_:_:)
func AudioConverterFillComplexBufferRealtimeSafe ¶
func AudioConverterFillComplexBufferRealtimeSafe(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProcRealtimeSafe, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) int32
AudioConverterFillComplexBufferRealtimeSafe.
func AudioConverterFillComplexBufferWithPacketDependencies ¶
func AudioConverterFillComplexBufferWithPacketDependencies(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, outPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription) int32
AudioConverterFillComplexBufferWithPacketDependencies.
func AudioConverterGetProperty ¶
func AudioConverterGetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioConverterGetProperty gets an audio converter property value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterGetProperty(_:_:_:_:)
func AudioConverterGetPropertyInfo ¶
func AudioConverterGetPropertyInfo(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, outSize *uint32, outWritable *bool) int32
AudioConverterGetPropertyInfo gets information about an audio converter property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterGetPropertyInfo(_:_:_:_:)
func AudioConverterNew ¶
func AudioConverterNew(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, outAudioConverter *AudioConverterRef) int32
AudioConverterNew creates a new audio converter object based on specified audio formats.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterNew(_:_:_:)
func AudioConverterNewSpecific ¶
func AudioConverterNewSpecific(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inNumberClassDescriptions uint32, inClassDescriptions *coreaudiotypes.AudioClassDescription, outAudioConverter *AudioConverterRef) int32
AudioConverterNewSpecific creates a new audio converter object using a specified codec.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterNewSpecific(_:_:_:_:_:)
func AudioConverterNewWithOptions ¶
func AudioConverterNewWithOptions(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inOptions AudioConverterOptions, outAudioConverter *AudioConverterRef) int32
AudioConverterNewWithOptions.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterNewWithOptions(_:_:_:_:)
func AudioConverterPrepare ¶
AudioConverterPrepare.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterPrepare(_:_:_:)
func AudioConverterReset ¶
func AudioConverterReset(inAudioConverter AudioConverterRef) int32
AudioConverterReset resets an audio converter object, clearing and flushing its buffers.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterReset(_:)
func AudioConverterSetProperty ¶
func AudioConverterSetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioConverterSetProperty sets the value of an audio converter object property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterSetProperty(_:_:_:_:)
func AudioFileClose ¶
func AudioFileClose(inAudioFile AudioFileID) int32
AudioFileClose closes an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileClose(_:)
func AudioFileComponentCloseFile ¶
func AudioFileComponentCloseFile(inComponent AudioFileComponent) int32
AudioFileComponentCloseFile.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCloseFile(_:)
func AudioFileComponentCountUserData ¶
func AudioFileComponentCountUserData(inComponent AudioFileComponent, inUserDataID uint32, outNumberItems *uint32) int32
AudioFileComponentCountUserData.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCountUserData(_:_:_:)
func AudioFileComponentCreate
deprecated
func AudioFileComponentCreate(inComponent AudioFileComponent, inParentRef *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, outNewFileRef *coreservices.FSRef) int32
AudioFileComponentCreate.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCreate
func AudioFileComponentCreateURL ¶
func AudioFileComponentCreateURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32) int32
AudioFileComponentCreateURL.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCreateURL(_:_:_:_:)
func AudioFileComponentDataIsThisFormat
deprecated
func AudioFileComponentDataIsThisFormat(inComponent AudioFileComponent, inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, outResult *uint32) int32
AudioFileComponentDataIsThisFormat.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentDataIsThisFormat
func AudioFileComponentExtensionIsThisFormat ¶
func AudioFileComponentExtensionIsThisFormat(inComponent AudioFileComponent, inExtension corefoundation.CFStringRef, outResult *uint32) int32
AudioFileComponentExtensionIsThisFormat.
func AudioFileComponentFileDataIsThisFormat ¶
func AudioFileComponentFileDataIsThisFormat(inComponent AudioFileComponent, inDataByteSize uint32, inData unsafe.Pointer, outResult *uint32) int32
AudioFileComponentFileDataIsThisFormat.
func AudioFileComponentFileIsThisFormat
deprecated
func AudioFileComponentFileIsThisFormat(inComponent AudioFileComponent, inFileRefNum int16, outResult *uint32) int32
AudioFileComponentFileIsThisFormat.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentFileIsThisFormat
func AudioFileComponentGetGlobalInfo ¶
func AudioFileComponentGetGlobalInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFileComponentGetGlobalInfo.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetGlobalInfo(_:_:_:_:_:_:)
func AudioFileComponentGetGlobalInfoSize ¶
func AudioFileComponentGetGlobalInfoSize(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertySize *uint32) int32
AudioFileComponentGetGlobalInfoSize.
func AudioFileComponentGetProperty ¶
func AudioFileComponentGetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFileComponentGetProperty.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetProperty(_:_:_:_:)
func AudioFileComponentGetPropertyInfo ¶
func AudioFileComponentGetPropertyInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, outPropertySize *uint32, outWritable *uint32) int32
AudioFileComponentGetPropertyInfo.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetPropertyInfo(_:_:_:_:)
func AudioFileComponentGetUserData ¶
func AudioFileComponentGetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ioUserDataSize *uint32, outUserData unsafe.Pointer) int32
AudioFileComponentGetUserData.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserData(_:_:_:_:_:)
func AudioFileComponentGetUserDataAtOffset ¶
func AudioFileComponentGetUserDataAtOffset(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, inOffset int64, ioUserDataSize *uint32, outUserData unsafe.Pointer) int32
AudioFileComponentGetUserDataAtOffset.
func AudioFileComponentGetUserDataSize ¶
func AudioFileComponentGetUserDataSize(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint32) int32
AudioFileComponentGetUserDataSize.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataSize(_:_:_:_:)
func AudioFileComponentGetUserDataSize64 ¶
func AudioFileComponentGetUserDataSize64(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint64) int32
AudioFileComponentGetUserDataSize64.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataSize64(_:_:_:_:)
func AudioFileComponentInitialize
deprecated
func AudioFileComponentInitialize(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32) int32
AudioFileComponentInitialize.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentInitialize
func AudioFileComponentInitializeWithCallbacks ¶
func AudioFileComponentInitializeWithCallbacks(inComponent AudioFileComponent, inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, inFileType uint32, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32) int32
AudioFileComponentInitializeWithCallbacks.
func AudioFileComponentOpenFile
deprecated
func AudioFileComponentOpenFile(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, inPermissions int8, inRefNum int16) int32
AudioFileComponentOpenFile.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOpenFile
func AudioFileComponentOpenURL ¶
func AudioFileComponentOpenURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, inPermissions int8, inFileDescriptor int32) int32
AudioFileComponentOpenURL.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOpenURL(_:_:_:_:)
func AudioFileComponentOpenWithCallbacks ¶
func AudioFileComponentOpenWithCallbacks(inComponent AudioFileComponent, inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc) int32
AudioFileComponentOpenWithCallbacks.
func AudioFileComponentOptimize ¶
func AudioFileComponentOptimize(inComponent AudioFileComponent) int32
AudioFileComponentOptimize.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOptimize(_:)
func AudioFileComponentReadBytes ¶
func AudioFileComponentReadBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, outBuffer unsafe.Pointer) int32
AudioFileComponentReadBytes.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadBytes(_:_:_:_:_:)
func AudioFileComponentReadPacketData ¶
func AudioFileComponentReadPacketData(inComponent AudioFileComponent, inUseCache bool, ioNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) int32
AudioFileComponentReadPacketData.
func AudioFileComponentReadPackets ¶
func AudioFileComponentReadPackets(inComponent AudioFileComponent, inUseCache bool, outNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) int32
AudioFileComponentReadPackets.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadPackets(_:_:_:_:_:_:_:)
func AudioFileComponentRemoveUserData ¶
func AudioFileComponentRemoveUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32) int32
AudioFileComponentRemoveUserData.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentRemoveUserData(_:_:_:)
func AudioFileComponentSetProperty ¶
func AudioFileComponentSetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioFileComponentSetProperty.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentSetProperty(_:_:_:_:)
func AudioFileComponentSetUserData ¶
func AudioFileComponentSetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, inUserDataSize uint32, inUserData unsafe.Pointer) int32
AudioFileComponentSetUserData.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentSetUserData(_:_:_:_:_:)
func AudioFileComponentWriteBytes ¶
func AudioFileComponentWriteBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, inBuffer unsafe.Pointer) int32
AudioFileComponentWriteBytes.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentWriteBytes(_:_:_:_:_:)
func AudioFileComponentWritePackets ¶
func AudioFileComponentWritePackets(inComponent AudioFileComponent, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) int32
AudioFileComponentWritePackets.
func AudioFileCountUserData ¶
func AudioFileCountUserData(inAudioFile AudioFileID, inUserDataID uint32, outNumberItems *uint32) int32
AudioFileCountUserData gets the number of user data items with a specified ID in a file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileCountUserData(_:_:_:)
func AudioFileCreateWithURL ¶
func AudioFileCreateWithURL(inFileRef corefoundation.CFURLRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile *AudioFileID) int32
AudioFileCreateWithURL creates a new audio file, or initializes an existing file, specified by a URL.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileCreateWithURL(_:_:_:_:_:)
func AudioFileGetGlobalInfo ¶
func AudioFileGetGlobalInfo(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFileGetGlobalInfo copies the value of a global property into a buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetGlobalInfo(_:_:_:_:_:)
func AudioFileGetGlobalInfoSize ¶
func AudioFileGetGlobalInfoSize(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outDataSize *uint32) int32
AudioFileGetGlobalInfoSize gets the size of a global audio file property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetGlobalInfoSize(_:_:_:_:)
func AudioFileGetProperty ¶
func AudioFileGetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, ioDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFileGetProperty gets the value of an audio file property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetProperty(_:_:_:_:)
func AudioFileGetPropertyInfo ¶
func AudioFileGetPropertyInfo(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, outDataSize *uint32, isWritable *uint32) int32
AudioFileGetPropertyInfo gets information about an audio file property, including the size of the property value and whether the value is writable.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetPropertyInfo(_:_:_:_:)
func AudioFileGetUserData ¶
func AudioFileGetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ioUserDataSize *uint32, outUserData unsafe.Pointer) int32
AudioFileGetUserData gets a chunk from an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetUserData(_:_:_:_:_:)
func AudioFileGetUserDataAtOffset ¶
func AudioFileGetUserDataAtOffset(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, inOffset int64, ioUserDataSize *uint32, outUserData unsafe.Pointer) int32
AudioFileGetUserDataAtOffset gets part of the data from a chunk in an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetUserDataAtOffset(_:_:_:_:_:_:)
func AudioFileGetUserDataSize ¶
func AudioFileGetUserDataSize(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, outUserDataSize *uint32) int32
AudioFileGetUserDataSize gets the size of a user data item in an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetUserDataSize(_:_:_:_:)
func AudioFileGetUserDataSize64 ¶
func AudioFileGetUserDataSize64(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, outUserDataSize *uint64) int32
AudioFileGetUserDataSize64 gets the size of a user data item in an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetUserDataSize64(_:_:_:_:)
func AudioFileInitializeWithCallbacks ¶
func AudioFileInitializeWithCallbacks(inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile *AudioFileID) int32
AudioFileInitializeWithCallbacks deletes the content of an existing file and assigns callbacks to the audio file object.
func AudioFileOpenURL ¶
func AudioFileOpenURL(inFileRef corefoundation.CFURLRef, inPermissions AudioFilePermissions, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) int32
AudioFileOpenURL open an existing audio file specified by a URL.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileOpenURL(_:_:_:_:)
func AudioFileOpenWithCallbacks ¶
func AudioFileOpenWithCallbacks(inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) int32
AudioFileOpenWithCallbacks opens an existing file with callbacks you provide.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileOpenWithCallbacks(_:_:_:_:_:_:_:)
func AudioFileOptimize ¶
func AudioFileOptimize(inAudioFile AudioFileID) int32
AudioFileOptimize consolidates audio data and performs other internal optimizations of the file structure.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileOptimize(_:)
func AudioFileReadBytes ¶
func AudioFileReadBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, outBuffer unsafe.Pointer) int32
AudioFileReadBytes reads bytes of audio data from an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileReadBytes(_:_:_:_:_:)
func AudioFileReadPacketData ¶
func AudioFileReadPacketData(inAudioFile AudioFileID, inUseCache bool, ioNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) int32
AudioFileReadPacketData reads packets of audio data from an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileReadPacketData(_:_:_:_:_:_:_:)
func AudioFileRemoveUserData ¶
func AudioFileRemoveUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32) int32
AudioFileRemoveUserData removes a user data item from an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileRemoveUserData(_:_:_:)
func AudioFileSetProperty ¶
func AudioFileSetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, inDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioFileSetProperty sets the value of an audio file property
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileSetProperty(_:_:_:_:)
func AudioFileSetUserData ¶
func AudioFileSetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, inUserDataSize uint32, inUserData unsafe.Pointer) int32
AudioFileSetUserData sets a user data item in an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileSetUserData(_:_:_:_:_:)
func AudioFileStreamClose ¶
func AudioFileStreamClose(inAudioFileStream AudioFileStreamID) int32
AudioFileStreamClose closes and deallocates the specified audio file stream parser.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamClose(_:)
func AudioFileStreamGetProperty ¶
func AudioFileStreamGetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFileStreamGetProperty retrieves the value of the specified property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamGetProperty(_:_:_:_:)
func AudioFileStreamGetPropertyInfo ¶
func AudioFileStreamGetPropertyInfo(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, outPropertyDataSize *uint32, outWritable *bool) int32
AudioFileStreamGetPropertyInfo retrieves information about a property value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamGetPropertyInfo(_:_:_:_:)
func AudioFileStreamOpen ¶
func AudioFileStreamOpen(inClientData unsafe.Pointer, inPropertyListenerProc AudioFileStream_PropertyListenerProc, inPacketsProc AudioFileStream_PacketsProc, inFileTypeHint AudioFileTypeID, outAudioFileStream *AudioFileStreamID) int32
AudioFileStreamOpen creates and opens a new audio file stream parser.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamOpen(_:_:_:_:_:)
func AudioFileStreamParseBytes ¶
func AudioFileStreamParseBytes(inAudioFileStream AudioFileStreamID, inDataByteSize uint32, inData unsafe.Pointer, inFlags AudioFileStreamParseFlags) int32
AudioFileStreamParseBytes passes audio file stream data to the parser.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamParseBytes(_:_:_:_:)
func AudioFileStreamSeek ¶
func AudioFileStreamSeek(inAudioFileStream AudioFileStreamID, inPacketOffset int64, outDataByteOffset *int64, ioFlags *AudioFileStreamSeekFlags) int32
AudioFileStreamSeek provides a byte offset for a specified packet in the data stream.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamSeek(_:_:_:_:)
func AudioFileStreamSetProperty ¶
func AudioFileStreamSetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioFileStreamSetProperty sets the value of the specified property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamSetProperty(_:_:_:_:)
func AudioFileWriteBytes ¶
func AudioFileWriteBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, inBuffer unsafe.Pointer) int32
AudioFileWriteBytes writes bytes of audio data to an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileWriteBytes(_:_:_:_:_:)
func AudioFileWritePackets ¶
func AudioFileWritePackets(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) int32
AudioFileWritePackets writes packets of audio data to an audio data file.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileWritePackets(_:_:_:_:_:_:_:)
func AudioFileWritePacketsWithDependencies ¶
func AudioFileWritePacketsWithDependencies(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) int32
AudioFileWritePacketsWithDependencies.
func AudioFormatGetProperty ¶
func AudioFormatGetProperty(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioFormatGetProperty gets the value of an audio format property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFormatGetProperty(_:_:_:_:_:)
func AudioFormatGetPropertyInfo ¶
func AudioFormatGetPropertyInfo(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertyDataSize *uint32) int32
AudioFormatGetPropertyInfo gets information about an audio format property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFormatGetPropertyInfo(_:_:_:_:)
func AudioOutputUnitStart ¶
AudioOutputUnitStart starts an I/O audio unit, which in turn starts the audio unit processing graph that it is connected to.
See: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStart(_:)
func AudioOutputUnitStop ¶
AudioOutputUnitStop stops an I/O audio unit, which in turn stops the audio unit processing graph that it is connected to.
See: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStop(_:)
func AudioQueueAddPropertyListener ¶
func AudioQueueAddPropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, inProc AudioQueuePropertyListenerProc, inUserData unsafe.Pointer) int32
AudioQueueAddPropertyListener adds a property listener callback to an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueAddPropertyListener(_:_:_:_:)
func AudioQueueAllocateBuffer ¶
func AudioQueueAllocateBuffer(inAQ AudioQueueRef, inBufferByteSize uint32, outBuffer *AudioQueueBufferRef) int32
AudioQueueAllocateBuffer asks an audio queue object to allocate an audio queue buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueAllocateBuffer(_:_:_:)
func AudioQueueAllocateBufferWithPacketDescriptions ¶
func AudioQueueAllocateBufferWithPacketDescriptions(inAQ AudioQueueRef, inBufferByteSize uint32, inNumberPacketDescriptions uint32, outBuffer *AudioQueueBufferRef) int32
AudioQueueAllocateBufferWithPacketDescriptions asks an audio queue object to allocate an audio queue buffer with space for packet descriptions.
func AudioQueueCreateTimeline ¶
func AudioQueueCreateTimeline(inAQ AudioQueueRef, outTimeline *AudioQueueTimelineRef) int32
AudioQueueCreateTimeline creates a timeline object for an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueCreateTimeline(_:_:)
func AudioQueueDeviceGetCurrentTime ¶
func AudioQueueDeviceGetCurrentTime(inAQ AudioQueueRef, outTimeStamp *coreaudiotypes.AudioTimeStamp) int32
AudioQueueDeviceGetCurrentTime gets the current time of the audio hardware device associated with an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDeviceGetCurrentTime(_:_:)
func AudioQueueDeviceGetNearestStartTime ¶
func AudioQueueDeviceGetNearestStartTime(inAQ AudioQueueRef, ioRequestedStartTime *coreaudiotypes.AudioTimeStamp, inFlags uint32) int32
AudioQueueDeviceGetNearestStartTime gets the start time, for an audio hardware device, that is closest to a requested start time.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDeviceGetNearestStartTime(_:_:_:)
func AudioQueueDeviceTranslateTime ¶
func AudioQueueDeviceTranslateTime(inAQ AudioQueueRef, inTime *coreaudiotypes.AudioTimeStamp, outTime *coreaudiotypes.AudioTimeStamp) int32
AudioQueueDeviceTranslateTime converts the time for an audio queue’s associated audio hardware device from one time base representation to another.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDeviceTranslateTime(_:_:_:)
func AudioQueueDispose ¶
func AudioQueueDispose(inAQ AudioQueueRef, inImmediate bool) int32
AudioQueueDispose disposes of an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDispose(_:_:)
func AudioQueueDisposeTimeline ¶
func AudioQueueDisposeTimeline(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef) int32
AudioQueueDisposeTimeline disposes of an audio queue’s timeline object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDisposeTimeline(_:_:)
func AudioQueueEnqueueBuffer ¶
func AudioQueueEnqueueBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription) int32
AudioQueueEnqueueBuffer adds a buffer to the buffer queue of a recording or playback audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueEnqueueBuffer(_:_:_:_:)
func AudioQueueEnqueueBufferWithParameters ¶
func AudioQueueEnqueueBufferWithParameters(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription, inTrimFramesAtStart uint32, inTrimFramesAtEnd uint32, inNumParamValues uint32, inParamValues *AudioQueueParameterEvent, inStartTime *coreaudiotypes.AudioTimeStamp, outActualStartTime *coreaudiotypes.AudioTimeStamp) int32
AudioQueueEnqueueBufferWithParameters adds a buffer to the buffer queue of a playback audio queue object, specifying start time and other settings.
func AudioQueueFlush ¶
func AudioQueueFlush(inAQ AudioQueueRef) int32
AudioQueueFlush resets an audio queue’s decoder state.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueFlush(_:)
func AudioQueueFreeBuffer ¶
func AudioQueueFreeBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef) int32
AudioQueueFreeBuffer asks an audio queue to dispose of an audio queue buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueFreeBuffer(_:_:)
func AudioQueueGetCurrentTime ¶
func AudioQueueGetCurrentTime(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef, outTimeStamp *coreaudiotypes.AudioTimeStamp, outTimelineDiscontinuity *bool) int32
AudioQueueGetCurrentTime gets the current audio queue time.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueGetCurrentTime(_:_:_:_:)
func AudioQueueGetParameter ¶
func AudioQueueGetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, outValue *AudioQueueParameterValue) int32
AudioQueueGetParameter gets an audio queue parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueGetParameter(_:_:_:)
func AudioQueueGetProperty ¶
func AudioQueueGetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, outData unsafe.Pointer, ioDataSize *uint32) int32
AudioQueueGetProperty gets an audio queue property value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueGetProperty(_:_:_:_:)
func AudioQueueGetPropertySize ¶
func AudioQueueGetPropertySize(inAQ AudioQueueRef, inID AudioQueuePropertyID, outDataSize *uint32) int32
AudioQueueGetPropertySize gets the size of the value of an audio queue property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueGetPropertySize(_:_:_:)
func AudioQueueNewInput ¶
func AudioQueueNewInput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc AudioQueueInputCallback, inUserData unsafe.Pointer, inCallbackRunLoop corefoundation.CFRunLoopRef, inCallbackRunLoopMode corefoundation.CFStringRef, inFlags uint32, outAQ *AudioQueueRef) int32
AudioQueueNewInput creates a new recording audio queue object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueNewInput(_:_:_:_:_:_:_:)
func AudioQueueNewInputWithDispatchQueue ¶
func AudioQueueNewInputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, inCallbackDispatchQueue dispatch.Queue, inCallbackBlock AudioQueueInputCallbackBlock) int32
AudioQueueNewInputWithDispatchQueue.
func AudioQueueNewOutput ¶
func AudioQueueNewOutput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc AudioQueueOutputCallback, inUserData unsafe.Pointer, inCallbackRunLoop corefoundation.CFRunLoopRef, inCallbackRunLoopMode corefoundation.CFStringRef, inFlags uint32, outAQ *AudioQueueRef) int32
AudioQueueNewOutput creates a new playback audio queue object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueNewOutput(_:_:_:_:_:_:_:)
func AudioQueueNewOutputWithDispatchQueue ¶
func AudioQueueNewOutputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, inCallbackDispatchQueue dispatch.Queue, inCallbackBlock AudioQueueOutputCallbackBlock) int32
AudioQueueNewOutputWithDispatchQueue.
func AudioQueueOfflineRender ¶
func AudioQueueOfflineRender(inAQ AudioQueueRef, inTimestamp *coreaudiotypes.AudioTimeStamp, ioBuffer AudioQueueBufferRef, inNumberFrames uint32) int32
AudioQueueOfflineRender exports audio to a buffer, instead of to a device, using a playback audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueOfflineRender(_:_:_:_:)
func AudioQueuePause ¶
func AudioQueuePause(inAQ AudioQueueRef) int32
AudioQueuePause pauses audio playback or recording.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePause(_:)
func AudioQueuePrime ¶
func AudioQueuePrime(inAQ AudioQueueRef, inNumberOfFramesToPrepare uint32, outNumberOfFramesPrepared *uint32) int32
AudioQueuePrime decodes enqueued buffers in preparation for playback.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePrime(_:_:_:)
func AudioQueueProcessingTapDispose ¶
func AudioQueueProcessingTapDispose(inAQTap AudioQueueProcessingTapRef) int32
AudioQueueProcessingTapDispose.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapDispose(_:)
func AudioQueueProcessingTapGetQueueTime ¶
func AudioQueueProcessingTapGetQueueTime(inAQTap AudioQueueProcessingTapRef, outQueueSampleTime *float64, outQueueFrameCount *uint32) int32
AudioQueueProcessingTapGetQueueTime.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapGetQueueTime(_:_:_:)
func AudioQueueProcessingTapGetSourceAudio ¶
func AudioQueueProcessingTapGetSourceAudio(inAQTap AudioQueueProcessingTapRef, inNumberFrames uint32, ioTimeStamp *coreaudiotypes.AudioTimeStamp, outFlags *AudioQueueProcessingTapFlags, outNumberFrames *uint32, ioData *coreaudiotypes.AudioBufferList) int32
AudioQueueProcessingTapGetSourceAudio.
func AudioQueueProcessingTapNew ¶
func AudioQueueProcessingTapNew(inAQ AudioQueueRef, inCallback AudioQueueProcessingTapCallback, inClientData unsafe.Pointer, inFlags AudioQueueProcessingTapFlags, outMaxFrames *uint32, outProcessingFormat *coreaudiotypes.AudioStreamBasicDescription, outAQTap *AudioQueueProcessingTapRef) int32
AudioQueueProcessingTapNew.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapNew(_:_:_:_:_:_:_:)
func AudioQueueRemovePropertyListener ¶
func AudioQueueRemovePropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, inProc AudioQueuePropertyListenerProc, inUserData unsafe.Pointer) int32
AudioQueueRemovePropertyListener removes a property listener callback from an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueRemovePropertyListener(_:_:_:_:)
func AudioQueueReset ¶
func AudioQueueReset(inAQ AudioQueueRef) int32
AudioQueueReset resets an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueReset(_:)
func AudioQueueSetOfflineRenderFormat ¶
func AudioQueueSetOfflineRenderFormat(inAQ AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inLayout *coreaudiotypes.AudioChannelLayout) int32
AudioQueueSetOfflineRenderFormat sets the rendering mode and audio format for a playback audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueSetOfflineRenderFormat(_:_:_:)
func AudioQueueSetParameter ¶
func AudioQueueSetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, inValue AudioQueueParameterValue) int32
AudioQueueSetParameter sets a playback audio queue parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueSetParameter(_:_:_:)
func AudioQueueSetProperty ¶
func AudioQueueSetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, inData unsafe.Pointer, inDataSize uint32) int32
AudioQueueSetProperty sets an audio queue property value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueSetProperty(_:_:_:_:)
func AudioQueueStart ¶
func AudioQueueStart(inAQ AudioQueueRef, inStartTime *coreaudiotypes.AudioTimeStamp) int32
AudioQueueStart begins playing or recording audio.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueStart(_:_:)
func AudioQueueStop ¶
func AudioQueueStop(inAQ AudioQueueRef, inImmediate bool) int32
AudioQueueStop stops playing or recording audio.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueStop(_:_:)
func AudioServicesAddSystemSoundCompletion ¶
func AudioServicesAddSystemSoundCompletion(inSystemSoundID SystemSoundID, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inCompletionRoutine AudioServicesSystemSoundCompletionProc, inClientData unsafe.Pointer) int32
AudioServicesAddSystemSoundCompletion registers a callback function that is invoked when a specified system sound finishes playing.
func AudioServicesCreateSystemSoundID ¶
func AudioServicesCreateSystemSoundID(inFileURL corefoundation.CFURLRef, outSystemSoundID *SystemSoundID) int32
AudioServicesCreateSystemSoundID creates a system sound object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesCreateSystemSoundID(_:_:)
func AudioServicesDisposeSystemSoundID ¶
func AudioServicesDisposeSystemSoundID(inSystemSoundID SystemSoundID) int32
AudioServicesDisposeSystemSoundID disposes of a system sound object and associated resources.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesDisposeSystemSoundID(_:)
func AudioServicesGetProperty ¶
func AudioServicesGetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
AudioServicesGetProperty gets a specified System Sound Services property value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesGetProperty(_:_:_:_:_:)
func AudioServicesGetPropertyInfo ¶
func AudioServicesGetPropertyInfo(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertyDataSize *uint32, outWritable *bool) int32
AudioServicesGetPropertyInfo gets information about a System Sound Services property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesGetPropertyInfo(_:_:_:_:_:)
func AudioServicesPlayAlertSound ¶
func AudioServicesPlayAlertSound(inSystemSoundID SystemSoundID)
AudioServicesPlayAlertSound plays a system sound as an alert.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)
func AudioServicesPlayAlertSoundWithCompletion ¶
func AudioServicesPlayAlertSoundWithCompletion(inSystemSoundID SystemSoundID)
AudioServicesPlayAlertSoundWithCompletion.
func AudioServicesPlaySystemSound ¶
func AudioServicesPlaySystemSound(inSystemSoundID SystemSoundID)
AudioServicesPlaySystemSound plays a system sound object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlaySystemSound(_:)
func AudioServicesPlaySystemSoundWithCompletion ¶
func AudioServicesPlaySystemSoundWithCompletion(inSystemSoundID SystemSoundID)
AudioServicesPlaySystemSoundWithCompletion.
func AudioServicesRemoveSystemSoundCompletion ¶
func AudioServicesRemoveSystemSoundCompletion(inSystemSoundID SystemSoundID)
AudioServicesRemoveSystemSoundCompletion unregisters any completion callback functions that were registered for a specified system sound.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesRemoveSystemSoundCompletion(_:)
func AudioServicesSetProperty ¶
func AudioServicesSetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
AudioServicesSetProperty sets the value for a specified System Sound Services property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesSetProperty(_:_:_:_:_:)
func AudioUnitAddPropertyListener ¶
func AudioUnitAddPropertyListener(inUnit AudioUnit, inID AudioUnitPropertyID, inProc AudioUnitPropertyListenerProc, inProcUserData unsafe.Pointer) int32
AudioUnitAddPropertyListener registers a callback to receive audio unit property change notifications.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitAddPropertyListener(_:_:_:_:)
func AudioUnitAddRenderNotify ¶
func AudioUnitAddRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) int32
AudioUnitAddRenderNotify registers a callback to receive audio unit render notifications.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitAddRenderNotify(_:_:_:)
func AudioUnitExtensionCopyComponentList ¶
func AudioUnitExtensionCopyComponentList(extensionIdentifier corefoundation.CFStringRef) corefoundation.CFArrayRef
AudioUnitExtensionCopyComponentList returns the component registrations for a given audio unit extension.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitExtensionCopyComponentList(_:)
func AudioUnitExtensionSetComponentList ¶
func AudioUnitExtensionSetComponentList(extensionIdentifier corefoundation.CFStringRef, audioComponentInfo corefoundation.CFArrayRef) int32
AudioUnitExtensionSetComponentList allows the implementor of an audio unit extension to dynamically modify the list of component registrations for the extension.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitExtensionSetComponentList(_:_:)
func AudioUnitGetParameter ¶
func AudioUnitGetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, inElement AudioUnitElement, outValue *AudioUnitParameterValue) int32
AudioUnitGetParameter gets the value of an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetParameter(_:_:_:_:_:)
func AudioUnitGetProperty ¶
func AudioUnitGetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, outData unsafe.Pointer, ioDataSize *uint32) int32
AudioUnitGetProperty gets the value of an audio unit property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetProperty(_:_:_:_:_:_:)
func AudioUnitGetPropertyInfo ¶
func AudioUnitGetPropertyInfo(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, outDataSize *uint32, outWritable *bool) int32
AudioUnitGetPropertyInfo gets information about an audio unit property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetPropertyInfo(_:_:_:_:_:_:)
func AudioUnitInitialize ¶
AudioUnitInitialize initializes an audio unit
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitInitialize(_:)
func AudioUnitProcess ¶
func AudioUnitProcess(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) int32
AudioUnitProcess.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitProcess(_:_:_:_:_:)
func AudioUnitProcessMultiple ¶
func AudioUnitProcessMultiple(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint32, inNumberInputBufferLists uint32, inInputBufferLists *objc.ID, inNumberOutputBufferLists uint32, ioOutputBufferLists *objc.ID) int32
AudioUnitProcessMultiple.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitProcessMultiple(_:_:_:_:_:_:_:_:)
func AudioUnitRemovePropertyListenerWithUserData ¶
func AudioUnitRemovePropertyListenerWithUserData(inUnit AudioUnit, inID AudioUnitPropertyID, inProc AudioUnitPropertyListenerProc, inProcUserData unsafe.Pointer) int32
AudioUnitRemovePropertyListenerWithUserData unregisters a previously-registered property listener callback function.
func AudioUnitRemoveRenderNotify ¶
func AudioUnitRemoveRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) int32
AudioUnitRemoveRenderNotify unregisters a previously-registered render listener callback function.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemoveRenderNotify(_:_:_:)
func AudioUnitRender ¶
func AudioUnitRender(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inOutputBusNumber uint32, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) int32
AudioUnitRender initiates a rendering cycle for an audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRender(_:_:_:_:_:_:)
func AudioUnitReset ¶
func AudioUnitReset(inUnit AudioUnit, inScope AudioUnitScope, inElement AudioUnitElement) int32
AudioUnitReset resets an audio unit’s render state.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitReset(_:_:_:)
func AudioUnitScheduleParameters ¶
func AudioUnitScheduleParameters(inUnit AudioUnit, inParameterEvent *AudioUnitParameterEvent, inNumParamEvents uint32) int32
AudioUnitScheduleParameters schedules changes to the value of an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitScheduleParameters(_:_:_:)
func AudioUnitSetParameter ¶
func AudioUnitSetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, inElement AudioUnitElement, inValue AudioUnitParameterValue, inBufferOffsetInFrames uint32) int32
AudioUnitSetParameter sets the value of an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitSetParameter(_:_:_:_:_:_:)
func AudioUnitSetProperty ¶
func AudioUnitSetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, inData unsafe.Pointer, inDataSize uint32) int32
AudioUnitSetProperty sets the value of an audio unit property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitSetProperty(_:_:_:_:_:_:)
func AudioUnitUninitialize ¶
AudioUnitUninitialize uninitializes an audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitUninitialize(_:)
func AudioWorkIntervalCreate ¶
func AudioWorkIntervalCreate(name string, clock os.Os_clockid_t, attr os.Os_workgroup_attr_t) os.Os_workgroup_interval_t
AudioWorkIntervalCreate creates a new interval workgroup for managing real-time audio threads.
See: https://developer.apple.com/documentation/AudioToolbox/AudioWorkIntervalCreate
func CAClockAddListener ¶
func CAClockAddListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) int32
CAClockAddListener.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockAddListener(_:_:_:)
func CAClockArm ¶
func CAClockArm(inCAClock CAClockRef) int32
CAClockArm.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockArm(_:)
func CAClockBarBeatTimeToBeats ¶
func CAClockBarBeatTimeToBeats(inCAClock CAClockRef, inBarBeatTime *CABarBeatTime, outBeats *CAClockBeats) int32
CAClockBarBeatTimeToBeats.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockBarBeatTimeToBeats(_:_:_:)
func CAClockBeatsToBarBeatTime ¶
func CAClockBeatsToBarBeatTime(inCAClock CAClockRef, inBeats CAClockBeats, inSubbeatDivisor uint16, outBarBeatTime *CABarBeatTime) int32
CAClockBeatsToBarBeatTime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockBeatsToBarBeatTime(_:_:_:_:)
func CAClockDisarm ¶
func CAClockDisarm(inCAClock CAClockRef) int32
CAClockDisarm.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockDisarm(_:)
func CAClockDispose ¶
func CAClockDispose(inCAClock CAClockRef) int32
CAClockDispose.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockDispose(_:)
func CAClockGetCurrentTempo ¶
func CAClockGetCurrentTempo(inCAClock CAClockRef, outTempo *CAClockTempo, outTimestamp *CAClockTime) int32
CAClockGetCurrentTempo.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetCurrentTempo(_:_:_:)
func CAClockGetCurrentTime ¶
func CAClockGetCurrentTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32
CAClockGetCurrentTime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetCurrentTime(_:_:_:)
func CAClockGetPlayRate ¶
func CAClockGetPlayRate(inCAClock CAClockRef, outPlayRate *float64) int32
CAClockGetPlayRate.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetPlayRate(_:_:)
func CAClockGetProperty ¶
func CAClockGetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
CAClockGetProperty.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetProperty(_:_:_:_:)
func CAClockGetPropertyInfo ¶
func CAClockGetPropertyInfo(inCAClock CAClockRef, inPropertyID CAClockPropertyID, outSize *uint32, outWritable *bool) int32
CAClockGetPropertyInfo.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetPropertyInfo(_:_:_:_:)
func CAClockGetStartTime ¶
func CAClockGetStartTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32
CAClockGetStartTime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetStartTime(_:_:_:)
func CAClockNew ¶
func CAClockNew(inReservedFlags uint32, outCAClock *CAClockRef) int32
CAClockNew.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockNew(_:_:)
func CAClockParseMIDI ¶
func CAClockParseMIDI(inCAClock CAClockRef, inMIDIPacketList *coremidi.MIDIPacketList) int32
CAClockParseMIDI.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockParseMIDI(_:_:)
func CAClockRemoveListener ¶
func CAClockRemoveListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) int32
CAClockRemoveListener.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockRemoveListener(_:_:_:)
func CAClockSMPTETimeToSeconds ¶
func CAClockSMPTETimeToSeconds(inCAClock CAClockRef, inSMPTETime *coreaudiotypes.SMPTETime, outSeconds *CAClockSeconds) int32
CAClockSMPTETimeToSeconds.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSMPTETimeToSeconds(_:_:_:)
func CAClockSecondsToSMPTETime ¶
func CAClockSecondsToSMPTETime(inCAClock CAClockRef, inSeconds CAClockSeconds, inSubframeDivisor uint16, outSMPTETime *coreaudiotypes.SMPTETime) int32
CAClockSecondsToSMPTETime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSecondsToSMPTETime(_:_:_:_:)
func CAClockSetCurrentTempo ¶
func CAClockSetCurrentTempo(inCAClock CAClockRef, inTempo CAClockTempo, inTimestamp *CAClockTime) int32
CAClockSetCurrentTempo.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetCurrentTempo(_:_:_:)
func CAClockSetCurrentTime ¶
func CAClockSetCurrentTime(inCAClock CAClockRef, inTime *CAClockTime) int32
CAClockSetCurrentTime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetCurrentTime(_:_:)
func CAClockSetPlayRate ¶
func CAClockSetPlayRate(inCAClock CAClockRef, inPlayRate float64) int32
CAClockSetPlayRate.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetPlayRate(_:_:)
func CAClockSetProperty ¶
func CAClockSetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
CAClockSetProperty.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetProperty(_:_:_:_:)
func CAClockStart ¶
func CAClockStart(inCAClock CAClockRef) int32
CAClockStart.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockStart(_:)
func CAClockStop ¶
func CAClockStop(inCAClock CAClockRef) int32
CAClockStop.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockStop(_:)
func CAClockTranslateTime ¶
func CAClockTranslateTime(inCAClock CAClockRef, inTime *CAClockTime, inOutputTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32
CAClockTranslateTime.
See: https://developer.apple.com/documentation/AudioToolbox/CAClockTranslateTime(_:_:_:_:)
func CAShow ¶
CAShow prints the internal state of an object to `stdio`.
See: https://developer.apple.com/documentation/AudioToolbox/CAShow(_:)
func CAShowFile ¶
CAShowFile prints the internal state of an object to a file.
See: https://developer.apple.com/documentation/AudioToolbox/CAShowFile(_:_:)
func CopyInstrumentInfoFromSoundBank ¶
func CopyInstrumentInfoFromSoundBank(inURL corefoundation.CFURLRef, outInstrumentInfo *corefoundation.CFArrayRef) int32
CopyInstrumentInfoFromSoundBank.
See: https://developer.apple.com/documentation/AudioToolbox/CopyInstrumentInfoFromSoundBank(_:_:)
func CopyNameFromSoundBank ¶
func CopyNameFromSoundBank(inURL corefoundation.CFURLRef, outName *corefoundation.CFStringRef) int32
CopyNameFromSoundBank copies the name of a sound bank from a sound bank file at a specified URL.
See: https://developer.apple.com/documentation/AudioToolbox/CopyNameFromSoundBank(_:_:)
func DisposeAUGraph
deprecated
DisposeAUGraph disposes of an audio processing graph.
Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine
See: https://developer.apple.com/documentation/AudioToolbox/DisposeAUGraph(_:)
func DisposeMusicEventIterator ¶
func DisposeMusicEventIterator(inIterator MusicEventIterator) int32
DisposeMusicEventIterator disposes of a music event iterator.
See: https://developer.apple.com/documentation/AudioToolbox/DisposeMusicEventIterator(_:)
func DisposeMusicPlayer ¶
func DisposeMusicPlayer(inPlayer MusicPlayer) int32
DisposeMusicPlayer disposes of a music player.
See: https://developer.apple.com/documentation/AudioToolbox/DisposeMusicPlayer(_:)
func DisposeMusicSequence ¶
func DisposeMusicSequence(inSequence MusicSequence) int32
DisposeMusicSequence disposes of a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/DisposeMusicSequence(_:)
func ExtAudioFileCreateNew
deprecated
func ExtAudioFileCreateNew(inParentDir *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFileType AudioFileTypeID, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, outExtAudioFile *ExtAudioFileRef) int32
ExtAudioFileCreateNew deprecated.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileCreateNew
func ExtAudioFileCreateWithURL ¶
func ExtAudioFileCreateWithURL(inURL corefoundation.CFURLRef, inFileType AudioFileTypeID, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, inFlags uint32, outExtAudioFile *ExtAudioFileRef) int32
ExtAudioFileCreateWithURL creates a new audio file and associates it with a new extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileCreateWithURL(_:_:_:_:_:_:)
func ExtAudioFileDispose ¶
func ExtAudioFileDispose(inExtAudioFile ExtAudioFileRef) int32
ExtAudioFileDispose disposes of an extended audio file object and closes the associated file.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileDispose(_:)
func ExtAudioFileGetProperty ¶
func ExtAudioFileGetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32
ExtAudioFileGetProperty gets a property value from an extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileGetProperty(_:_:_:_:)
func ExtAudioFileGetPropertyInfo ¶
func ExtAudioFileGetPropertyInfo(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, outSize *uint32, outWritable *bool) int32
ExtAudioFileGetPropertyInfo gets information about an extended audio file object property.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileGetPropertyInfo(_:_:_:_:)
func ExtAudioFileOpen
deprecated
func ExtAudioFileOpen(inFSRef *coreservices.FSRef, outExtAudioFile *ExtAudioFileRef) int32
ExtAudioFileOpen deprecated.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileOpen
func ExtAudioFileOpenURL ¶
func ExtAudioFileOpenURL(inURL corefoundation.CFURLRef, outExtAudioFile *ExtAudioFileRef) int32
ExtAudioFileOpenURL opens an existing audio file for reading, and associates it with a new extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileOpenURL(_:_:)
func ExtAudioFileRead ¶
func ExtAudioFileRead(inExtAudioFile ExtAudioFileRef, ioNumberFrames *uint32, ioData *coreaudiotypes.AudioBufferList) int32
ExtAudioFileRead performs a synchronous, sequential read operation on an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileRead(_:_:_:)
func ExtAudioFileSeek ¶
func ExtAudioFileSeek(inExtAudioFile ExtAudioFileRef, inFrameOffset int64) int32
ExtAudioFileSeek seeks to a specified frame in a file.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileSeek(_:_:)
func ExtAudioFileSetProperty ¶
func ExtAudioFileSetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32
ExtAudioFileSetProperty sets a property value for an extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileSetProperty(_:_:_:_:)
func ExtAudioFileTell ¶
func ExtAudioFileTell(inExtAudioFile ExtAudioFileRef, outFrameOffset *int64) int32
ExtAudioFileTell gets an audio file’s read/write position.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileTell(_:_:)
func ExtAudioFileWrapAudioFileID ¶
func ExtAudioFileWrapAudioFileID(inFileID AudioFileID, inForWriting bool, outExtAudioFile *ExtAudioFileRef) int32
ExtAudioFileWrapAudioFileID wraps an audio file object in an extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileWrapAudioFileID(_:_:_:)
func ExtAudioFileWrite ¶
func ExtAudioFileWrite(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) int32
ExtAudioFileWrite performs a synchronous, sequential write operation on an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileWrite(_:_:_:)
func ExtAudioFileWriteAsync ¶
func ExtAudioFileWriteAsync(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) int32
ExtAudioFileWriteAsync perform an asynchronous, sequential write operation on an audio file.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileWriteAsync(_:_:_:)
func GetNameFromSoundBank
deprecated
func GetNameFromSoundBank(inSoundBankRef *coreservices.FSRef, outName *corefoundation.CFStringRef) int32
GetNameFromSoundBank gets the name of a sound bank from a sound bank file.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/GetNameFromSoundBank
func MusicDeviceMIDIEvent ¶
func MusicDeviceMIDIEvent(inUnit MusicDeviceComponent, inStatus uint32, inData1 uint32, inData2 uint32, inOffsetSampleFrame uint32) int32
MusicDeviceMIDIEvent.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceMIDIEvent(_:_:_:_:_:)
func MusicDeviceMIDIEventList ¶
func MusicDeviceMIDIEventList(inUnit MusicDeviceComponent, inOffsetSampleFrame uint32, evtList *coremidi.MIDIEventList) int32
MusicDeviceMIDIEventList.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceMIDIEventList(_:_:_:)
func MusicDevicePrepareInstrument
deprecated
func MusicDevicePrepareInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) int32
MusicDevicePrepareInstrument.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDevicePrepareInstrument
func MusicDeviceReleaseInstrument
deprecated
func MusicDeviceReleaseInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) int32
MusicDeviceReleaseInstrument.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceReleaseInstrument
func MusicDeviceStartNote ¶
func MusicDeviceStartNote(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID, inGroupID MusicDeviceGroupID, outNoteInstanceID *NoteInstanceID, inOffsetSampleFrame uint32, inParams *MusicDeviceNoteParams) int32
MusicDeviceStartNote.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStartNote(_:_:_:_:_:_:)
func MusicDeviceStopNote ¶
func MusicDeviceStopNote(inUnit MusicDeviceComponent, inGroupID MusicDeviceGroupID, inNoteInstanceID NoteInstanceID, inOffsetSampleFrame uint32) int32
MusicDeviceStopNote.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStopNote(_:_:_:_:)
func MusicDeviceSysEx ¶
func MusicDeviceSysEx(inUnit MusicDeviceComponent, inData []byte, inLength uint32) int32
MusicDeviceSysEx.
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceSysEx(_:_:_:)
func MusicEventIteratorDeleteEvent ¶
func MusicEventIteratorDeleteEvent(inIterator MusicEventIterator) int32
MusicEventIteratorDeleteEvent deletes the event at a music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorDeleteEvent(_:)
func MusicEventIteratorGetEventInfo ¶
func MusicEventIteratorGetEventInfo(inIterator MusicEventIterator, outTimeStamp *MusicTimeStamp, outEventType *MusicEventType, outEventData unsafe.Pointer, outEventDataSize *uint32) int32
MusicEventIteratorGetEventInfo gets information about the event at a music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorGetEventInfo(_:_:_:_:_:)
func MusicEventIteratorHasCurrentEvent ¶
func MusicEventIteratorHasCurrentEvent(inIterator MusicEventIterator, outHasCurEvent *bool) int32
MusicEventIteratorHasCurrentEvent indicates whether or not a music track contains an event at the music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorHasCurrentEvent(_:_:)
func MusicEventIteratorHasNextEvent ¶
func MusicEventIteratorHasNextEvent(inIterator MusicEventIterator, outHasNextEvent *bool) int32
MusicEventIteratorHasNextEvent indicates whether or not a music track contains an event beyond the music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorHasNextEvent(_:_:)
func MusicEventIteratorHasPreviousEvent ¶
func MusicEventIteratorHasPreviousEvent(inIterator MusicEventIterator, outHasPrevEvent *bool) int32
MusicEventIteratorHasPreviousEvent indicates whether or not a music track contains an event before the music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorHasPreviousEvent(_:_:)
func MusicEventIteratorNextEvent ¶
func MusicEventIteratorNextEvent(inIterator MusicEventIterator) int32
MusicEventIteratorNextEvent positions a music event iterator at the next event on a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorNextEvent(_:)
func MusicEventIteratorPreviousEvent ¶
func MusicEventIteratorPreviousEvent(inIterator MusicEventIterator) int32
MusicEventIteratorPreviousEvent positions a music event iterator at the previous event on a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorPreviousEvent(_:)
func MusicEventIteratorSeek ¶
func MusicEventIteratorSeek(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) int32
MusicEventIteratorSeek positions a music event iterator at a specified timestamp, in beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorSeek(_:_:)
func MusicEventIteratorSetEventInfo ¶
func MusicEventIteratorSetEventInfo(inIterator MusicEventIterator, inEventType MusicEventType, inEventData unsafe.Pointer) int32
MusicEventIteratorSetEventInfo sets information for the event at a music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorSetEventInfo(_:_:_:)
func MusicEventIteratorSetEventTime ¶
func MusicEventIteratorSetEventTime(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) int32
MusicEventIteratorSetEventTime sets the timestamp for the event at a music event iterator’s current position.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIteratorSetEventTime(_:_:)
func MusicPlayerGetBeatsForHostTime ¶
func MusicPlayerGetBeatsForHostTime(inPlayer MusicPlayer, inHostTime uint64, outBeats *MusicTimeStamp) int32
MusicPlayerGetBeatsForHostTime gets the beat number associated a specified host time.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerGetBeatsForHostTime(_:_:_:)
func MusicPlayerGetHostTimeForBeats ¶
func MusicPlayerGetHostTimeForBeats(inPlayer MusicPlayer, inBeats MusicTimeStamp, outHostTime *uint64) int32
MusicPlayerGetHostTimeForBeats gets the host time associated with a specified beat.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerGetHostTimeForBeats(_:_:_:)
func MusicPlayerGetPlayRateScalar ¶
func MusicPlayerGetPlayRateScalar(inPlayer MusicPlayer, outScaleRate *float64) int32
MusicPlayerGetPlayRateScalar gets the playback rate multiplier for a music player.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerGetPlayRateScalar(_:_:)
func MusicPlayerGetSequence ¶
func MusicPlayerGetSequence(inPlayer MusicPlayer, outSequence *MusicSequence) int32
MusicPlayerGetSequence gets the music sequence associated with a music player.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerGetSequence(_:_:)
func MusicPlayerGetTime ¶
func MusicPlayerGetTime(inPlayer MusicPlayer, outTime *MusicTimeStamp) int32
MusicPlayerGetTime gets the playback point for a music player, in beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerGetTime(_:_:)
func MusicPlayerIsPlaying ¶
func MusicPlayerIsPlaying(inPlayer MusicPlayer, outIsPlaying *bool) int32
MusicPlayerIsPlaying indicates whether or not a music player is playing.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerIsPlaying(_:_:)
func MusicPlayerPreroll ¶
func MusicPlayerPreroll(inPlayer MusicPlayer) int32
MusicPlayerPreroll prepares a music player to play.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerPreroll(_:)
func MusicPlayerSetPlayRateScalar ¶
func MusicPlayerSetPlayRateScalar(inPlayer MusicPlayer, inScaleRate float64) int32
MusicPlayerSetPlayRateScalar sets a playback rate multiplier for a music player.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerSetPlayRateScalar(_:_:)
func MusicPlayerSetSequence ¶
func MusicPlayerSetSequence(inPlayer MusicPlayer, inSequence MusicSequence) int32
MusicPlayerSetSequence sets the music sequence for the music player to play.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerSetSequence(_:_:)
func MusicPlayerSetTime ¶
func MusicPlayerSetTime(inPlayer MusicPlayer, inTime MusicTimeStamp) int32
MusicPlayerSetTime sets the playback point for a music player, in beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerSetTime(_:_:)
func MusicPlayerStart ¶
func MusicPlayerStart(inPlayer MusicPlayer) int32
MusicPlayerStart starts playback of a music player.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerStart(_:)
func MusicPlayerStop ¶
func MusicPlayerStop(inPlayer MusicPlayer) int32
MusicPlayerStop stops playback of a music player.
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerStop(_:)
func MusicSequenceBarBeatTimeToBeats ¶
func MusicSequenceBarBeatTimeToBeats(inSequence MusicSequence, inBarBeatTime *CABarBeatTime, outBeats *MusicTimeStamp) int32
MusicSequenceBarBeatTimeToBeats formats a music sequence’s bar-beat time to its beat time.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceBarBeatTimeToBeats(_:_:_:)
func MusicSequenceBeatsToBarBeatTime ¶
func MusicSequenceBeatsToBarBeatTime(inSequence MusicSequence, inBeats MusicTimeStamp, inSubbeatDivisor uint32, outBarBeatTime *CABarBeatTime) int32
MusicSequenceBeatsToBarBeatTime formats a music sequence’s beat time to its bar-beat time.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceBeatsToBarBeatTime(_:_:_:_:)
func MusicSequenceDisposeTrack ¶
func MusicSequenceDisposeTrack(inSequence MusicSequence, inTrack MusicTrack) int32
MusicSequenceDisposeTrack removes a music track from a music sequence, and disposes of the track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceDisposeTrack(_:_:)
func MusicSequenceFileCreate ¶
func MusicSequenceFileCreate(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16) int32
MusicSequenceFileCreate creates a MIDI file from the events in a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileCreate(_:_:_:_:_:)
func MusicSequenceFileCreateData ¶
func MusicSequenceFileCreateData(inSequence MusicSequence, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16, outData *corefoundation.CFDataRef) int32
MusicSequenceFileCreateData creates a data object containing the events from a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileCreateData(_:_:_:_:_:)
func MusicSequenceFileLoad ¶
func MusicSequenceFileLoad(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) int32
MusicSequenceFileLoad loads data into a music sequence from a URL reference.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileLoad(_:_:_:_:)
func MusicSequenceFileLoadData ¶
func MusicSequenceFileLoadData(inSequence MusicSequence, inData corefoundation.CFDataRef, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) int32
MusicSequenceFileLoadData load data into a music sequence from a data reference.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileLoadData(_:_:_:_:)
func MusicSequenceGetAUGraph ¶
func MusicSequenceGetAUGraph(inSequence MusicSequence, outGraph *AUGraph) int32
MusicSequenceGetAUGraph gets the audio processing graph associated with a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetAUGraph(_:_:)
func MusicSequenceGetBeatsForSeconds ¶
func MusicSequenceGetBeatsForSeconds(inSequence MusicSequence, inSeconds float64, outBeats *MusicTimeStamp) int32
MusicSequenceGetBeatsForSeconds calculates the number of beats that correspond to a number of seconds.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetBeatsForSeconds(_:_:_:)
func MusicSequenceGetIndTrack ¶
func MusicSequenceGetIndTrack(inSequence MusicSequence, inTrackIndex uint32, outTrack *MusicTrack) int32
MusicSequenceGetIndTrack gets the music track at the specified track index.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetIndTrack(_:_:_:)
func MusicSequenceGetInfoDictionary ¶
func MusicSequenceGetInfoDictionary(inSequence MusicSequence) corefoundation.CFDictionaryRef
MusicSequenceGetInfoDictionary returns a dictionary containing music sequence information.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetInfoDictionary(_:)
func MusicSequenceGetSecondsForBeats ¶
func MusicSequenceGetSecondsForBeats(inSequence MusicSequence, inBeats MusicTimeStamp, outSeconds *float64) int32
MusicSequenceGetSecondsForBeats calculates the number of seconds that correspond to a number of beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetSecondsForBeats(_:_:_:)
func MusicSequenceGetSequenceType ¶
func MusicSequenceGetSequenceType(inSequence MusicSequence, outType *MusicSequenceType) int32
MusicSequenceGetSequenceType gets the sequence type for a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetSequenceType(_:_:)
func MusicSequenceGetTempoTrack ¶
func MusicSequenceGetTempoTrack(inSequence MusicSequence, outTrack *MusicTrack) int32
MusicSequenceGetTempoTrack gets the tempo track for a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetTempoTrack(_:_:)
func MusicSequenceGetTrackCount ¶
func MusicSequenceGetTrackCount(inSequence MusicSequence, outNumberOfTracks *uint32) int32
MusicSequenceGetTrackCount gets the number of music tracks owned by a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetTrackCount(_:_:)
func MusicSequenceGetTrackIndex ¶
func MusicSequenceGetTrackIndex(inSequence MusicSequence, inTrack MusicTrack, outTrackIndex *uint32) int32
MusicSequenceGetTrackIndex gets the index number for a specified music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetTrackIndex(_:_:_:)
func MusicSequenceLoadSMFDataWithFlags
deprecated
func MusicSequenceLoadSMFDataWithFlags(inSequence MusicSequence, inData corefoundation.CFDataRef, inFlags MusicSequenceLoadFlags) int32
MusicSequenceLoadSMFDataWithFlags.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceLoadSMFDataWithFlags
func MusicSequenceLoadSMFWithFlags
deprecated
func MusicSequenceLoadSMFWithFlags(inSequence MusicSequence, inFileRef *coreservices.FSRef, inFlags MusicSequenceLoadFlags) int32
MusicSequenceLoadSMFWithFlags.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceLoadSMFWithFlags
func MusicSequenceNewTrack ¶
func MusicSequenceNewTrack(inSequence MusicSequence, outTrack *MusicTrack) int32
MusicSequenceNewTrack add a new, empty music track to a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceNewTrack(_:_:)
func MusicSequenceReverse ¶
func MusicSequenceReverse(inSequence MusicSequence) int32
MusicSequenceReverse reverses the MIDI and tempo events in a music sequence, so the start becomes the end.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceReverse(_:)
func MusicSequenceSaveMIDIFile
deprecated
func MusicSequenceSaveMIDIFile(inSequence MusicSequence, inParentDirectory *coreservices.FSRef, inFileName corefoundation.CFStringRef, inResolution uint16, inFlags uint32) int32
MusicSequenceSaveMIDIFile.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSaveMIDIFile
func MusicSequenceSaveSMFData
deprecated
func MusicSequenceSaveSMFData(inSequence MusicSequence, outData *corefoundation.CFDataRef, inResolution uint16) int32
MusicSequenceSaveSMFData.
Deprecated: Deprecated since macOS 10.5.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSaveSMFData
func MusicSequenceSetAUGraph ¶
func MusicSequenceSetAUGraph(inSequence MusicSequence, inGraph AUGraph) int32
MusicSequenceSetAUGraph associates an audio processing graph with a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSetAUGraph(_:_:)
func MusicSequenceSetMIDIEndpoint ¶
func MusicSequenceSetMIDIEndpoint(inSequence MusicSequence, inEndpoint uint32) int32
MusicSequenceSetMIDIEndpoint associates a specified MIDI endpoint with all music tracks in a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSetMIDIEndpoint(_:_:)
func MusicSequenceSetSequenceType ¶
func MusicSequenceSetSequenceType(inSequence MusicSequence, inType MusicSequenceType) int32
MusicSequenceSetSequenceType sets the sequence type for a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSetSequenceType(_:_:)
func MusicSequenceSetUserCallback ¶
func MusicSequenceSetUserCallback(inSequence MusicSequence, inCallback MusicSequenceUserCallback, inClientData unsafe.Pointer) int32
MusicSequenceSetUserCallback registers a user callback function with a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceSetUserCallback(_:_:_:)
func MusicTrackClear ¶
func MusicTrackClear(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) int32
MusicTrackClear removes a specified range of music track events.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackClear(_:_:_:)
func MusicTrackCopyInsert ¶
func MusicTrackCopyInsert(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, inDestTrack MusicTrack, inDestInsertTime MusicTimeStamp) int32
MusicTrackCopyInsert copies a range of events from one music track and inserts them into another music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackCopyInsert(_:_:_:_:_:)
func MusicTrackCut ¶
func MusicTrackCut(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) int32
MusicTrackCut removes a specified range of music track events, and shifts later events toward the start of the track to fill in the gap.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackCut(_:_:_:)
func MusicTrackGetDestMIDIEndpoint ¶
func MusicTrackGetDestMIDIEndpoint(inTrack MusicTrack, outEndpoint *coremidi.MIDIEndpointRef) int32
MusicTrackGetDestMIDIEndpoint gets the MIDI endpoint that is the event target for a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackGetDestMIDIEndpoint(_:_:)
func MusicTrackGetDestNode ¶
func MusicTrackGetDestNode(inTrack MusicTrack, outNode *AUNode) int32
MusicTrackGetDestNode gets the audio unit node that is the event target for a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackGetDestNode(_:_:)
func MusicTrackGetProperty ¶
func MusicTrackGetProperty(inTrack MusicTrack, inPropertyID uint32, outData unsafe.Pointer, ioLength *uint32) int32
MusicTrackGetProperty gets a music track property value.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackGetProperty(_:_:_:_:)
func MusicTrackGetSequence ¶
func MusicTrackGetSequence(inTrack MusicTrack, outSequence *MusicSequence) int32
MusicTrackGetSequence gets the music sequence that the music track is a member of.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackGetSequence(_:_:)
func MusicTrackMerge ¶
func MusicTrackMerge(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, inDestTrack MusicTrack, inDestInsertTime MusicTimeStamp) int32
MusicTrackMerge copies a range of events from one music track and merges them into another music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackMerge(_:_:_:_:_:)
func MusicTrackMoveEvents ¶
func MusicTrackMoveEvents(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp, inMoveTime MusicTimeStamp) int32
MusicTrackMoveEvents shifts music track events forward or backward in time, in terms of beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackMoveEvents(_:_:_:_:)
func MusicTrackNewAUPresetEvent ¶
func MusicTrackNewAUPresetEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inPresetEvent *AUPresetEvent) int32
MusicTrackNewAUPresetEvent adds an event of type AUPresetEvent to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewAUPresetEvent(_:_:_:)
func MusicTrackNewExtendedControlEvent
deprecated
func MusicTrackNewExtendedControlEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedControlEvent) int32
MusicTrackNewExtendedControlEvent.
Deprecated: Deprecated since macOS 10.7.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewExtendedControlEvent
func MusicTrackNewExtendedNoteEvent ¶
func MusicTrackNewExtendedNoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedNoteOnEvent) int32
MusicTrackNewExtendedNoteEvent adds an event of type ExtendedNoteOnEvent to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewExtendedNoteEvent(_:_:_:)
func MusicTrackNewExtendedTempoEvent ¶
func MusicTrackNewExtendedTempoEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inBPM float64) int32
MusicTrackNewExtendedTempoEvent adds a tempo to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewExtendedTempoEvent(_:_:_:)
func MusicTrackNewMIDIChannelEvent ¶
func MusicTrackNewMIDIChannelEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDIChannelMessage) int32
MusicTrackNewMIDIChannelEvent adds an event of type MIDIChannelMessage to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewMIDIChannelEvent(_:_:_:)
func MusicTrackNewMIDINoteEvent ¶
func MusicTrackNewMIDINoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDINoteMessage) int32
MusicTrackNewMIDINoteEvent adds an event of type MIDINoteMessage to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewMIDINoteEvent(_:_:_:)
func MusicTrackNewMIDIRawDataEvent ¶
func MusicTrackNewMIDIRawDataEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inRawData *MIDIRawData) int32
MusicTrackNewMIDIRawDataEvent adds an event of type MIDIRawData to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewMIDIRawDataEvent(_:_:_:)
func MusicTrackNewMetaEvent ¶
func MusicTrackNewMetaEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMetaEvent *MIDIMetaEvent) int32
MusicTrackNewMetaEvent adds an event of type MIDIMetaEvent to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewMetaEvent(_:_:_:)
func MusicTrackNewParameterEvent ¶
func MusicTrackNewParameterEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ParameterEvent) int32
MusicTrackNewParameterEvent adds an event of type ParameterEvent to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewParameterEvent(_:_:_:)
func MusicTrackNewUserEvent ¶
func MusicTrackNewUserEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inUserData *MusicEventUserData) int32
MusicTrackNewUserEvent adds an event of type MusicEventUserData to a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewUserEvent(_:_:_:)
func MusicTrackSetDestMIDIEndpoint ¶
func MusicTrackSetDestMIDIEndpoint(inTrack MusicTrack, inEndpoint uint32) int32
MusicTrackSetDestMIDIEndpoint sets the music track’s event target to a MIDI endpoint.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackSetDestMIDIEndpoint(_:_:)
func MusicTrackSetDestNode ¶
func MusicTrackSetDestNode(inTrack MusicTrack, inNode AUNode) int32
MusicTrackSetDestNode sets the music track’s event target to an audio unit node.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackSetDestNode(_:_:)
func MusicTrackSetProperty ¶
func MusicTrackSetProperty(inTrack MusicTrack, inPropertyID uint32, inData unsafe.Pointer, inLength uint32) int32
MusicTrackSetProperty sets a music track property value.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackSetProperty(_:_:_:_:)
func NewAUEventListenerBlock ¶
func NewAUEventListenerBlock(handler AUEventListenerBlock) (objc.ID, func())
NewAUEventListenerBlock wraps a Go AUEventListenerBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUImplementorValueObserverBlock ¶
func NewAUImplementorValueObserverBlock(handler AUImplementorValueObserver) (objc.ID, func())
NewAUImplementorValueObserverBlock wraps a Go AUImplementorValueObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUImplementorValueProviderBlock ¶
func NewAUImplementorValueProviderBlock(handler AUImplementorValueProvider) (objc.ID, func())
NewAUImplementorValueProviderBlock wraps a Go AUImplementorValueProvider as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUInputHandlerBlock ¶
func NewAUInputHandlerBlock(handler AUInputHandler) (objc.ID, func())
NewAUInputHandlerBlock wraps a Go AUInputHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUMIDICIProfileChangedBlock ¶
func NewAUMIDICIProfileChangedBlock(handler AUMIDICIProfileChangedBlock) (objc.ID, func())
NewAUMIDICIProfileChangedBlock wraps a Go AUMIDICIProfileChangedBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUParameterAutomationObserverBlock ¶
func NewAUParameterAutomationObserverBlock(handler AUParameterAutomationObserver) (objc.ID, func())
NewAUParameterAutomationObserverBlock wraps a Go AUParameterAutomationObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUParameterFloat32Block ¶
func NewAUParameterFloat32Block(handler AUParameterFloat32Handler) (objc.ID, func())
NewAUParameterFloat32Block wraps a Go AUParameterFloat32Handler as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUParameterListenerBlock ¶
func NewAUParameterListenerBlock(handler AUParameterListenerBlock) (objc.ID, func())
NewAUParameterListenerBlock wraps a Go AUParameterListenerBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUParameterObserverBlock ¶
func NewAUParameterObserverBlock(handler AUParameterObserver) (objc.ID, func())
NewAUParameterObserverBlock wraps a Go AUParameterObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUParameterRecordingObserverBlock ¶
func NewAUParameterRecordingObserverBlock(handler AUParameterRecordingObserver) (objc.ID, func())
NewAUParameterRecordingObserverBlock wraps a Go AUParameterRecordingObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAURenderContextObserverBlock ¶
func NewAURenderContextObserverBlock(handler AURenderContextObserver) (objc.ID, func())
NewAURenderContextObserverBlock wraps a Go AURenderContextObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAURenderObserverBlock ¶
func NewAURenderObserverBlock(handler AURenderObserver) (objc.ID, func())
NewAURenderObserverBlock wraps a Go AURenderObserver as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUScheduleMIDIEventBlock ¶
func NewAUScheduleMIDIEventBlock(handler AUScheduleMIDIEventBlock) (objc.ID, func())
NewAUScheduleMIDIEventBlock wraps a Go AUScheduleMIDIEventBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUScheduleParameterBlock ¶
func NewAUScheduleParameterBlock(handler AUScheduleParameterBlock) (objc.ID, func())
NewAUScheduleParameterBlock wraps a Go AUScheduleParameterBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAUVoiceIOMutedSpeechActivityEventListenerBlock ¶
func NewAUVoiceIOMutedSpeechActivityEventListenerBlock(handler AUVoiceIOMutedSpeechActivityEventListener) (objc.ID, func())
NewAUVoiceIOMutedSpeechActivityEventListenerBlock wraps a Go AUVoiceIOMutedSpeechActivityEventListener as an Objective-C block. The caller must defer the returned cleanup function.
func NewAudioComponentInstanceErrorBlock ¶
func NewAudioComponentInstanceErrorBlock(handler AudioComponentInstanceErrorHandler) (objc.ID, func())
NewAudioComponentInstanceErrorBlock wraps a Go AudioComponentInstanceErrorHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
- [AUAudioUnit.InstantiateWithComponentDescriptionOptionsCompletionHandler]
func NewAudioQueueInputCallbackBlock ¶
func NewAudioQueueInputCallbackBlock(handler AudioQueueInputCallbackBlock) (objc.ID, func())
NewAudioQueueInputCallbackBlock wraps a Go AudioQueueInputCallbackBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAudioQueueOutputCallbackBlock ¶
func NewAudioQueueOutputCallbackBlock(handler AudioQueueOutputCallbackBlock) (objc.ID, func())
NewAudioQueueOutputCallbackBlock wraps a Go AudioQueueOutputCallbackBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewAudioUnitRemoteControlEventListenerBlock ¶
func NewAudioUnitRemoteControlEventListenerBlock(handler AudioUnitRemoteControlEventListener) (objc.ID, func())
NewAudioUnitRemoteControlEventListenerBlock wraps a Go AudioUnitRemoteControlEventListener as an Objective-C block. The caller must defer the returned cleanup function.
func NewAudioUnitRenderActionFlagsAudioTimeStampUint32Int64Block ¶
func NewAudioUnitRenderActionFlagsAudioTimeStampUint32Int64Block(handler AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler) (objc.ID, func())
NewAudioUnitRenderActionFlagsAudioTimeStampUint32Int64Block wraps a Go AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler as an Objective-C block. The caller must defer the returned cleanup function.
func NewCallHostBlock ¶
func NewCallHostBlock(handler CallHostBlock) (objc.ID, func())
NewCallHostBlock wraps a Go CallHostBlock as an Objective-C block. The caller must defer the returned cleanup function.
func NewFloat32AUParameterBlock ¶
func NewFloat32AUParameterBlock(handler Float32AUParameterHandler) (objc.ID, func())
NewFloat32AUParameterBlock wraps a Go Float32AUParameterHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewFloat32AUParameterStringBlock ¶
func NewFloat32AUParameterStringBlock(handler Float32AUParameterStringHandler) (objc.ID, func())
NewFloat32AUParameterStringBlock wraps a Go Float32AUParameterStringHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewInt64AUParameterAutomationEventBlock ¶
func NewInt64AUParameterAutomationEventBlock(handler Int64AUParameterAutomationEventHandler) (objc.ID, func())
NewInt64AUParameterAutomationEventBlock wraps a Go Int64AUParameterAutomationEventHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
func NewInt64AURecordedParameterEventBlock ¶
func NewInt64AURecordedParameterEventBlock(handler Int64AURecordedParameterEventHandler) (objc.ID, func())
NewInt64AURecordedParameterEventBlock wraps a Go Int64AURecordedParameterEventHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
func NewInt64Uint32Uint64Float32Block ¶
func NewInt64Uint32Uint64Float32Block(handler Int64Uint32Uint64Float32Handler) (objc.ID, func())
NewInt64Uint32Uint64Float32Block wraps a Go Int64Uint32Uint64Float32Handler as an Objective-C block. The caller must defer the returned cleanup function.
func NewIntAudioTimeStampUint32Int64Block ¶
func NewIntAudioTimeStampUint32Int64Block(handler IntAudioTimeStampUint32Int64Handler) (objc.ID, func())
NewIntAudioTimeStampUint32Int64Block wraps a Go IntAudioTimeStampUint32Int64Handler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
func NewIntAudioUnitRenderActionFlagsBlock ¶
func NewIntAudioUnitRenderActionFlagsBlock(handler IntAudioUnitRenderActionFlagsHandler) (objc.ID, func())
NewIntAudioUnitRenderActionFlagsBlock wraps a Go IntAudioUnitRenderActionFlagsHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewIntInt64Block ¶
func NewIntInt64Block(handler IntInt64Handler) (objc.ID, func())
NewIntInt64Block wraps a Go IntInt64Handler as an Objective-C block. The caller must defer the returned cleanup function.
func NewMusicEventIterator ¶
func NewMusicEventIterator(inTrack MusicTrack, outIterator *MusicEventIterator) int32
NewMusicEventIterator creates a new music event iterator.
See: https://developer.apple.com/documentation/AudioToolbox/NewMusicEventIterator(_:_:)
func NewMusicPlayer ¶
func NewMusicPlayer(outPlayer *MusicPlayer) int32
NewMusicPlayer creates a new music player.
See: https://developer.apple.com/documentation/AudioToolbox/NewMusicPlayer(_:)
func NewMusicSequence ¶
func NewMusicSequence(outSequence *MusicSequence) int32
NewMusicSequence creates a new empty music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/NewMusicSequence(_:)
func NewMusicTrackFrom
deprecated
func NewMusicTrackFrom(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, outNewTrack *MusicTrack) int32
NewMusicTrackFrom.
Deprecated: Deprecated since macOS 10.6.
See: https://developer.apple.com/documentation/AudioToolbox/NewMusicTrackFrom
func NewStringAUParameterNodeInt64Block ¶
func NewStringAUParameterNodeInt64Block(handler StringAUParameterNodeInt64Handler) (objc.ID, func())
NewStringAUParameterNodeInt64Block wraps a Go StringAUParameterNodeInt64Handler as an Objective-C block. The caller must defer the returned cleanup function.
func NewStringVoidBlock ¶
func NewStringVoidBlock(handler StringVoidHandler) (objc.ID, func())
NewStringVoidBlock wraps a Go StringVoidHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewUint32Uint32MIDICIProfileBoolBlock ¶
func NewUint32Uint32MIDICIProfileBoolBlock(handler Uint32Uint32MIDICIProfileBoolHandler) (objc.ID, func())
NewUint32Uint32MIDICIProfileBoolBlock wraps a Go Uint32Uint32MIDICIProfileBoolHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewUint64Float32Block ¶
func NewUint64Float32Block(handler Uint64Float32Handler) (objc.ID, func())
NewUint64Float32Block wraps a Go Uint64Float32Handler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
func NewconststructAudioUnitRenderContextBlock ¶
func NewconststructAudioUnitRenderContextBlock(handler conststructAudioUnitRenderContextHandler) (objc.ID, func())
NewconststructAudioUnitRenderContextBlock wraps a Go [conststructAudioUnitRenderContextHandler] as an Objective-C block. The caller must defer the returned cleanup function.
Types ¶
type AU3DMixerAttenuationCurve ¶
type AU3DMixerAttenuationCurve uint32
See: https://developer.apple.com/documentation/AudioToolbox/AU3DMixerAttenuationCurve
const ( // K3DMixerAttenuationCurve_Exponential: An exponential attenuation curve. K3DMixerAttenuationCurve_Exponential AU3DMixerAttenuationCurve = 1 // K3DMixerAttenuationCurve_Inverse: An inverse attenuation curve. K3DMixerAttenuationCurve_Inverse AU3DMixerAttenuationCurve = 2 // K3DMixerAttenuationCurve_Linear: A linear attenuation curve. K3DMixerAttenuationCurve_Linear AU3DMixerAttenuationCurve = 3 // K3DMixerAttenuationCurve_Power: An equal-power-based attenuation curve. K3DMixerAttenuationCurve_Power AU3DMixerAttenuationCurve = 0 )
func (AU3DMixerAttenuationCurve) String ¶
func (e AU3DMixerAttenuationCurve) String() string
type AU3DMixerRenderingFlags ¶
type AU3DMixerRenderingFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AU3DMixerRenderingFlags
const ( K3DMixerRenderingFlags_ConstantReverbBlend AU3DMixerRenderingFlags = 64 K3DMixerRenderingFlags_DistanceAttenuation AU3DMixerRenderingFlags = 4 K3DMixerRenderingFlags_DistanceDiffusion AU3DMixerRenderingFlags = 16 K3DMixerRenderingFlags_DistanceFilter AU3DMixerRenderingFlags = 8 K3DMixerRenderingFlags_DopplerShift AU3DMixerRenderingFlags = 2 K3DMixerRenderingFlags_InterAuralDelay AU3DMixerRenderingFlags = 1 K3DMixerRenderingFlags_LinearDistanceAttenuation AU3DMixerRenderingFlags = 32 )
func (AU3DMixerRenderingFlags) String ¶
func (e AU3DMixerRenderingFlags) String() string
type AUAudioChannelCount ¶
type AUAudioChannelCount = uint32
AUAudioChannelCount is a number of audio channels.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioChannelCount
type AUAudioFrameCount ¶
type AUAudioFrameCount = uint32
AUAudioFrameCount is a number of audio sample frames.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioFrameCount
type AUAudioMixRenderingStyle ¶
type AUAudioMixRenderingStyle uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioMixRenderingStyle
const ( KAudioMixRenderingStyle_Cinematic AUAudioMixRenderingStyle = 0 KAudioMixRenderingStyle_CinematicBackgroundStem AUAudioMixRenderingStyle = 3 KAudioMixRenderingStyle_CinematicForegroundStem AUAudioMixRenderingStyle = 4 KAudioMixRenderingStyle_InFrame AUAudioMixRenderingStyle = 2 KAudioMixRenderingStyle_InFrameBackgroundStem AUAudioMixRenderingStyle = 9 KAudioMixRenderingStyle_InFrameForegroundStem AUAudioMixRenderingStyle = 6 KAudioMixRenderingStyle_Standard AUAudioMixRenderingStyle = 7 KAudioMixRenderingStyle_Studio AUAudioMixRenderingStyle = 1 KAudioMixRenderingStyle_StudioBackgroundStem AUAudioMixRenderingStyle = 8 KAudioMixRenderingStyle_StudioForegroundStem AUAudioMixRenderingStyle = 5 )
func (AUAudioMixRenderingStyle) String ¶
func (e AUAudioMixRenderingStyle) String() string
type AUAudioObjectID ¶
type AUAudioObjectID = uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioObjectID
type AUAudioUnit ¶
type AUAudioUnit struct {
objectivec.Object
}
A class that defines a host’s interface to an audio unit.
Overview ¶
Hosts can instantiate either version 3 or version 2 audio units with this class, and to some extent control whether an audio unit is instantiated in-process or in a separate extension process.
Version 3 audio units should subclass the AUAudioUnit class. Version 3 audio unit components can be registered in the following ways:
- Package the component into an app extension containing an [AudioComponents] `Info.Plist()` entry. The principal class must conform to the AUAudioUnitFactory protocol, which will typically instantiate an AUAudioUnit subclass. - Call the AUAudioUnitClass.RegisterSubclassAsComponentDescriptionNameVersion method to associate a component description with an AUAudioUnit subclass. Use the convention `:` when naming your audio unit component.
Version 2 audio units should subclass the AUAudioUnitV2Bridge class instead. Version 2 audio unit components can be registered in the following ways:
- Package the component into a component bundle containing an [AudioComponents] `Info.Plist()` entry, referring to an AudioComponentFactoryFunction function. - Call the AudioComponentRegister function to associate a component description with an AudioComponentFactoryFunction function.
A host does not need to be aware of the concrete AUAudioUnit subclass that is being instantiated. The [AUAudioUnitV2Bridge.InitWithComponentDescriptionOptionsError] method ensures that the proper subclass is used.
Creating an Audio Unit ¶
- AUAudioUnit.InitWithComponentDescriptionError: Synchronously initializes a new audio unit object.
- AUAudioUnit.InitWithComponentDescriptionOptionsError: Synchronously initializes a new audio unit object.
Returning the Audio Busses ¶
- AUAudioUnit.InputBusses: An array containing the audio unit’s input connection points.
- AUAudioUnit.OutputBusses: An array containing the audio unit’s output connection points.
Customizing the Audio Unit Behavior ¶
- AUAudioUnit.ShouldChangeToFormatForBus: This is called when you set the format on a bus.
- AUAudioUnit.InternalRenderBlock: The block which you must provide, via a getter, in order to implement rendering.
- AUAudioUnit.MIDIOutputBufferSizeHint
- AUAudioUnit.SetMIDIOutputBufferSizeHint
Querying Parameters ¶
- AUAudioUnit.ParameterTree: An audio unit’s parameters, organized in a tree hierarchy.
- AUAudioUnit.SetParameterTree
- AUAudioUnit.AllParameterValues: Special read-only property for KVO.
- AUAudioUnit.ParametersForOverviewWithCount: Returns the audio unit’s most important parameters.
Providing Data to the Host ¶
- AUAudioUnit.MusicalContextBlock: A callback to the host for musical context information.
- AUAudioUnit.SetMusicalContextBlock
- AUAudioUnit.TransportStateBlock: A callback to the host for transport state information.
- AUAudioUnit.SetTransportStateBlock
- AUAudioUnit.ContextName: Information about the host context in which the audio unit is connected, for display in the audio unit’s view.
- AUAudioUnit.SetContextName
- AUAudioUnit.SupportsMPE: A Boolean value that indicates whether the audio unit supports multi-dimensional polyphonic expression.
Managing MIDI Events ¶
- AUAudioUnit.IsMusicDeviceOrEffect: Specifies whether an audio unit responds to MIDI events.
- AUAudioUnit.VirtualMIDICableCount: The number of virtual MIDI cables implemented by a music device or effect.
- AUAudioUnit.ScheduleMIDIEventBlock: A block used to schedule MIDI events.
- AUAudioUnit.MIDIOutputEventBlock
- AUAudioUnit.SetMIDIOutputEventBlock
- AUAudioUnit.MIDIOutputNames: The names of the MIDI outputs.
Managing Presets ¶
- AUAudioUnit.FullState: A persistable snapshot of the audio unit’s properties and parameters, suitable for saving as a user preset.
- AUAudioUnit.SetFullState
- AUAudioUnit.FullStateForDocument: A persistable snapshot of the audio unit’s properties and parameters, suitable for saving in a user’s document.
- AUAudioUnit.SetFullStateForDocument
- AUAudioUnit.FactoryPresets: A collection of presets provided by the audio unit’s developer.
- AUAudioUnit.CurrentPreset: The audio unit’s last-selected preset.
- AUAudioUnit.SetCurrentPreset
- AUAudioUnit.SupportsUserPresets
- AUAudioUnit.UserPresets
- AUAudioUnit.SaveUserPresetError
- AUAudioUnit.DeleteUserPresetError
- AUAudioUnit.PresetStateForError
Managing the Render Cycle ¶
- AUAudioUnit.AllocateRenderResourcesAndReturnError: Allocates resources required to render audio.
- AUAudioUnit.DeallocateRenderResources: Deallocates resources required to render audio.
- AUAudioUnit.Reset: Resets transitory rendering state to its initial state.
- AUAudioUnit.RenderResourcesAllocated: Determines whether the audio unit has allocated render resources.
- AUAudioUnit.RenderBlock: The block that hosts use to ask the audio unit to render audio.
- AUAudioUnit.ScheduleParameterBlock: The block that hosts use to schedule parameters.
- AUAudioUnit.MaximumFramesToRender: The maximum number of frames that the audio unit can render at once.
- AUAudioUnit.SetMaximumFramesToRender
- AUAudioUnit.TokenByAddingRenderObserver: Adds a block to be called on each render cycle.
- AUAudioUnit.RemoveRenderObserver: Removes an observer block previously added to the render cycle.
Messaging Channels ¶
- AUAudioUnit.MessageChannelFor: Returns an object for bidirectional communication between an audio unit and its host.
Optimizing Performance ¶
- AUAudioUnit.Latency: The audio unit’s processing latency, in seconds.
- AUAudioUnit.TailTime: The audio unit’s tail time, in seconds.
- AUAudioUnit.RenderQuality: Provides a trade-off between rendering quality and CPU load.
- AUAudioUnit.SetRenderQuality
- AUAudioUnit.ShouldBypassEffect: Determines whether an effect should route input directly to output, without any processing.
- AUAudioUnit.SetShouldBypassEffect
- AUAudioUnit.CanProcessInPlace: Determines whether an audio unit can process in place.
- AUAudioUnit.IsRenderingOffline: Communicates to an audio unit that it is rendering offline.
- AUAudioUnit.SetRenderingOffline
Describing the Audio Unit ¶
- AUAudioUnit.ComponentDescription: The component description with which the audio unit was created.
- AUAudioUnit.Component: The component found in the component description with which the audio unit was created.
- AUAudioUnit.ComponentName: The audio unit’s component’s name.
- AUAudioUnit.ComponentVersion: The audio unit’s component’s version.
- AUAudioUnit.AudioUnitName: The audio unit’s name, derived from the component’s name.
- AUAudioUnit.AudioUnitShortName
- AUAudioUnit.ManufacturerName: The manufacturer’s name, derived from the component’s name.
Configuring the Channel Capabilities ¶
- AUAudioUnit.ChannelCapabilities: Expresses valid combinations of input and output channels.
- AUAudioUnit.ChannelMap
- AUAudioUnit.SetChannelMap
- AUAudioUnit.ProfileStateForCableChannel
- AUAudioUnit.EnableProfileCableOnChannelError
- AUAudioUnit.DisableProfileCableOnChannelError
- AUAudioUnit.ProfileChangedBlock
- AUAudioUnit.SetProfileChangedBlock
Configuring the Device ¶
- AUAudioUnit.DeviceID: Gets the I/O hardware device.
- AUAudioUnit.SetDeviceIDError: Sets the I/O hardware device.
- AUAudioUnit.CanPerformInput: Determines whether the I/O device can perform input.
- AUAudioUnit.CanPerformOutput: Determines whether the I/O device can perform output.
- AUAudioUnit.IsInputEnabled: A flag enabling audio input from the unit.
- AUAudioUnit.SetInputEnabled
- AUAudioUnit.IsOutputEnabled: A flag enabling audio output from the unit.
- AUAudioUnit.SetOutputEnabled
- AUAudioUnit.InputHandler: The block that the output unit will call to notify when input is available.
- AUAudioUnit.SetInputHandler
- AUAudioUnit.OutputProvider: The block that the output unit will call to get audio to send to the output.
- AUAudioUnit.SetOutputProvider
- AUAudioUnit.DeviceInputLatency: The audio device’s input latency, in seconds.
- AUAudioUnit.DeviceOutputLatency: The audio devic’s output latency, in seconds.
- AUAudioUnit.StartHardwareAndReturnError: Starts the audio hardware.
- AUAudioUnit.StopHardware: Stops the audio hardware.
Configuring the User Interface ¶
- AUAudioUnit.ProvidesUserInterface: A Boolean that indicates whether the audio unit provides a user interface, normally in the form of a view controller.
- AUAudioUnit.SupportedViewConfigurations
- AUAudioUnit.SelectViewConfiguration
Getting the Runtime Behavior ¶
Instance properties ¶
- AUAudioUnit.AudioUnitMIDIProtocol
- AUAudioUnit.HostMIDIProtocol
- AUAudioUnit.SetHostMIDIProtocol
- AUAudioUnit.MIDIOutputEventListBlock
- AUAudioUnit.SetMIDIOutputEventListBlock
- AUAudioUnit.MigrateFromPlugin
- AUAudioUnit.ScheduleMIDIEventListBlock
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit
func AUAudioUnitFromID ¶
func AUAudioUnitFromID(id objc.ID) AUAudioUnit
AUAudioUnitFromID constructs a AUAudioUnit from an objc.ID.
A class that defines a host’s interface to an audio unit.
func NewAUAudioUnit ¶
func NewAUAudioUnit() AUAudioUnit
NewAUAudioUnit creates a new AUAudioUnit instance.
func NewAudioUnitWithComponentDescriptionError ¶
func NewAudioUnitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the convenience initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:)
func NewAudioUnitWithComponentDescriptionOptionsError ¶
func NewAudioUnitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnit, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
options: Options for loading the unit in-process or out-of-process.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the designated initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
func (AUAudioUnit) AllParameterValues ¶
func (a AUAudioUnit) AllParameterValues() bool
Special read-only property for KVO.
Discussion ¶
KVO notifications are issued on this property in response to certain events where potentially all parameter values are invalidated—for example, the selection of a preset.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/allParameterValues
func (AUAudioUnit) AllocateRenderResourcesAndReturnError ¶
func (a AUAudioUnit) AllocateRenderResourcesAndReturnError() (bool, error)
Allocates resources required to render audio.
Discussion ¶
- false if the operation failed.
Discussion ¶
Hosts must call this before beginning to render. Subclasses should call the superclass implementation.
This version 3 method is bridged to the version 2 AudioUnitInitialize API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/allocateRenderResources()
func (AUAudioUnit) AudioUnitMIDIProtocol ¶
func (a AUAudioUnit) AudioUnitMIDIProtocol() int32
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/audioUnitMIDIProtocol
func (AUAudioUnit) AudioUnitName ¶
func (a AUAudioUnit) AudioUnitName() string
The audio unit’s name, derived from the component’s name.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/audioUnitName
func (AUAudioUnit) AudioUnitShortName ¶
func (a AUAudioUnit) AudioUnitShortName() string
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/audioUnitShortName
func (AUAudioUnit) Autorelease ¶
func (a AUAudioUnit) Autorelease() AUAudioUnit
Autorelease adds the receiver to the current autorelease pool.
func (AUAudioUnit) CanPerformInput ¶
func (a AUAudioUnit) CanPerformInput() bool
Determines whether the I/O device can perform input.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/canPerformInput
func (AUAudioUnit) CanPerformOutput ¶
func (a AUAudioUnit) CanPerformOutput() bool
Determines whether the I/O device can perform output.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/canPerformOutput
func (AUAudioUnit) CanProcessInPlace ¶
func (a AUAudioUnit) CanProcessInPlace() bool
Determines 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. If so, the audio unit may process in-place in the input buffers.
This version 3 property is partially bridged to the version 2 `kAudioUnitProperty_InPlaceProcessing` API. It is not settable in version 3.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/canProcessInPlace
func (AUAudioUnit) ChannelCapabilities ¶
func (a AUAudioUnit) ChannelCapabilities() []foundation.NSNumber
Expresses valid combinations of input and output channels.
Discussion ¶
Array elements are NSNumber values containing integers.
The array index alternates between input and output counts, in ascending order of input/output channels—for example: [0] = first input count, [1] = first output count, [2] = second input count, [3] = second output count, etc.
Positive array values specify the number of input and/or output channels supported.
Negative array values have particular meanings. An input/output value pair of `(-1, -1)` (i.e. [0] = -1, [1] = -1) indicates that any number of channels are supported, as long as they are the same number for both input and output. An input/output value pair combination of `-1` and `-2` (e.g. [0] = -1, [1] = -2) also indicates that any number of channels are supported, but without the requirement that the input and output counts are the same. A negative value less than `-2` (e.g. [0] = -16) specifies a total number of channels across every bus in that scope, regardless of how many channels are set on any particular bus.
An array value of `0` (e.g. [0] = 0) specifies that the input/output channel is not applicable (though typically only used for input channels).
The table below shows a sample selection of valid input and output channel combinations:
[Table data omitted]
This version 3 property is bridged to the version 2 `kAudioUnitProperty_SupportedNumChannels` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/channelCapabilities
func (AUAudioUnit) ChannelMap ¶
func (a AUAudioUnit) ChannelMap() []foundation.NSNumber
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/channelMap
func (AUAudioUnit) Component ¶
func (a AUAudioUnit) Component() AudioComponent
The component found in the component description with which the audio unit was created.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/component
func (AUAudioUnit) ComponentDescription ¶
func (a AUAudioUnit) ComponentDescription() AudioComponentDescription
The component description with which the audio unit was created.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/componentDescription
func (AUAudioUnit) ComponentName ¶
func (a AUAudioUnit) ComponentName() string
The audio unit’s component’s name.
Discussion ¶
By convention, an audio unit’s component name is “AUAudioUnit.ManufacturerName: AUAudioUnit.AudioUnitName”.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/componentName
func (AUAudioUnit) ComponentVersion ¶
func (a AUAudioUnit) ComponentVersion() uint32
The audio unit’s component’s version.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/componentVersion
func (AUAudioUnit) ContextName ¶
func (a AUAudioUnit) ContextName() string
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 “My audio unit on track 3”.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_ContextName` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/contextName
func (AUAudioUnit) CurrentPreset ¶
func (a AUAudioUnit) CurrentPreset() IAUAudioUnitPreset
The audio unit’s last-selected preset.
Discussion ¶
Hosts can let the user select a preset by setting this property. When getting this property, the preset does not reflect whether parameters may have been modified since it was selected.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_PresentPreset` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/currentPreset
func (AUAudioUnit) DeallocateRenderResources ¶
func (a AUAudioUnit) DeallocateRenderResources()
Deallocates resources required to render audio.
Discussion ¶
Hosts should call this after finishing rendering. Subclasses should call the superclass implementation.
This version 3 method is bridged to the version 2 AudioUnitUninitialize API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deallocateRenderResources()
func (AUAudioUnit) DeleteUserPresetError ¶
func (a AUAudioUnit) DeleteUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deleteUserPreset(_:)
func (AUAudioUnit) DeviceID ¶
func (a AUAudioUnit) DeviceID() AUAudioObjectID
Gets the I/O hardware device.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deviceID
func (AUAudioUnit) DeviceInputLatency ¶
func (a AUAudioUnit) DeviceInputLatency() foundation.NSTimeInterval
The audio device’s input latency, in seconds.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deviceInputLatency
func (AUAudioUnit) DeviceOutputLatency ¶
func (a AUAudioUnit) DeviceOutputLatency() foundation.NSTimeInterval
The audio devic’s output latency, in seconds.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deviceOutputLatency
func (AUAudioUnit) DisableProfileCableOnChannelError ¶
func (a AUAudioUnit) DisableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
func (AUAudioUnit) EnableProfileCableOnChannelError ¶
func (a AUAudioUnit) EnableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/enable(_:cable:onChannel:)
func (AUAudioUnit) FactoryPresets ¶
func (a AUAudioUnit) FactoryPresets() []AUAudioUnitPreset
A collection of presets provided by the audio unit’s developer.
Discussion ¶
A preset provides audio unit users with an easily-selectable, fine-tuned set of parameters defined by the developer.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_FactoryPresets` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/factoryPresets
func (AUAudioUnit) FullState ¶
func (a AUAudioUnit) FullState() foundation.INSDictionary
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 other 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.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_ClassInfo` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/fullState
func (AUAudioUnit) FullStateForDocument ¶
func (a AUAudioUnit) FullStateForDocument() foundation.INSDictionary
A persistable snapshot of the audio unit’s properties and parameters, suitable for saving in a user’s document.
Discussion ¶
Hosts may use this property to save and restore the state of an audio unit being used. Some state, such as a parameter value, is suitable for saving in a user preset. Other state, such as a synthesizer’s primary tuning setting, could be considered global state suitable for saving in a user document.
Subclasses that do not implement this property interface with the AUAudioUnit.FullState property instead.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_ClassInfoFromDocument` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/fullStateForDocument
func (AUAudioUnit) HostMIDIProtocol ¶
func (a AUAudioUnit) HostMIDIProtocol() int32
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/hostMIDIProtocol
func (AUAudioUnit) InitWithComponentDescriptionError ¶
func (a AUAudioUnit) InitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the convenience initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:)
func (AUAudioUnit) InitWithComponentDescriptionOptionsError ¶
func (a AUAudioUnit) InitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnit, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
options: Options for loading the unit in-process or out-of-process.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the designated initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
func (AUAudioUnit) InputBusses ¶
func (a AUAudioUnit) InputBusses() IAUAudioUnitBusArray
An array containing the audio unit’s input connection points.
Discussion ¶
Subclasses must override this property’s getter. The audio unit should return the same object every time it is asked for it, since hosts can install KVO observers on it.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/inputBusses
func (AUAudioUnit) InputHandler ¶
func (a AUAudioUnit) InputHandler() AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler
The block that the output unit will call to notify when input is available.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/inputHandler
func (AUAudioUnit) InternalRenderBlock ¶
func (a AUAudioUnit) InternalRenderBlock() IntAudioUnitRenderActionFlagsHandler
The block which you must provide, via a getter, in order to implement rendering.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/internalRenderBlock
func (AUAudioUnit) IsInputEnabled ¶
func (a AUAudioUnit) IsInputEnabled() bool
A flag enabling audio input from the unit.
Discussion ¶
The default value is false.
If your audio unit desires input audio, this property must be set to true and the value of AUAudioUnit.CanPerformInput must also be true.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isInputEnabled
func (AUAudioUnit) IsLoadedInProcess ¶
func (a AUAudioUnit) IsLoadedInProcess() bool
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isLoadedInProcess
func (AUAudioUnit) IsMusicDeviceOrEffect ¶
func (a AUAudioUnit) IsMusicDeviceOrEffect() bool
Specifies whether an audio unit responds to MIDI events.
Discussion ¶
Returns true if the audio unit is a music device or effect.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isMusicDeviceOrEffect
func (AUAudioUnit) IsOutputEnabled ¶
func (a AUAudioUnit) IsOutputEnabled() bool
A flag enabling audio output from the unit.
Discussion ¶
The default value is true.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isOutputEnabled
func (AUAudioUnit) IsRenderingOffline ¶
func (a AUAudioUnit) IsRenderingOffline() bool
Communicates to an audio unit that it is rendering offline.
Discussion ¶
A host should use this property when using an audio unit in a context where there are no realtime deadlines. 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.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_OfflineRender` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isRenderingOffline
func (AUAudioUnit) IsRunning ¶
func (a AUAudioUnit) IsRunning() bool
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/isRunning
func (AUAudioUnit) Latency ¶
func (a AUAudioUnit) Latency() foundation.NSTimeInterval
The audio unit’s processing latency, in seconds.
Discussion ¶
This property reflects the delay between when an impulse arrives in the input stream vs. output stream. This should reflect the delay due to signal processing (e.g. FFTs), not as an effect (e.g. reverberation).
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. a value of `0`).
This version 3 property is bridged to the version 2 `kAudioUnitProperty_Latency` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/latency
func (AUAudioUnit) MIDIOutputBufferSizeHint ¶
func (a AUAudioUnit) MIDIOutputBufferSizeHint() int
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/midiOutputBufferSizeHint
func (AUAudioUnit) MIDIOutputEventBlock ¶
func (a AUAudioUnit) MIDIOutputEventBlock() IntInt64Handler
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/midiOutputEventBlock
func (AUAudioUnit) MIDIOutputEventListBlock ¶
func (a AUAudioUnit) MIDIOutputEventListBlock() IntInt64Handler
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/midiOutputEventListBlock
func (AUAudioUnit) MIDIOutputNames ¶
func (a AUAudioUnit) MIDIOutputNames() []string
The names of the MIDI outputs.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/midiOutputNames
func (AUAudioUnit) ManufacturerName ¶
func (a AUAudioUnit) ManufacturerName() string
The manufacturer’s name, derived from the component’s name.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/manufacturerName
func (AUAudioUnit) MaximumFramesToRender ¶
func (a AUAudioUnit) MaximumFramesToRender() AUAudioFrameCount
The maximum number of frames that 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.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_MaximumFramesPerSlice` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/maximumFramesToRender
func (AUAudioUnit) MessageChannelFor ¶
func (a AUAudioUnit) MessageChannelFor(channelName string) AUMessageChannel
Returns an object for bidirectional communication between an audio unit and its host.
channelName: The name of the message channel the audio unit returns.
Return Value ¶
An object that conforms to AUMessageChannel.
Discussion ¶
Message channels provide a way for custom data exchanges between an audio unit and its host. An audio unit may support multiple message channels.
The host manages the message channel object’s lifetime. Design message channel objects so they can outlive the audio unit that vended them.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/messageChannel(for:)
func (AUAudioUnit) MigrateFromPlugin ¶
func (a AUAudioUnit) MigrateFromPlugin() foundation.INSArray
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/migrateFromPlugin
func (AUAudioUnit) MusicalContextBlock ¶
func (a AUAudioUnit) MusicalContextBlock() AUHostMusicalContextBlock
A callback to the host for musical context information.
Discussion ¶
An audio unit accessing this property should cache it in realtime-safe storage before beginning to render.
This version 3 property is bridged to the version 2 HostCallback_GetBeatAndTempo and HostCallback_GetMusicalTimeLocation callback members in the `kAudioUnitProperty_HostCallbacks` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/musicalContextBlock
func (AUAudioUnit) OsWorkgroup ¶
func (a AUAudioUnit) OsWorkgroup() os.OSWorkgroup
The workgroup associated with the audio device underlying this Audio Unit.
Discussion ¶
Workgroups allow multiple threads to coordinate their activities for realtime operations. For Audio Units, this coordination occurs between the Audio Unit and other processes, such as the audio server and host app. The system uses the workgroup to observe the threads’ CPU usage and dynamically balance the competing considerations of power consumption and real-time rendering capacity.
This version 3 property is bridged to the version 2 KAudioOutputUnitProperty_OSWorkgroup property.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/osWorkgroup
func (AUAudioUnit) OutputBusses ¶
func (a AUAudioUnit) OutputBusses() IAUAudioUnitBusArray
An array containing the audio unit’s output connection points.
Discussion ¶
Subclasses must override this property’s getter. The audio unit should return the same object every time it is asked for it, since hosts can install KVO observers on it.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/outputBusses
func (AUAudioUnit) OutputProvider ¶
func (a AUAudioUnit) OutputProvider() IntAudioUnitRenderActionFlagsHandler
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.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/outputProvider
func (AUAudioUnit) ParameterTree ¶
func (a AUAudioUnit) ParameterTree() IAUParameterTree
An audio unit’s parameters, organized in a tree hierarchy.
Discussion ¶
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.
Subclasses should implement this property to expose parameters to hosts. They should then cache as much data as possible and send KVO notifications on this property when altering the structure of the tree or the static information of parameters.
This version 3 property is similar to the version 2 `kAudioUnitProperty_ParameterList` and `kAudioUnitProperty_ParameterInfo` APIs.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/parameterTree
func (AUAudioUnit) ParametersForOverviewWithCount ¶
func (a AUAudioUnit) ParametersForOverviewWithCount(count int) []foundation.NSNumber
Returns the audio unit’s most important parameters.
count: The number of parameters to return.
Return Value ¶
An array of addresses representing the audio unit’s most important parameters.
Discussion ¶
This method allows a host to query an audio unit for a small number of its most important parameters, to be displayed in a compact generic view.
This version 3 method is partially bridged to the version 2 `kAudioUnitProperty_ParametersForOverview` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/parametersForOverview(withCount:)
func (AUAudioUnit) PresetStateForError ¶
func (a AUAudioUnit) PresetStateForError(userPreset IAUAudioUnitPreset) (foundation.INSDictionary, error)
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/presetState(for:)
func (AUAudioUnit) ProfileChangedBlock ¶
func (a AUAudioUnit) ProfileChangedBlock() Uint32Uint32MIDICIProfileBoolHandler
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/profileChangedBlock
func (AUAudioUnit) ProfileStateForCableChannel ¶
func (a AUAudioUnit) ProfileStateForCableChannel(cable uint8, channel MIDIChannelNumber) coremidi.MIDICIProfileState
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/profileState(forCable:channel:)
func (AUAudioUnit) ProvidesUserInterface ¶
func (a AUAudioUnit) ProvidesUserInterface() bool
A Boolean that indicates whether the audio unit provides a user interface, normally in the form of a view controller.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/providesUserInterface
func (AUAudioUnit) RemoveRenderObserver ¶
func (a AUAudioUnit) RemoveRenderObserver(token int)
Removes an observer block previously added to the render cycle.
token: The token associated with the block.
Discussion ¶
This version 3 property is bridged to the version 2 AudioUnitRemoveRenderNotify API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/removeRenderObserver(_:)
func (AUAudioUnit) RenderBlock ¶
func (a AUAudioUnit) RenderBlock() IntAudioUnitRenderActionFlagsHandler
The block that hosts use to ask the audio unit to render audio.
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’s AUAudioUnit.InternalRenderBlock implementation, providing all realtime events scheduled for the current render time interval, bracketed by calls to any render observers. Subclasses should override their AUAudioUnit.InternalRenderBlock implementation, not this property.
This version 3 property is bridged to the version 2 AudioUnitRender API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/renderBlock
func (AUAudioUnit) RenderContextObserver ¶
func (a AUAudioUnit) RenderContextObserver() conststructAudioUnitRenderContextHandler
The block that the system calls when the rendering context changes.
Discussion ¶
Implement this property if your Audio Unit creates auxilliary realtime rendering threads. Return a block for the system to call when the rendering context changes.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/renderContextObserver
func (AUAudioUnit) RenderQuality ¶
func (a AUAudioUnit) RenderQuality() int
Provides a trade-off between rendering quality and CPU load.
Discussion ¶
The range of valid values is 0 to 127.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_RenderQuality` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/renderQuality
func (AUAudioUnit) RenderResourcesAllocated ¶
func (a AUAudioUnit) RenderResourcesAllocated() bool
Determines whether the audio unit has allocated render resources.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/renderResourcesAllocated
func (AUAudioUnit) Reset ¶
func (a AUAudioUnit) Reset()
Resets 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, audio units should clear delay lines, filters, etc. Subclasses should call the superclass implementation.
This version 3 method is bridged to the version 2 AudioUnitReset API, in the global scope.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/reset()
func (AUAudioUnit) SaveUserPresetError ¶
func (a AUAudioUnit) SaveUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/saveUserPreset(_:)
func (AUAudioUnit) ScheduleMIDIEventBlock ¶
func (a AUAudioUnit) ScheduleMIDIEventBlock() AUScheduleMIDIEventBlock
A block used to schedule MIDI events.
Discussion ¶
As with the render block, a host should fetch this block before beginning to render, if it intends to schedule MIDI events.
This property is implemented in the AUAudioUnit base class. If the audio unit is not a music device or effect, this property is `nil`.
Subclasses should not override this property. When hosts schedule events via this block, they are delivered to the audio unit via the list of render events delivered to the AUAudioUnit.InternalRenderBlock implementation.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/scheduleMIDIEventBlock
func (AUAudioUnit) ScheduleMIDIEventListBlock ¶
func (a AUAudioUnit) ScheduleMIDIEventListBlock() IntInt64Handler
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/scheduleMIDIEventListBlock
func (AUAudioUnit) ScheduleParameterBlock ¶
func (a AUAudioUnit) ScheduleParameterBlock() Int64Uint32Uint64Float32Handler
The block that hosts use to schedule parameters.
Discussion ¶
As with the render block, a host should fetch this block before beginning to render, if it intends to schedule parameters.
The block is safe to call from any thread context, including realtime audio render threads. Subclasses should not override this; it is implemented in the base class and will schedule the events to be provided to the AUAudioUnit.InternalRenderBlock implementation
This version 3 property is bridged to the version 2 AudioUnitScheduleParameters API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/scheduleParameterBlock
func (AUAudioUnit) SelectViewConfiguration ¶
func (a AUAudioUnit) SelectViewConfiguration(viewConfiguration objectivec.IObject)
viewConfiguration is a [*coreaudiokit.AUAudioUnitViewConfiguration].
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/select(_:)
func (AUAudioUnit) SetChannelMap ¶
func (a AUAudioUnit) SetChannelMap(value []foundation.NSNumber)
func (AUAudioUnit) SetContextName ¶
func (a AUAudioUnit) SetContextName(value string)
func (AUAudioUnit) SetCurrentPreset ¶
func (a AUAudioUnit) SetCurrentPreset(value IAUAudioUnitPreset)
func (AUAudioUnit) SetDeviceIDError ¶
func (a AUAudioUnit) SetDeviceIDError(deviceID AUAudioObjectID) (bool, error)
Sets the I/O hardware device.
deviceID: The device to set.
Discussion ¶
- false if the operation failed.
Discussion ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/setDeviceID(_:)
func (AUAudioUnit) SetFullState ¶
func (a AUAudioUnit) SetFullState(value foundation.INSDictionary)
func (AUAudioUnit) SetFullStateForDocument ¶
func (a AUAudioUnit) SetFullStateForDocument(value foundation.INSDictionary)
func (AUAudioUnit) SetHostMIDIProtocol ¶
func (a AUAudioUnit) SetHostMIDIProtocol(value int32)
func (AUAudioUnit) SetInputEnabled ¶
func (a AUAudioUnit) SetInputEnabled(value bool)
func (AUAudioUnit) SetInputHandler ¶
func (a AUAudioUnit) SetInputHandler(value AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler)
func (AUAudioUnit) SetMIDIOutputBufferSizeHint ¶
func (a AUAudioUnit) SetMIDIOutputBufferSizeHint(value int)
func (AUAudioUnit) SetMIDIOutputEventBlock ¶
func (a AUAudioUnit) SetMIDIOutputEventBlock(value IntInt64Handler)
func (AUAudioUnit) SetMIDIOutputEventListBlock ¶
func (a AUAudioUnit) SetMIDIOutputEventListBlock(value IntInt64Handler)
func (AUAudioUnit) SetMaximumFramesToRender ¶
func (a AUAudioUnit) SetMaximumFramesToRender(value AUAudioFrameCount)
func (AUAudioUnit) SetMusicalContextBlock ¶
func (a AUAudioUnit) SetMusicalContextBlock(value objc.ID)
func (AUAudioUnit) SetOutputEnabled ¶
func (a AUAudioUnit) SetOutputEnabled(value bool)
func (AUAudioUnit) SetOutputProvider ¶
func (a AUAudioUnit) SetOutputProvider(value IntAudioUnitRenderActionFlagsHandler)
func (AUAudioUnit) SetParameterTree ¶
func (a AUAudioUnit) SetParameterTree(value IAUParameterTree)
func (AUAudioUnit) SetProfileChangedBlock ¶
func (a AUAudioUnit) SetProfileChangedBlock(value Uint32Uint32MIDICIProfileBoolHandler)
func (AUAudioUnit) SetRenderQuality ¶
func (a AUAudioUnit) SetRenderQuality(value int)
func (AUAudioUnit) SetRenderingOffline ¶
func (a AUAudioUnit) SetRenderingOffline(value bool)
func (AUAudioUnit) SetShouldBypassEffect ¶
func (a AUAudioUnit) SetShouldBypassEffect(value bool)
func (AUAudioUnit) SetTransportStateBlock ¶
func (a AUAudioUnit) SetTransportStateBlock(value objc.ID)
func (AUAudioUnit) ShouldBypassEffect ¶
func (a AUAudioUnit) ShouldBypassEffect() bool
Determines whether an effect should route input directly to output, without any processing.
Discussion ¶
This version 3 property is bridged to the version 2 `kAudioUnitProperty_BypassEffect` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/shouldBypassEffect
func (AUAudioUnit) ShouldChangeToFormatForBus ¶
func (a AUAudioUnit) ShouldChangeToFormatForBus(format objectivec.IObject, bus IAUAudioUnitBus) bool
This is called when you set the format on a bus.
format: The proposed new format.
bus: The bus on which the format will be changed.
format is a [*avfaudio.AVAudioFormat].
Return Value ¶
- true if the new format will be set on the bus.
Discussion ¶
- false if the new format will not be set on the bus.
Discussion ¶
The bus has already checked that the format meets its channel constraints. The audio unit can override this method to check the format before allowing it to be set on the bus.
The default implementation returns false if the audio unit’s AUAudioUnit.RenderResourcesAllocated value is true.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/shouldChange(to:for:)
func (AUAudioUnit) StartHardwareAndReturnError ¶
func (a AUAudioUnit) StartHardwareAndReturnError() (bool, error)
Starts the audio hardware.
Discussion ¶
- false if the operation failed.
Discussion ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/startHardware()
func (AUAudioUnit) StopHardware ¶
func (a AUAudioUnit) StopHardware()
Stops the audio hardware.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/stopHardware()
func (AUAudioUnit) SupportedViewConfigurations ¶
func (a AUAudioUnit) SupportedViewConfigurations(availableViewConfigurations []objectivec.IObject) foundation.NSIndexSet
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/supportedViewConfigurations(_:)
func (AUAudioUnit) SupportsMPE ¶
func (a AUAudioUnit) SupportsMPE() bool
A Boolean value that indicates whether the audio unit supports multi-dimensional polyphonic expression.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/supportsMPE
func (AUAudioUnit) SupportsUserPresets ¶
func (a AUAudioUnit) SupportsUserPresets() bool
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/supportsUserPresets
func (AUAudioUnit) TailTime ¶
func (a AUAudioUnit) TailTime() foundation.NSTimeInterval
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. This should also reflect the duration of an effect (e.g. reverberation).
This version 3 property is bridged to the version 2 `kAudioUnitProperty_TailTime` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/tailTime
func (AUAudioUnit) TokenByAddingRenderObserver ¶
func (a AUAudioUnit) TokenByAddingRenderObserver(observer IntAudioTimeStampUint32Int64Handler) int
Adds a block to be called on each render cycle.
observer: The block to call.
Return Value ¶
A token to be used when removing the observer.
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 AUAudioUnit base class and should not be overridden.
This version 3 method is bridged to the version 2 AudioUnitAddRenderNotify API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/token(byAddingRenderObserver:)
func (AUAudioUnit) TransportStateBlock ¶
func (a AUAudioUnit) TransportStateBlock() AUHostTransportStateBlock
A callback to the host for transport state information.
Discussion ¶
An audio unit accessing this property should cache it in realtime-safe storage before beginning to render.
This version 3 property is bridged to the version 2 HostCallback_GetTransportState and `HostCallback_GetTransportState2` callback members in the `kAudioUnitProperty_HostCallbacks` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/transportStateBlock
func (AUAudioUnit) UserPresets ¶
func (a AUAudioUnit) UserPresets() []AUAudioUnitPreset
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/userPresets
func (AUAudioUnit) VirtualMIDICableCount ¶
func (a AUAudioUnit) VirtualMIDICableCount() int
The number of virtual MIDI cables implemented by a music device or effect.
Discussion ¶
A music device or effect can support up to 256 virtual MIDI cables of input.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/virtualMIDICableCount
type AUAudioUnitBus ¶
type AUAudioUnitBus struct {
objectivec.Object
}
A class that defines an input or output connection point on an audio unit.
Bus Methods and Properties ¶
- AUAudioUnitBus.SetFormatError: Sets the bus’s audio format.
- AUAudioUnitBus.Format: The audio format and channel layout of audio being transferred on the bus.
- AUAudioUnitBus.IsEnabled: Determines whether the bus is active.
- AUAudioUnitBus.SetEnabled
- AUAudioUnitBus.Name: A name for the bus.
- AUAudioUnitBus.SetName
- AUAudioUnitBus.Index: The index of this bus in its containing array.
- AUAudioUnitBus.BusType: The bus type.
- AUAudioUnitBus.OwnerAudioUnit: The audio unit that owns the bus.
- AUAudioUnitBus.SupportedChannelLayoutTags: An array of audio channel layout tags.
- AUAudioUnitBus.ContextPresentationLatency: Information about latency in the audio unit’s processing context.
- AUAudioUnitBus.SetContextPresentationLatency
- AUAudioUnitBus.ShouldAllocateBuffer
- AUAudioUnitBus.SetShouldAllocateBuffer
Audio Unit Implementations ¶
- AUAudioUnitBus.InitWithFormatError: Initializes a bus object with a specific format.
- AUAudioUnitBus.SupportedChannelCounts: An array of numbers indicating the supported number of channels for this bus.
- AUAudioUnitBus.SetSupportedChannelCounts
- AUAudioUnitBus.MaximumChannelCount: The maximum number of channels supported for this bus.
- AUAudioUnitBus.SetMaximumChannelCount
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus
func AUAudioUnitBusFromID ¶
func AUAudioUnitBusFromID(id objc.ID) AUAudioUnitBus
AUAudioUnitBusFromID constructs a AUAudioUnitBus from an objc.ID.
A class that defines an input or output connection point on an audio unit.
func NewAUAudioUnitBus ¶
func NewAUAudioUnitBus() AUAudioUnitBus
NewAUAudioUnitBus creates a new AUAudioUnitBus instance.
func NewAudioUnitBusWithFormatError ¶
func NewAudioUnitBusWithFormatError(format objectivec.IObject) (AUAudioUnitBus, error)
Initializes a bus object with a specific format.
format: The initial audio format.
Return Value ¶
A newly-initialized bus object, or `nil` if the operation failed.
Discussion ¶
Audio units can generally be expected to support the AVAudioFormat standard format (deinterleaved 32-bit float), at any sample rate.
Channel counts can be more complex. See the AUAudioUnit.ChannelCapabilities reference for a more complete discussion.
Initialization will fail and return an error if the specified format is unsupported for the bus.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/init(format:)
func (AUAudioUnitBus) Autorelease ¶
func (a AUAudioUnitBus) Autorelease() AUAudioUnitBus
Autorelease adds the receiver to the current autorelease pool.
func (AUAudioUnitBus) BusType ¶
func (a AUAudioUnitBus) BusType() AUAudioUnitBusType
The bus type.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/busType
func (AUAudioUnitBus) ContextPresentationLatency ¶
func (a AUAudioUnitBus) ContextPresentationLatency() foundation.NSTimeInterval
Information about latency in the audio unit’s processing context.
Discussion ¶
A host may set this property to describe the presentation latency, in seconds, of its input and/or output audio data. A value of `0` means either no latency or 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. The meaning of this property’s value differs between input and output busses, as described below:
- For input busses, this value describes how long ago the audio arriving on this bus was acquired.
For example, 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 offset and latency). A second chained audio unit’s input presentation latency is the input presentation latency of the first unit, plus the processing latency of the first unit.
- For output busses, this value describes how long it will be before the output audio of an audio unit is presented.
For example, 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 (i.e. the I/O buffer size) plus the device’s safety offset and latency. A previously chained audio unit’s output presentation latency is the last unit’s presentation latency plus its processing latency.
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.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_PresentationLatency` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/contextPresentationLatency
func (AUAudioUnitBus) Format ¶
func (a AUAudioUnitBus) Format() objectivec.IObject
The audio format and channel layout of audio being transferred on the bus.
Discussion ¶
This version 3 property is bridged to the version 2 `kAudioUnitProperty_StreamFormat` API.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/format
func (AUAudioUnitBus) Index ¶
func (a AUAudioUnitBus) Index() uint
The index of this bus in its containing array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/index
func (AUAudioUnitBus) Init ¶
func (a AUAudioUnitBus) Init() AUAudioUnitBus
Init initializes the instance.
func (AUAudioUnitBus) InitWithFormatError ¶
func (a AUAudioUnitBus) InitWithFormatError(format objectivec.IObject) (AUAudioUnitBus, error)
Initializes a bus object with a specific format.
format: The initial audio format.
format is a [*avfaudio.AVAudioFormat].
Return Value ¶
A newly-initialized bus object, or `nil` if the operation failed.
Discussion ¶
Audio units can generally be expected to support the AVAudioFormat standard format (deinterleaved 32-bit float), at any sample rate.
Channel counts can be more complex. See the AUAudioUnit.ChannelCapabilities reference for a more complete discussion.
Initialization will fail and return an error if the specified format is unsupported for the bus.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/init(format:)
func (AUAudioUnitBus) IsEnabled ¶
func (a AUAudioUnitBus) IsEnabled() bool
Determines whether the bus is active.
Discussion ¶
Hosts must enable input busses before using them. This allows an audio unit to be prepared to render a large number of inputs, but avoid the work of preparing to pull inputs which are not in use.
This version 3 property is bridged to the version 2 `kAudioUnitProperty_MakeConnection` and `kAudioUnitProperty_SetRenderCallback` APIs.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/isEnabled
func (AUAudioUnitBus) MaximumChannelCount ¶
func (a AUAudioUnitBus) MaximumChannelCount() AUAudioChannelCount
The maximum number of channels supported for this bus.
Discussion ¶
If the value of AUAudioUnitBus.SupportedChannelCounts is set, then this value is derived from it. If setting a new value on this property makes the current bus format unsupported, then the value of AUAudioUnitBus.Format is set to `nil`.
The default value is `UINT_MAX`.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/maximumChannelCount
func (AUAudioUnitBus) Name ¶
func (a AUAudioUnitBus) Name() string
A name for the bus.
Discussion ¶
The bus name can be set by the host.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/name
func (AUAudioUnitBus) OwnerAudioUnit ¶
func (a AUAudioUnitBus) OwnerAudioUnit() IAUAudioUnit
The audio unit that owns the bus.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/ownerAudioUnit
func (AUAudioUnitBus) SetContextPresentationLatency ¶
func (a AUAudioUnitBus) SetContextPresentationLatency(value foundation.NSTimeInterval)
func (AUAudioUnitBus) SetEnabled ¶
func (a AUAudioUnitBus) SetEnabled(value bool)
func (AUAudioUnitBus) SetFormatError ¶
func (a AUAudioUnitBus) SetFormatError(format objectivec.IObject) (bool, error)
Sets the bus’s audio format.
format: The desired audio format.
format is a [*avfaudio.AVAudioFormat].
Discussion ¶
- false if the operation failed.
Discussion ¶
Audio units can generally be expected to support the AVAudioFormat standard format (deinterleaved 32-bit float), at any sample rate.
Channel counts can be more complex. See the AUAudioUnit.ChannelCapabilities reference for a more complete discussion.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/setFormat(_:)
func (AUAudioUnitBus) SetMaximumChannelCount ¶
func (a AUAudioUnitBus) SetMaximumChannelCount(value AUAudioChannelCount)
func (AUAudioUnitBus) SetName ¶
func (a AUAudioUnitBus) SetName(value string)
func (AUAudioUnitBus) SetShouldAllocateBuffer ¶
func (a AUAudioUnitBus) SetShouldAllocateBuffer(value bool)
func (AUAudioUnitBus) SetSupportedChannelCounts ¶
func (a AUAudioUnitBus) SetSupportedChannelCounts(value []foundation.NSNumber)
func (AUAudioUnitBus) ShouldAllocateBuffer ¶
func (a AUAudioUnitBus) ShouldAllocateBuffer() bool
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/shouldAllocateBuffer
func (AUAudioUnitBus) SupportedChannelCounts ¶
func (a AUAudioUnitBus) SupportedChannelCounts() []foundation.NSNumber
An array of numbers indicating the supported number of channels for this bus.
Discussion ¶
If the value of this property is `nil`, then any number less than or equal to the value of AUAudioUnitBus.MaximumChannelCount is supported. If setting a new value on this property makes the current bus format unsupported, then the value of AUAudioUnitBus.Format is set to `nil`.
The default value is `nil`.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/supportedChannelCounts
func (AUAudioUnitBus) SupportedChannelLayoutTags ¶
func (a AUAudioUnitBus) SupportedChannelLayoutTags() []foundation.NSNumber
An array of audio channel layout tags.
Discussion ¶
The array contains NSNumber objects representing AudioChannelLayoutTag values.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus/supportedChannelLayoutTags
type AUAudioUnitBusArray ¶
type AUAudioUnitBusArray struct {
objectivec.Object
}
A class that defines a container for an audio unit’s input or output busses.
Overview ¶
Hosts can observe a bus property across all busses by using KVO on a bus array object, without having to observe it on each individual bus. Some audio units (e.g. mixers) support variable numbers of busses, via subclassing. When the bus count changes, a KVO notification is sent on the audio unit’s AUAudioUnit.InputBusses or AUAudioUnit.OutputBusses property, as appropriate.
This version 3 class is bridged to the version 2 `kAudioUnitProperty_ElementCount` API.
Initialization ¶
- AUAudioUnitBusArray.InitWithAudioUnitBusType: Initializes an empty bus array.
- AUAudioUnitBusArray.InitWithAudioUnitBusTypeBusses: Initializes a bus array by making a copy of the supplied busses.
Bus Array Methods and Properties ¶
- AUAudioUnitBusArray.Count: The number of busses in the array.
- AUAudioUnitBusArray.IsCountChangeable: Determines whether the array can have a variable number of busses.
- AUAudioUnitBusArray.OwnerAudioUnit: The audio unit that owns the bus array.
- AUAudioUnitBusArray.BusType: Determines whether the bus array is for input or output.
- AUAudioUnitBusArray.ObjectAtIndexedSubscript: Returns the bus at the specified index.
- AUAudioUnitBusArray.SetBusCountError: Changes the number of busses in the array.
- AUAudioUnitBusArray.AddObserverToAllBussesForKeyPathOptionsContext: Adds a KVO observer for a given property on all busses in the array.
- AUAudioUnitBusArray.RemoveObserverFromAllBussesForKeyPathContext: Removes a KVO observer for a given property on all busses in the array.
Audio Unit Implementations ¶
- AUAudioUnitBusArray.ReplaceBusses: Replaces the current bus array with a copy of the supplied bus array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray
func AUAudioUnitBusArrayFromID ¶
func AUAudioUnitBusArrayFromID(id objc.ID) AUAudioUnitBusArray
AUAudioUnitBusArrayFromID constructs a AUAudioUnitBusArray from an objc.ID.
A class that defines a container for an audio unit’s input or output busses.
func NewAUAudioUnitBusArray ¶
func NewAUAudioUnitBusArray() AUAudioUnitBusArray
NewAUAudioUnitBusArray creates a new AUAudioUnitBusArray instance.
func NewAudioUnitBusArrayWithAudioUnitBusType ¶
func NewAudioUnitBusArrayWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray
Initializes an empty bus array.
owner: The audio unit that owns the bus array.
busType: Determines whether the bus array is for input or output.
Return Value ¶
A newly-initialized bus array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/init(audioUnit:busType:)
func NewAudioUnitBusArrayWithAudioUnitBusTypeBusses ¶
func NewAudioUnitBusArrayWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray
Initializes a bus array by making a copy of the supplied busses.
owner: The audio unit that owns the bus array.
busType: Determines whether the busses are for input or output.
busArray: An array of busses.
Return Value ¶
A newly-initialized bus array.
func (AUAudioUnitBusArray) AddObserverToAllBussesForKeyPathOptionsContext ¶
func (a AUAudioUnitBusArray) AddObserverToAllBussesForKeyPathOptionsContext(observer objectivec.NSObject, keyPath string, options uint, context unsafe.Pointer)
Adds a KVO observer for a given property on all busses in the array.
observer: The KVO observer.
keyPath: The property’s key path.
options: The KVO options.
context: The KVO context.
func (AUAudioUnitBusArray) Autorelease ¶
func (a AUAudioUnitBusArray) Autorelease() AUAudioUnitBusArray
Autorelease adds the receiver to the current autorelease pool.
func (AUAudioUnitBusArray) BusType ¶
func (a AUAudioUnitBusArray) BusType() AUAudioUnitBusType
Determines whether the bus array is for input or output.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/busType
func (AUAudioUnitBusArray) Count ¶
func (a AUAudioUnitBusArray) Count() uint
The number of busses in the array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/count
func (AUAudioUnitBusArray) Init ¶
func (a AUAudioUnitBusArray) Init() AUAudioUnitBusArray
Init initializes the instance.
func (AUAudioUnitBusArray) InitWithAudioUnitBusType ¶
func (a AUAudioUnitBusArray) InitWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray
Initializes an empty bus array.
owner: The audio unit that owns the bus array.
busType: Determines whether the bus array is for input or output.
Return Value ¶
A newly-initialized bus array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/init(audioUnit:busType:)
func (AUAudioUnitBusArray) InitWithAudioUnitBusTypeBusses ¶
func (a AUAudioUnitBusArray) InitWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray
Initializes a bus array by making a copy of the supplied busses.
owner: The audio unit that owns the bus array.
busType: Determines whether the busses are for input or output.
busArray: An array of busses.
Return Value ¶
A newly-initialized bus array.
func (AUAudioUnitBusArray) IsCountChangeable ¶
func (a AUAudioUnitBusArray) IsCountChangeable() bool
Determines whether the array can have a variable number of busses.
Discussion ¶
The base implementation default value is false.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/isCountChangeable
func (AUAudioUnitBusArray) ObjectAtIndexedSubscript ¶
func (a AUAudioUnitBusArray) ObjectAtIndexedSubscript(index uint) IAUAudioUnitBus
Returns the bus at the specified index.
index: An index corresponding to a bus in the array.
Return Value ¶
The bus located at the specified index.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/subscript(_:)
func (AUAudioUnitBusArray) OwnerAudioUnit ¶
func (a AUAudioUnitBusArray) OwnerAudioUnit() IAUAudioUnit
The audio unit that owns the bus array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/ownerAudioUnit
func (AUAudioUnitBusArray) RemoveObserverFromAllBussesForKeyPathContext ¶
func (a AUAudioUnitBusArray) RemoveObserverFromAllBussesForKeyPathContext(observer objectivec.NSObject, keyPath string, context unsafe.Pointer)
Removes a KVO observer for a given property on all busses in the array.
observer: The KVO observer.
keyPath: The property’s key path.
context: The KVO context.
func (AUAudioUnitBusArray) ReplaceBusses ¶
func (a AUAudioUnitBusArray) ReplaceBusses(busArray []AUAudioUnitBus)
Replaces the current bus array with a copy of the supplied bus array.
busArray: The new bus array.
Discussion ¶
The base class issues KVO notifications.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/replaceBusses(_:)
func (AUAudioUnitBusArray) SetBusCountError ¶
func (a AUAudioUnitBusArray) SetBusCountError(count uint) (bool, error)
Changes the number of busses in the array.
count: The new number of busses in the array.
Discussion ¶
- false if the operation failed.
Discussion ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/setBusCount(_:)
type AUAudioUnitBusArrayClass ¶
type AUAudioUnitBusArrayClass struct {
// contains filtered or unexported fields
}
func GetAUAudioUnitBusArrayClass ¶
func GetAUAudioUnitBusArrayClass() AUAudioUnitBusArrayClass
GetAUAudioUnitBusArrayClass returns the class object for AUAudioUnitBusArray.
func (AUAudioUnitBusArrayClass) Alloc ¶
func (ac AUAudioUnitBusArrayClass) Alloc() AUAudioUnitBusArray
Alloc allocates memory for a new instance of the class.
func (AUAudioUnitBusArrayClass) Class ¶
func (ac AUAudioUnitBusArrayClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUAudioUnitBusClass ¶
type AUAudioUnitBusClass struct {
// contains filtered or unexported fields
}
func GetAUAudioUnitBusClass ¶
func GetAUAudioUnitBusClass() AUAudioUnitBusClass
GetAUAudioUnitBusClass returns the class object for AUAudioUnitBus.
func (AUAudioUnitBusClass) Alloc ¶
func (ac AUAudioUnitBusClass) Alloc() AUAudioUnitBus
Alloc allocates memory for a new instance of the class.
func (AUAudioUnitBusClass) Class ¶
func (ac AUAudioUnitBusClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUAudioUnitBusType ¶
type AUAudioUnitBusType int
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusType
const ( // AUAudioUnitBusTypeInput: An input bus. AUAudioUnitBusTypeInput AUAudioUnitBusType = 1 // AUAudioUnitBusTypeOutput: An output bus. AUAudioUnitBusTypeOutput AUAudioUnitBusType = 2 )
func (AUAudioUnitBusType) String ¶
func (e AUAudioUnitBusType) String() string
type AUAudioUnitClass ¶
type AUAudioUnitClass struct {
// contains filtered or unexported fields
}
func GetAUAudioUnitClass ¶
func GetAUAudioUnitClass() AUAudioUnitClass
GetAUAudioUnitClass returns the class object for AUAudioUnit.
func (AUAudioUnitClass) Alloc ¶
func (ac AUAudioUnitClass) Alloc() AUAudioUnit
Alloc allocates memory for a new instance of the class.
func (AUAudioUnitClass) Class ¶
func (ac AUAudioUnitClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (AUAudioUnitClass) InstantiateWithComponentDescriptionOptions ¶
func (ac AUAudioUnitClass) InstantiateWithComponentDescriptionOptions(ctx context.Context, componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AudioComponentInstance, error)
InstantiateWithComponentDescriptionOptions is a synchronous wrapper around [AUAudioUnit.InstantiateWithComponentDescriptionOptionsCompletionHandler]. It blocks until the completion handler fires or the context is cancelled.
func (AUAudioUnitClass) InstantiateWithComponentDescriptionOptionsCompletionHandler ¶
func (_AUAudioUnitClass AUAudioUnitClass) InstantiateWithComponentDescriptionOptionsCompletionHandler(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions, completionHandler AudioComponentInstanceErrorHandler)
Asynchronously creates an audio unit instance.
componentDescription: The component to instantiate.
options: Options for loading the unit in-process or out-of-process.
completionHandler: The block called when instantiation has completed. The block parameters are defined as follows:
audioUnit: An initialized audio unit if the operation succeeded, or `nil` if it failed. error: An error if the operation failed, or `nil` if it succeeded.
Discussion ¶
Certain types of audio units must be instantiated asynchronously, such as version 3 units with a view.
func (AUAudioUnitClass) RegisterSubclassAsComponentDescriptionNameVersion ¶
func (_AUAudioUnitClass AUAudioUnitClass) RegisterSubclassAsComponentDescriptionNameVersion(cls objectivec.Class, componentDescription AudioComponentDescription, name string, version uint32)
Registers an audio unit subclass.
cls: An AUAudioUnit subclass.
componentDescription: The component to register.
name: The component’s name, using the convention `:`.
version: The component’s version.
Discussion ¶
This method dynamically registers the supplied AUAudioUnit subclass with the Audio Component system, in the context of the current process only. After you’ve registered the subclass, instantiate it by calling one of the following:
- The [AUAudioUnitV2Bridge.InitWithComponentDescriptionError] method. - The [AUAudioUnitV2Bridge.InitWithComponentDescriptionOptionsError] method. - The AVAudioUnit instantiate(with:options:completionHandler:) method. - The AudioComponentInstanceNew function.
type AUAudioUnitFactory ¶
type AUAudioUnitFactory interface {
objectivec.IObject
foundation.NSExtensionRequestHandling
// Creates an instance of an extension’s audio unit.
//
// See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitFactory/createAudioUnit(with:)
CreateAudioUnitWithComponentDescriptionError(desc AudioComponentDescription) (IAUAudioUnit, error)
}
An object that creates a version 3 audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitFactory
type AUAudioUnitFactoryObject ¶
type AUAudioUnitFactoryObject struct {
foundation.NSExtensionRequestHandlingObject
}
AUAudioUnitFactoryObject wraps an existing Objective-C object that conforms to the AUAudioUnitFactory protocol.
func AUAudioUnitFactoryObjectFromID ¶
func AUAudioUnitFactoryObjectFromID(id objc.ID) AUAudioUnitFactoryObject
AUAudioUnitFactoryObjectFromID constructs a AUAudioUnitFactoryObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (AUAudioUnitFactoryObject) BaseObject ¶
func (o AUAudioUnitFactoryObject) BaseObject() objectivec.Object
func (AUAudioUnitFactoryObject) CreateAudioUnitWithComponentDescriptionError ¶
func (o AUAudioUnitFactoryObject) CreateAudioUnitWithComponentDescriptionError(desc AudioComponentDescription) (IAUAudioUnit, error)
Creates an instance of an extension’s audio unit.
desc: The description of the audio component.
Return Value ¶
An instance of the extension’s audio unit.
Discussion ¶
This method is called only once per factory instance.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitFactory/createAudioUnit(with:)
type AUAudioUnitPreset ¶
type AUAudioUnitPreset struct {
objectivec.Object
}
A class that describes an interface for custom parameter settings provided by the audio unit developer.
Overview ¶
These presets often produce a useful sound or starting point.
For more details on working with Audio Unit presets, see Audio Units - How to correctly save and restore Audio Unit presets. Note that the version 3 AUAudioUnit.FullState property is bridged to the version 2 `kAudioUnitProperty_ClassInfo` API. Similarly, the version 3 AUAudioUnit.FullStateForDocument property is bridged to the version 2 `kAudioUnitProperty_ClassInfoFromDocument` API.
Preset Properties ¶
- AUAudioUnitPreset.Name: The preset’s name.
- AUAudioUnitPreset.SetName
- AUAudioUnitPreset.Number: The preset’s unique numeric identifier.
- AUAudioUnitPreset.SetNumber
Initializers ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset
func AUAudioUnitPresetFromID ¶
func AUAudioUnitPresetFromID(id objc.ID) AUAudioUnitPreset
AUAudioUnitPresetFromID constructs a AUAudioUnitPreset from an objc.ID.
A class that describes an interface for custom parameter settings provided by the audio unit developer.
func NewAUAudioUnitPreset ¶
func NewAUAudioUnitPreset() AUAudioUnitPreset
NewAUAudioUnitPreset creates a new AUAudioUnitPreset instance.
func NewAudioUnitPresetWithCoder ¶
func NewAudioUnitPresetWithCoder(coder foundation.INSCoder) AUAudioUnitPreset
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset/init(coder:)
func (AUAudioUnitPreset) Autorelease ¶
func (a AUAudioUnitPreset) Autorelease() AUAudioUnitPreset
Autorelease adds the receiver to the current autorelease pool.
func (AUAudioUnitPreset) EncodeWithCoder ¶
func (a AUAudioUnitPreset) EncodeWithCoder(coder foundation.INSCoder)
func (AUAudioUnitPreset) Init ¶
func (a AUAudioUnitPreset) Init() AUAudioUnitPreset
Init initializes the instance.
func (AUAudioUnitPreset) InitWithCoder ¶
func (a AUAudioUnitPreset) InitWithCoder(coder foundation.INSCoder) AUAudioUnitPreset
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset/init(coder:)
func (AUAudioUnitPreset) Name ¶
func (a AUAudioUnitPreset) Name() string
The preset’s name.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset/name
func (AUAudioUnitPreset) Number ¶
func (a AUAudioUnitPreset) Number() int
The preset’s unique numeric identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset/number
func (AUAudioUnitPreset) SetName ¶
func (a AUAudioUnitPreset) SetName(value string)
func (AUAudioUnitPreset) SetNumber ¶
func (a AUAudioUnitPreset) SetNumber(value int)
type AUAudioUnitPresetClass ¶
type AUAudioUnitPresetClass struct {
// contains filtered or unexported fields
}
func GetAUAudioUnitPresetClass ¶
func GetAUAudioUnitPresetClass() AUAudioUnitPresetClass
GetAUAudioUnitPresetClass returns the class object for AUAudioUnitPreset.
func (AUAudioUnitPresetClass) Alloc ¶
func (ac AUAudioUnitPresetClass) Alloc() AUAudioUnitPreset
Alloc allocates memory for a new instance of the class.
func (AUAudioUnitPresetClass) Class ¶
func (ac AUAudioUnitPresetClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUAudioUnitStatus ¶
type AUAudioUnitStatus = int32
AUAudioUnitStatus is a result code returned from an audio unit’s render function.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitStatus
type AUAudioUnitV2Bridge ¶
type AUAudioUnitV2Bridge struct {
AUAudioUnit
}
A class that wraps a version 2 audio unit as version 3 audio unit.
Overview ¶
A version 3 audio unit may subclass the AUAudioUnitV2Bridge class. If so, the audio unit’s component description should refer to a registered component with a version 2 implementation by using a factory function. The bridge will instantiate the version 2 audio unit via the factory function and communicate with it using version 2 audio unit APIs.
Hosts should not access this class; it will be instantiated if needed when creating an audio unit.
Instance Properties ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitV2Bridge
func AUAudioUnitV2BridgeFromID ¶
func AUAudioUnitV2BridgeFromID(id objc.ID) AUAudioUnitV2Bridge
AUAudioUnitV2BridgeFromID constructs a AUAudioUnitV2Bridge from an objc.ID.
A class that wraps a version 2 audio unit as version 3 audio unit.
func NewAUAudioUnitV2Bridge ¶
func NewAUAudioUnitV2Bridge() AUAudioUnitV2Bridge
NewAUAudioUnitV2Bridge creates a new AUAudioUnitV2Bridge instance.
func NewAudioUnitV2BridgeWithComponentDescriptionError ¶
func NewAudioUnitV2BridgeWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnitV2Bridge, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the convenience initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:)
func NewAudioUnitV2BridgeWithComponentDescriptionOptionsError ¶
func NewAudioUnitV2BridgeWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnitV2Bridge, error)
Synchronously initializes a new audio unit object.
componentDescription: The component to instantiate.
options: Options for loading the unit in-process or out-of-process.
Return Value ¶
An initialized audio unit, or `nil` if initialization failed.
Discussion ¶
This is the designated initializer.
A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.
func (AUAudioUnitV2Bridge) AudioUnit ¶
func (a AUAudioUnitV2Bridge) AudioUnit() AudioUnit
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitV2Bridge/audioUnit
func (AUAudioUnitV2Bridge) Autorelease ¶
func (a AUAudioUnitV2Bridge) Autorelease() AUAudioUnitV2Bridge
Autorelease adds the receiver to the current autorelease pool.
func (AUAudioUnitV2Bridge) Init ¶
func (a AUAudioUnitV2Bridge) Init() AUAudioUnitV2Bridge
Init initializes the instance.
type AUAudioUnitV2BridgeClass ¶
type AUAudioUnitV2BridgeClass struct {
// contains filtered or unexported fields
}
func GetAUAudioUnitV2BridgeClass ¶
func GetAUAudioUnitV2BridgeClass() AUAudioUnitV2BridgeClass
GetAUAudioUnitV2BridgeClass returns the class object for AUAudioUnitV2Bridge.
func (AUAudioUnitV2BridgeClass) Alloc ¶
func (ac AUAudioUnitV2BridgeClass) Alloc() AUAudioUnitV2Bridge
Alloc allocates memory for a new instance of the class.
func (AUAudioUnitV2BridgeClass) Class ¶
func (ac AUAudioUnitV2BridgeClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUChannelInfo ¶
type AUChannelInfo struct {
InChannels int16 // The number of input channels.
OutChannels int16 // The number of output channels.
}
AUChannelInfo - The audio input and output channel capabilities for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUChannelInfo
type AUCocoaUIBase ¶
type AUCocoaUIBase interface {
objectivec.IObject
// InterfaceVersion protocol.
//
// See: https://developer.apple.com/documentation/AudioToolbox/AUCocoaUIBase/interfaceVersion
InterfaceVersion() uint32
// UiViewForAudioUnitWithSize protocol.
//
// See: https://developer.apple.com/documentation/AudioToolbox/AUCocoaUIBase/uiViewForAudioUnit:withSize:
UiViewForAudioUnitWithSize(inAudioUnit AudioUnit, inPreferredSize corefoundation.CGSize) objectivec.IObject
}
AUCocoaUIBase protocol.
See: https://developer.apple.com/documentation/AudioToolbox/AUCocoaUIBase
type AUCocoaUIBaseObject ¶
type AUCocoaUIBaseObject struct {
objectivec.Object
}
AUCocoaUIBaseObject wraps an existing Objective-C object that conforms to the AUCocoaUIBase protocol.
func AUCocoaUIBaseObjectFromID ¶
func AUCocoaUIBaseObjectFromID(id objc.ID) AUCocoaUIBaseObject
AUCocoaUIBaseObjectFromID constructs a AUCocoaUIBaseObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (AUCocoaUIBaseObject) BaseObject ¶
func (o AUCocoaUIBaseObject) BaseObject() objectivec.Object
func (AUCocoaUIBaseObject) InterfaceVersion ¶
func (o AUCocoaUIBaseObject) InterfaceVersion() uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUCocoaUIBase/interfaceVersion
func (AUCocoaUIBaseObject) UiViewForAudioUnitWithSize ¶
func (o AUCocoaUIBaseObject) UiViewForAudioUnitWithSize(inAudioUnit AudioUnit, inPreferredSize corefoundation.CGSize) objectivec.IObject
See: https://developer.apple.com/documentation/AudioToolbox/AUCocoaUIBase/uiViewForAudioUnit:withSize:
type AUDependentParameter ¶
type AUDependentParameter struct {
MScope AudioUnitScope
MParameterID AudioUnitParameterID
}
AUDependentParameter - An audio unit parameter whose value can change in response to a change in its parent metaparameter.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUDependentParameter
type AUDistanceAttenuationData ¶
type AUDistanceAttenuationData struct {
InNumberOfPairs uint32
InDistance float32
OutGain float32
Pairs unsafe.Pointer
}
AUDistanceAttenuationData
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUDistanceAttenuationData
type AUEventListenerBlock ¶
type AUEventListenerBlock = func(unsafe.Pointer, *AudioUnitEvent, uint64, float32)
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerBlock
type AUEventListenerProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerProc
type AUEventListenerRef ¶
type AUEventListenerRef uintptr
See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerRef
type AUEventSampleTime ¶
type AUEventSampleTime = int64
AUEventSampleTime is expresses time as a sample count.
See: https://developer.apple.com/documentation/AudioToolbox/AUEventSampleTime
type AUEventSampleTimeImmediateConstants ¶
type AUEventSampleTimeImmediateConstants int64
const (
AUEventSampleTimeImmediate AUEventSampleTimeImmediateConstants = -4294967296
)
func (AUEventSampleTimeImmediateConstants) String ¶
func (e AUEventSampleTimeImmediateConstants) String() string
type AUGraph ¶
type AUGraph = uintptr
AUGraph is an opaque type representing an audio processing graph.
See: https://developer.apple.com/documentation/AudioToolbox/AUGraph
type AUHostIdentifier ¶
type AUHostIdentifier struct {
HostName corefoundation.CFStringRef
HostVersion AUNumVersion
}
AUHostIdentifier
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUHostIdentifier
type AUHostMusicalContextBlock ¶
AUHostMusicalContextBlock is a block through which hosts provide musical tempo, time signature, and beat position.
See: https://developer.apple.com/documentation/AudioToolbox/AUHostMusicalContextBlock
type AUHostTransportStateBlock ¶
type AUHostTransportStateBlock = func(*AUHostTransportStateFlags, []float64, []float64, []float64) bool
AUHostTransportStateBlock is a block through which hosts provide information about their transport state.
See: https://developer.apple.com/documentation/AudioToolbox/AUHostTransportStateBlock
type AUHostTransportStateFlags ¶
type AUHostTransportStateFlags uint
See: https://developer.apple.com/documentation/AudioToolbox/AUHostTransportStateFlags
const ( // AUHostTransportStateChanged: Indicates such state changes as start, stop, or seeking to another position in the timeline. AUHostTransportStateChanged AUHostTransportStateFlags = 1 // AUHostTransportStateCycling: Indicates that the host is cycling or looping. AUHostTransportStateCycling AUHostTransportStateFlags = 8 // AUHostTransportStateMoving: Indicates that the audio transport is moving. AUHostTransportStateMoving AUHostTransportStateFlags = 2 // AUHostTransportStateRecording: Indicates that the host is recording, or is prepared to record. AUHostTransportStateRecording AUHostTransportStateFlags = 4 )
func (AUHostTransportStateFlags) String ¶
func (e AUHostTransportStateFlags) String() string
type AUHostVersionIdentifier ¶
type AUHostVersionIdentifier struct {
HostName corefoundation.CFStringRef
HostVersion uint32
}
AUHostVersionIdentifier - The name and version of an audio unit’s host application.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUHostVersionIdentifier
type AUImplementorDisplayNameWithLengthCallback ¶
type AUImplementorDisplayNameWithLengthCallback = func(AUParameterNode, int) string
AUImplementorDisplayNameWithLengthCallback is a block called to obtain a parameter node’s display name, possibly truncated to a desired length.
See: https://developer.apple.com/documentation/AudioToolbox/AUImplementorDisplayNameWithLengthCallback
type AUImplementorStringFromValueCallback ¶
type AUImplementorStringFromValueCallback = func(AUParameter, *float32) string
AUImplementorStringFromValueCallback is a block called to convert a parameter value to a string representation.
See: https://developer.apple.com/documentation/AudioToolbox/AUImplementorStringFromValueCallback
type AUImplementorValueFromStringCallback ¶
type AUImplementorValueFromStringCallback = func(AUParameter, string) float32
AUImplementorValueFromStringCallback is a block called to convert a string to a parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AUImplementorValueFromStringCallback
type AUImplementorValueObserver ¶
type AUImplementorValueObserver = func(AUParameter, float32)
AUImplementorValueObserver is a block called to notify the audio unit implementation of changes to a parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AUImplementorValueObserver
type AUImplementorValueProvider ¶
type AUImplementorValueProvider = func(AUParameter) float32
AUImplementorValueProvider is a block called to fetch a parameter’s current value from the audio unit implementation.
See: https://developer.apple.com/documentation/AudioToolbox/AUImplementorValueProvider
type AUInputHandler ¶
type AUInputHandler = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int)
AUInputHandler is a block to notify the host of an I/O unit that an input is available.
See: https://developer.apple.com/documentation/AudioToolbox/AUInputHandler
type AUInputSamplesInOutputCallback ¶
type AUInputSamplesInOutputCallback = func(inRefCon unsafe.Pointer, inOutputTimeStamp uintptr, inInputSample float64, inNumberInputSamples float64)
AUInputSamplesInOutputCallback is called by the system when an audio unit has provided a buffer of output samples.
See: https://developer.apple.com/documentation/AudioToolbox/AUInputSamplesInOutputCallback
type AUInputSamplesInOutputCallbackStruct ¶
type AUInputSamplesInOutputCallbackStruct struct {
InputToOutputCallback AUInputSamplesInOutputCallback // The callback function that provides input-to-output sample mapping for an audio unit.
UserData unsafe.Pointer // Custom data for input-to-output sample mapping for an audio unit.
}
AUInputSamplesInOutputCallbackStruct - The callback function and custom data for providing input-to-output sample mapping for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUInputSamplesInOutputCallbackStruct
type AUInternalRenderBlock ¶
type AUInternalRenderBlock = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int, *coreaudiotypes.AudioBufferList, unsafe.Pointer, func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, unsafe.Pointer, int, *coreaudiotypes.AudioBufferList) int32) int32
AUInternalRenderBlock is a block to render the audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AUInternalRenderBlock
type AUMIDICIProfileChangedBlock ¶
type AUMIDICIProfileChangedBlock = func(uint32, uint32, *coremidi.MIDICIProfile, bool)
See: https://developer.apple.com/documentation/AudioToolbox/AUMIDICIProfileChangedBlock
type AUMIDIEvent ¶
type AUMIDIEvent struct {
// contains filtered or unexported fields
}
AUMIDIEvent - A structure that describes a scheduled MIDI event.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUMIDIEvent
func (*AUMIDIEvent) Cable ¶
func (s *AUMIDIEvent) Cable() uint8
Cable returns the Cable field from the record's packed storage.
func (*AUMIDIEvent) Data ¶
func (s *AUMIDIEvent) Data() [3]uint8
Data returns the Data field from the record's packed storage.
func (*AUMIDIEvent) EventSampleTime ¶
func (s *AUMIDIEvent) EventSampleTime() AUEventSampleTime
EventSampleTime returns the EventSampleTime field from the record's packed storage.
func (*AUMIDIEvent) EventType ¶
func (s *AUMIDIEvent) EventType() AURenderEventType
EventType returns the EventType field from the record's packed storage.
func (*AUMIDIEvent) Length ¶
func (s *AUMIDIEvent) Length() uint16
Length returns the Length field from the record's packed storage.
func (*AUMIDIEvent) Next ¶
func (s *AUMIDIEvent) Next() *AURenderEvent
Next returns the Next field from the record's packed storage.
func (*AUMIDIEvent) Reserved ¶
func (s *AUMIDIEvent) Reserved() uint8
Reserved returns the Reserved field from the record's packed storage.
func (*AUMIDIEvent) SetCable ¶
func (s *AUMIDIEvent) SetCable(v uint8)
SetCable updates the Cable field in the record's packed storage.
func (*AUMIDIEvent) SetData ¶
func (s *AUMIDIEvent) SetData(v [3]uint8)
SetData updates the Data field in the record's packed storage.
func (*AUMIDIEvent) SetEventSampleTime ¶
func (s *AUMIDIEvent) SetEventSampleTime(v AUEventSampleTime)
SetEventSampleTime updates the EventSampleTime field in the record's packed storage.
func (*AUMIDIEvent) SetEventType ¶
func (s *AUMIDIEvent) SetEventType(v AURenderEventType)
SetEventType updates the EventType field in the record's packed storage.
func (*AUMIDIEvent) SetLength ¶
func (s *AUMIDIEvent) SetLength(v uint16)
SetLength updates the Length field in the record's packed storage.
func (*AUMIDIEvent) SetNext ¶
func (s *AUMIDIEvent) SetNext(v *AURenderEvent)
SetNext updates the Next field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*AUMIDIEvent) SetReserved ¶
func (s *AUMIDIEvent) SetReserved(v uint8)
SetReserved updates the Reserved field in the record's packed storage.
type AUMIDIEventList ¶
type AUMIDIEventList struct {
// contains filtered or unexported fields
}
AUMIDIEventList
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUMIDIEventList
func (*AUMIDIEventList) Cable ¶
func (s *AUMIDIEventList) Cable() uint8
Cable returns the Cable field from the record's packed storage.
func (*AUMIDIEventList) EventList ¶
func (s *AUMIDIEventList) EventList() coremidi.MIDIEventList
EventList returns the EventList field from the record's packed storage.
func (*AUMIDIEventList) EventSampleTime ¶
func (s *AUMIDIEventList) EventSampleTime() AUEventSampleTime
EventSampleTime returns the EventSampleTime field from the record's packed storage.
func (*AUMIDIEventList) EventType ¶
func (s *AUMIDIEventList) EventType() AURenderEventType
EventType returns the EventType field from the record's packed storage.
func (*AUMIDIEventList) Next ¶
func (s *AUMIDIEventList) Next() *AURenderEvent
Next returns the Next field from the record's packed storage.
func (*AUMIDIEventList) Reserved ¶
func (s *AUMIDIEventList) Reserved() uint8
Reserved returns the Reserved field from the record's packed storage.
func (*AUMIDIEventList) SetCable ¶
func (s *AUMIDIEventList) SetCable(v uint8)
SetCable updates the Cable field in the record's packed storage.
func (*AUMIDIEventList) SetEventList ¶
func (s *AUMIDIEventList) SetEventList(v coremidi.MIDIEventList)
SetEventList updates the EventList field in the record's packed storage.
func (*AUMIDIEventList) SetEventSampleTime ¶
func (s *AUMIDIEventList) SetEventSampleTime(v AUEventSampleTime)
SetEventSampleTime updates the EventSampleTime field in the record's packed storage.
func (*AUMIDIEventList) SetEventType ¶
func (s *AUMIDIEventList) SetEventType(v AURenderEventType)
SetEventType updates the EventType field in the record's packed storage.
func (*AUMIDIEventList) SetNext ¶
func (s *AUMIDIEventList) SetNext(v *AURenderEvent)
SetNext updates the Next field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*AUMIDIEventList) SetReserved ¶
func (s *AUMIDIEventList) SetReserved(v uint8)
SetReserved updates the Reserved field in the record's packed storage.
type AUMIDIEventListBlock ¶
type AUMIDIEventListBlock = func(int, uint32, *coremidi.MIDIEventList) int32
See: https://developer.apple.com/documentation/AudioToolbox/AUMIDIEventListBlock
type AUMIDIOutputCallback ¶
type AUMIDIOutputCallback = func(userData unsafe.Pointer, timeStamp uintptr, midiOutNum uint32, pktlist uintptr) int32
AUMIDIOutputCallback is when called by a host application, gets MIDI data from an audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AUMIDIOutputCallback
type AUMIDIOutputCallbackStruct ¶
type AUMIDIOutputCallbackStruct struct {
MidiOutputCallback AUMIDIOutputCallback // The callback function for an audio unit that provides MIDI output.
UserData unsafe.Pointer // Custom data for an audio unit that provides MIDI output.
}
AUMIDIOutputCallbackStruct - The callback function and custom data for an audio unit that provides MIDI output.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUMIDIOutputCallbackStruct
type AUMIDIOutputEventBlock ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUMIDIOutputEventBlock
type AUMessageChannel ¶
type AUMessageChannel interface {
objectivec.IObject
// A callback for the audio unit to send a message to the host.
//
// See: https://developer.apple.com/documentation/AudioToolbox/AUMessageChannel/callHostBlock
CallHostBlock() CallHostBlock
SetCallHostBlock(value objc.ID)
}
A specification for a bidirectional communication message channel.
See: https://developer.apple.com/documentation/AudioToolbox/AUMessageChannel
type AUMessageChannelObject ¶
type AUMessageChannelObject struct {
objectivec.Object
}
AUMessageChannelObject wraps an existing Objective-C object that conforms to the AUMessageChannel protocol.
func AUMessageChannelObjectFromID ¶
func AUMessageChannelObjectFromID(id objc.ID) AUMessageChannelObject
AUMessageChannelObjectFromID constructs a AUMessageChannelObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (AUMessageChannelObject) BaseObject ¶
func (o AUMessageChannelObject) BaseObject() objectivec.Object
func (AUMessageChannelObject) CallAudioUnit ¶
func (o AUMessageChannelObject) CallAudioUnit(message foundation.INSDictionary) foundation.INSDictionary
Sends an audio unit a custom data message.
message: The data to send the audio unit.
Return Value ¶
A dictionary with custom data.
Discussion ¶
The valid values for key and value types are [NSArray], [NSDictionary], [NSOrderedSet], [NSSet], [NSString], [NSData], [NSNull], [NSNumber], and [NSDate].
See: https://developer.apple.com/documentation/AudioToolbox/AUMessageChannel/callAudioUnit(_:)
func (AUMessageChannelObject) CallHostBlock ¶
func (o AUMessageChannelObject) CallHostBlock() CallHostBlock
A callback for the audio unit to send a message to the host.
Discussion ¶
The host must set a block on this property to use it.
See: https://developer.apple.com/documentation/AudioToolbox/AUMessageChannel/callHostBlock
func (AUMessageChannelObject) SetCallHostBlock ¶
func (o AUMessageChannelObject) SetCallHostBlock(value objc.ID)
type AUNode ¶
type AUNode = int32
AUNode is a member of an audio processing graph, associated with an audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AUNode
type AUNodeConnection ¶
type AUNodeConnection = AudioUnitNodeConnection
See: https://developer.apple.com/documentation/AudioToolbox/AUNodeConnection
type AUNodeInteraction ¶
type AUNodeInteraction struct {
NodeInteractionType uint32 // The interaction type.
NodeInteraction [3]uint64 // A union providing information about a node interaction.
}
AUNodeInteraction - Describes the interaction between two node objects.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUNodeInteraction
type AUNodeRenderCallback ¶
type AUNodeRenderCallback struct {
DestNode AUNode
DestInputNumber AudioUnitElement
Cback AURenderCallbackStruct
}
AUNodeRenderCallback - A callback used to provide input to an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUNodeRenderCallback
type AUNumVersion ¶
AUNumVersion
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUNumVersion
type AUParameter ¶
type AUParameter struct {
AUParameterNode
}
An object that represents a single audio unit parameter.
Querying Parameter Properties ¶
- AUParameter.MinValue: The parameter’s minimum value.
- AUParameter.MaxValue: The parameter’s maximum value.
- AUParameter.Unit: The parameter’s unit of measurement.
- AUParameter.UnitName: The parameter’s localized unit name.
- AUParameter.Flags: The parameter’s characteristic details.
- AUParameter.Address: The parameter’s address.
- AUParameter.ValueStrings: The parameter’s localized value strings.
- AUParameter.DependentParameters: Any other parameter’s whose values may change as a side effect of this parameter’s value changing.
Managing Parameter Values ¶
- AUParameter.Value: The parameter’s current value.
- AUParameter.SetValue
- AUParameter.SetValueOriginator: Sets the parameter’s value, avoiding redundant notifications to the originator.
- AUParameter.SetValueOriginatorAtHostTime: Sets the parameter’s value, preserving the host time of the gesture that initiated the change.
- AUParameter.SetValueOriginatorAtHostTimeEventType
- AUParameter.StringFromValue: Gets the string representation of a parameter value.
- AUParameter.ValueFromString: Converts a string into a parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter
func AUParameterFromID ¶
func AUParameterFromID(id objc.ID) AUParameter
AUParameterFromID constructs a AUParameter from an objc.ID.
An object that represents a single audio unit parameter.
func NewAUParameter ¶
func NewAUParameter() AUParameter
NewAUParameter creates a new AUParameter instance.
func NewParameterWithCoder ¶
func NewParameterWithCoder(coder foundation.INSCoder) AUParameter
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/init(coder:)
func (AUParameter) Address ¶
func (p AUParameter) Address() AUParameterAddress
The parameter’s address.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/address
func (AUParameter) Autorelease ¶
func (p AUParameter) Autorelease() AUParameter
Autorelease adds the receiver to the current autorelease pool.
func (AUParameter) DependentParameters ¶
func (p AUParameter) DependentParameters() []foundation.NSNumber
Any other parameter’s whose values may change as a side effect of this parameter’s value changing.
Discussion ¶
The array contains NSNumber objects representing AUParameterAddress values.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/dependentParameters
func (AUParameter) Flags ¶
func (p AUParameter) Flags() AudioUnitParameterOptions
The parameter’s characteristic details.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/flags
func (AUParameter) MaxValue ¶
func (p AUParameter) MaxValue() AUValue
The parameter’s maximum value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/maxValue
func (AUParameter) MinValue ¶
func (p AUParameter) MinValue() AUValue
The parameter’s minimum value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/minValue
func (AUParameter) SetValue ¶
func (p AUParameter) SetValue(value AUValue)
func (AUParameter) SetValueOriginator ¶
func (p AUParameter) SetValueOriginator(value AUValue, originator AUParameterObserverToken)
Sets the parameter’s value, avoiding redundant notifications to the originator.
value: The parameter’s new value.
originator: The originator of the change in value. This token allows for observer management to avoid notification callback loops.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/setValue(_:originator:)
func (AUParameter) SetValueOriginatorAtHostTime ¶
func (p AUParameter) SetValueOriginatorAtHostTime(value AUValue, originator AUParameterObserverToken, hostTime uint64)
Sets the parameter’s value, preserving the host time of the gesture that initiated the change.
value: The parameter’s new value.
originator: The originator of the change in value. This token allows for observer management to avoid notification callback loops.
hostTime: The time at which to schedule the change in value. This parameter allows for synchronization with other events.
func (AUParameter) SetValueOriginatorAtHostTimeEventType ¶
func (p AUParameter) SetValueOriginatorAtHostTimeEventType(value AUValue, originator AUParameterObserverToken, hostTime uint64, eventType AUParameterAutomationEventType)
func (AUParameter) StringFromValue ¶
func (p AUParameter) StringFromValue(value *AUValue) string
Gets the string representation of a parameter value.
value: The parameter value to represent as a string.
Return Value ¶
The string representation of a parameter value.
Discussion ¶
Pass `nil` into the `value` parameter to use the current value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/string(fromValue:)
func (AUParameter) Unit ¶
func (p AUParameter) Unit() AudioUnitParameterUnit
The parameter’s unit of measurement.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/unit
func (AUParameter) UnitName ¶
func (p AUParameter) UnitName() string
The parameter’s localized unit name.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/unitName
func (AUParameter) Value ¶
func (p AUParameter) Value() AUValue
The parameter’s current value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/value
func (AUParameter) ValueFromString ¶
func (p AUParameter) ValueFromString(string_ string) AUValue
Converts a string into a parameter value.
string: The string representation of a parameter value.
Return Value ¶
The parameter value obtained from the string.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/value(from:)
func (AUParameter) ValueStrings ¶
func (p AUParameter) ValueStrings() []string
The parameter’s localized value strings.
Discussion ¶
This property allows you to specify an array of strings to be used for the values of an indexed parameter—for example, a band parameter could publish these values: “High”, “Medium”, “Low”.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/valueStrings
type AUParameterAddress ¶
type AUParameterAddress = uint64
AUParameterAddress is a numeric identifier for an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterAddress
type AUParameterAutomationEvent ¶
type AUParameterAutomationEvent struct {
HostTime uint64
Address AUParameterAddress
Value AUValue
EventType AUParameterAutomationEventType
Reserved uint64
}
AUParameterAutomationEvent
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUParameterAutomationEvent
type AUParameterAutomationEventType ¶
type AUParameterAutomationEventType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterAutomationEventType
const ( AUParameterAutomationEventTypeRelease AUParameterAutomationEventType = 2 AUParameterAutomationEventTypeTouch AUParameterAutomationEventType = 1 AUParameterAutomationEventTypeValue AUParameterAutomationEventType = 0 )
func (AUParameterAutomationEventType) String ¶
func (e AUParameterAutomationEventType) String() string
type AUParameterAutomationObserver ¶
type AUParameterAutomationObserver = func(int, *AUParameterAutomationEvent)
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterAutomationObserver
type AUParameterClass ¶
type AUParameterClass struct {
// contains filtered or unexported fields
}
func GetAUParameterClass ¶
func GetAUParameterClass() AUParameterClass
GetAUParameterClass returns the class object for AUParameter.
func (AUParameterClass) Alloc ¶
func (ac AUParameterClass) Alloc() AUParameter
Alloc allocates memory for a new instance of the class.
func (AUParameterClass) Class ¶
func (ac AUParameterClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUParameterEvent ¶
type AUParameterEvent struct {
// contains filtered or unexported fields
}
AUParameterEvent - A structure that describes a scheduled parameter event.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUParameterEvent
func (*AUParameterEvent) EventSampleTime ¶
func (s *AUParameterEvent) EventSampleTime() AUEventSampleTime
EventSampleTime returns the EventSampleTime field from the record's packed storage.
func (*AUParameterEvent) EventType ¶
func (s *AUParameterEvent) EventType() AURenderEventType
EventType returns the EventType field from the record's packed storage.
func (*AUParameterEvent) Next ¶
func (s *AUParameterEvent) Next() *AURenderEvent
Next returns the Next field from the record's packed storage.
func (*AUParameterEvent) ParameterAddress ¶
func (s *AUParameterEvent) ParameterAddress() AUParameterAddress
ParameterAddress returns the ParameterAddress field from the record's packed storage.
func (*AUParameterEvent) RampDurationSampleFrames ¶
func (s *AUParameterEvent) RampDurationSampleFrames() AUAudioFrameCount
RampDurationSampleFrames returns the RampDurationSampleFrames field from the record's packed storage.
func (*AUParameterEvent) Reserved ¶
func (s *AUParameterEvent) Reserved() [3]uint8
Reserved returns the Reserved field from the record's packed storage.
func (*AUParameterEvent) SetEventSampleTime ¶
func (s *AUParameterEvent) SetEventSampleTime(v AUEventSampleTime)
SetEventSampleTime updates the EventSampleTime field in the record's packed storage.
func (*AUParameterEvent) SetEventType ¶
func (s *AUParameterEvent) SetEventType(v AURenderEventType)
SetEventType updates the EventType field in the record's packed storage.
func (*AUParameterEvent) SetNext ¶
func (s *AUParameterEvent) SetNext(v *AURenderEvent)
SetNext updates the Next field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*AUParameterEvent) SetParameterAddress ¶
func (s *AUParameterEvent) SetParameterAddress(v AUParameterAddress)
SetParameterAddress updates the ParameterAddress field in the record's packed storage.
func (*AUParameterEvent) SetRampDurationSampleFrames ¶
func (s *AUParameterEvent) SetRampDurationSampleFrames(v AUAudioFrameCount)
SetRampDurationSampleFrames updates the RampDurationSampleFrames field in the record's packed storage.
func (*AUParameterEvent) SetReserved ¶
func (s *AUParameterEvent) SetReserved(v [3]uint8)
SetReserved updates the Reserved field in the record's packed storage.
func (*AUParameterEvent) SetValue ¶
func (s *AUParameterEvent) SetValue(v AUValue)
SetValue updates the Value field in the record's packed storage.
func (*AUParameterEvent) Value ¶
func (s *AUParameterEvent) Value() AUValue
Value returns the Value field from the record's packed storage.
type AUParameterEventType ¶
type AUParameterEventType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterEventType
const ( // KParameterEvent_Immediate: An immediate change from the parameter’s previous value to a new value. KParameterEvent_Immediate AUParameterEventType = 1 // KParameterEvent_Ramped: A gradual change from the parameter’s previous value to a new value, applied linearly over a specified period of time KParameterEvent_Ramped AUParameterEventType = 2 )
func (AUParameterEventType) String ¶
func (e AUParameterEventType) String() string
type AUParameterFloat32Handler ¶
type AUParameterFloat32Handler = func(*AUParameter, float32)
AUParameterFloat32Handler is the signature for a completion handler block.
type AUParameterGroup ¶
type AUParameterGroup struct {
AUParameterNode
}
A parameter group object represents a group of related audio unit parameters.
Overview ¶
A parameter group is KVC-compliant for its children. For example, calling the parameter group’s value(forKey:) method, with a key value of volume, returns a child whose AUParameterNode.Identifier value matches that key.
Obtaining Group Parameters ¶
- AUParameterGroup.AllParameters: Returns a flat array of all parameters in the group, including those in child groups.
- AUParameterGroup.Children: The group’s child nodes.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup
func AUParameterGroupFromID ¶
func AUParameterGroupFromID(id objc.ID) AUParameterGroup
AUParameterGroupFromID constructs a AUParameterGroup from an objc.ID.
A parameter group object represents a group of related audio unit parameters.
func NewAUParameterGroup ¶
func NewAUParameterGroup() AUParameterGroup
NewAUParameterGroup creates a new AUParameterGroup instance.
func NewParameterGroupWithCoder ¶
func NewParameterGroupWithCoder(coder foundation.INSCoder) AUParameterGroup
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup/init(coder:)
func (AUParameterGroup) AllParameters ¶
func (p AUParameterGroup) AllParameters() []AUParameter
Returns a flat array of all parameters in the group, including those in child groups.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup/allParameters
func (AUParameterGroup) Autorelease ¶
func (p AUParameterGroup) Autorelease() AUParameterGroup
Autorelease adds the receiver to the current autorelease pool.
func (AUParameterGroup) Children ¶
func (p AUParameterGroup) Children() []AUParameterNode
The group’s child nodes.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup/children
func (AUParameterGroup) Init ¶
func (p AUParameterGroup) Init() AUParameterGroup
Init initializes the instance.
type AUParameterGroupClass ¶
type AUParameterGroupClass struct {
// contains filtered or unexported fields
}
func GetAUParameterGroupClass ¶
func GetAUParameterGroupClass() AUParameterGroupClass
GetAUParameterGroupClass returns the class object for AUParameterGroup.
func (AUParameterGroupClass) Alloc ¶
func (ac AUParameterGroupClass) Alloc() AUParameterGroup
Alloc allocates memory for a new instance of the class.
func (AUParameterGroupClass) Class ¶
func (ac AUParameterGroupClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUParameterListenerBlock ¶
type AUParameterListenerBlock = func(unsafe.Pointer, *AudioUnitParameter, float32)
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterListenerBlock
type AUParameterListenerProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterListenerProc
type AUParameterListenerRef ¶
type AUParameterListenerRef uintptr
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterListenerRef
type AUParameterMIDIMapping ¶
type AUParameterMIDIMapping struct {
MScope AudioUnitScope
MElement AudioUnitElement
MParameterID AudioUnitParameterID
MFlags AUParameterMIDIMappingFlags
MSubRangeMin AudioUnitParameterValue
MSubRangeMax AudioUnitParameterValue
MStatus uint8
MData1 uint8
Reserved1 uint8
Reserved2 uint8
Reserved3 uint32
}
AUParameterMIDIMapping
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUParameterMIDIMapping
type AUParameterMIDIMappingFlags ¶
type AUParameterMIDIMappingFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterMIDIMappingFlags
const ( KAUParameterMIDIMapping_AnyChannelFlag AUParameterMIDIMappingFlags = 1 KAUParameterMIDIMapping_AnyNoteFlag AUParameterMIDIMappingFlags = 2 KAUParameterMIDIMapping_Bipolar AUParameterMIDIMappingFlags = 16 KAUParameterMIDIMapping_Bipolar_On AUParameterMIDIMappingFlags = 32 KAUParameterMIDIMapping_SubRange AUParameterMIDIMappingFlags = 4 KAUParameterMIDIMapping_Toggle AUParameterMIDIMappingFlags = 8 )
func (AUParameterMIDIMappingFlags) String ¶
func (e AUParameterMIDIMappingFlags) String() string
type AUParameterNode ¶
type AUParameterNode struct {
objectivec.Object
}
An object that represents a node in an audio unit’s parameter tree.
Overview ¶
Nodes are instances of either an AUParameter or AUParameterGroup class.
Identifiers ¶
- AUParameterNode.Identifier: A non-localized, permanent name for the parameter node.
- AUParameterNode.KeyPath: A key path generated by concatenating the identifiers of the parameter and its parents.
- AUParameterNode.DisplayName: A localized display name for the parameter node.
- AUParameterNode.DisplayNameWithLength: Another version of the display name, possibly truncated to a desired length.
Observers ¶
- AUParameterNode.TokenByAddingParameterObserver: Adds an observer for a single parameter or all parameters in a group.
- AUParameterNode.TokenByAddingParameterRecordingObserver: Adds a recording observer for a single parameter or all parameters in a group.
- AUParameterNode.TokenByAddingParameterAutomationObserver
- AUParameterNode.RemoveParameterObserver: Remove a specific parameter observer.
Audio Unit Implementations ¶
- AUParameterNode.ImplementorValueObserver: The callback for parameter value changes.
- AUParameterNode.SetImplementorValueObserver
- AUParameterNode.ImplementorValueProvider: The callback for refreshing known stale values in a parameter tree.
- AUParameterNode.SetImplementorValueProvider
- AUParameterNode.ImplementorStringFromValueCallback: The callback for providing a string representation of a parameter value.
- AUParameterNode.SetImplementorStringFromValueCallback
- AUParameterNode.ImplementorValueFromStringCallback: The callback for converting a string to a parameter value.
- AUParameterNode.SetImplementorValueFromStringCallback
- AUParameterNode.ImplementorDisplayNameWithLengthCallback: The callback for obtaining an abbreviated version of a parameter node display name.
- AUParameterNode.SetImplementorDisplayNameWithLengthCallback
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode
func AUParameterNodeFromID ¶
func AUParameterNodeFromID(id objc.ID) AUParameterNode
AUParameterNodeFromID constructs a AUParameterNode from an objc.ID.
An object that represents a node in an audio unit’s parameter tree.
func NewAUParameterNode ¶
func NewAUParameterNode() AUParameterNode
NewAUParameterNode creates a new AUParameterNode instance.
func (AUParameterNode) Autorelease ¶
func (p AUParameterNode) Autorelease() AUParameterNode
Autorelease adds the receiver to the current autorelease pool.
func (AUParameterNode) DisplayName ¶
func (p AUParameterNode) DisplayName() string
A localized display name for the parameter node.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/displayName
func (AUParameterNode) DisplayNameWithLength ¶
func (p AUParameterNode) DisplayNameWithLength(maximumLength int) string
Another version of the display name, possibly truncated to a desired length.
maximumLength: The maximum length, in characters, of the display name.
Return Value ¶
A truncated display name.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/displayName(withLength:)
func (AUParameterNode) Identifier ¶
func (p AUParameterNode) Identifier() string
A non-localized, permanent name for the parameter node.
Discussion ¶
All child nodes, under any given parent, must have a unique identifier. From release to release, an audio unit must not change its parameters’ identifiers; this will invalidate any hosts’ documents that refer to the parameters.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/identifier
func (AUParameterNode) ImplementorDisplayNameWithLengthCallback ¶
func (p AUParameterNode) ImplementorDisplayNameWithLengthCallback() StringAUParameterNodeInt64Handler
The callback for obtaining an abbreviated version of a parameter node display name.
func (AUParameterNode) ImplementorStringFromValueCallback ¶
func (p AUParameterNode) ImplementorStringFromValueCallback() StringVoidHandler
The callback for providing a string representation of a parameter value.
func (AUParameterNode) ImplementorValueFromStringCallback ¶
func (p AUParameterNode) ImplementorValueFromStringCallback() Float32AUParameterStringHandler
The callback for converting a string to a parameter value.
func (AUParameterNode) ImplementorValueObserver ¶
func (p AUParameterNode) ImplementorValueObserver() AUParameterFloat32Handler
The callback for parameter value changes.
Discussion ¶
This block receives all externally-generated changes to parameter values. It should store the new value in its audio signal processing state (assuming that state is separate from the parameter object).
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/implementorValueObserver
func (AUParameterNode) ImplementorValueProvider ¶
func (p AUParameterNode) ImplementorValueProvider() Float32AUParameterHandler
The callback for refreshing known stale values in a parameter tree.
Discussion ¶
The audio unit should return the current value for this parameter; the parameter node object then stores this value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/implementorValueProvider
func (AUParameterNode) Init ¶
func (p AUParameterNode) Init() AUParameterNode
Init initializes the instance.
func (AUParameterNode) KeyPath ¶
func (p AUParameterNode) KeyPath() string
A key path generated by concatenating the identifiers of the parameter and its parents.
Discussion ¶
When recording parameter values, hosts should bind to the parameter key path (unless an audio unit specifically documents that its parameter addresses are stable and persistent). The individual node identifiers in a key path are separated by periods (`.`). Passing a node’s key path to a parameter tree’s value(forKeyPath:) method returns the same node.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/keyPath
func (AUParameterNode) RemoveParameterObserver ¶
func (p AUParameterNode) RemoveParameterObserver(token AUParameterObserverToken)
Remove a specific parameter observer.
token: The token corresponding to the given observer.
Discussion ¶
This call will remove the callback corresponding to the given token. This operation blocks until any callbacks currently in progress have completed.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/removeParameterObserver(_:)
func (AUParameterNode) SetImplementorDisplayNameWithLengthCallback ¶
func (p AUParameterNode) SetImplementorDisplayNameWithLengthCallback(value StringAUParameterNodeInt64Handler)
func (AUParameterNode) SetImplementorStringFromValueCallback ¶
func (p AUParameterNode) SetImplementorStringFromValueCallback(value StringVoidHandler)
func (AUParameterNode) SetImplementorValueFromStringCallback ¶
func (p AUParameterNode) SetImplementorValueFromStringCallback(value Float32AUParameterStringHandler)
func (AUParameterNode) SetImplementorValueObserver ¶
func (p AUParameterNode) SetImplementorValueObserver(value AUParameterFloat32Handler)
func (AUParameterNode) SetImplementorValueProvider ¶
func (p AUParameterNode) SetImplementorValueProvider(value Float32AUParameterHandler)
func (AUParameterNode) TokenByAddingParameterAutomationObserver ¶
func (p AUParameterNode) TokenByAddingParameterAutomationObserver(observer Int64AUParameterAutomationEventHandler) AUParameterObserverToken
func (AUParameterNode) TokenByAddingParameterObserver ¶
func (p AUParameterNode) TokenByAddingParameterObserver(observer Uint64Float32Handler) AUParameterObserverToken
Adds an observer for a single parameter or all parameters in a group.
observer: A block called after the value of a parameter has changed.
Return Value ¶
A token which can be passed to the AUParameterNode.RemoveParameterObserver or AUParameter.SetValueOriginator methods.
Discussion ¶
An audio unit view can use an observer to be notified of changes to a single parameter or all parameters in a group. 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 and it is responsible for thread-safety. It must not make any calls to add or remove other observers, including itself, as this will deadlock.
An audio unit should interact with the parameter node via the AUParameterNode.ImplementorValueObserver and AUParameterNode.ImplementorValueProvider properties.
func (AUParameterNode) TokenByAddingParameterRecordingObserver ¶
func (p AUParameterNode) TokenByAddingParameterRecordingObserver(observer Int64AURecordedParameterEventHandler) AUParameterObserverToken
Adds a recording observer for a single parameter or all parameters in a group.
observer: A block called to record parameter changes.
Return Value ¶
A token which can be passed to the AUParameterNode.RemoveParameterObserver or AUParameter.SetValueOriginator methods.
Discussion ¶
A host can use a recording observer to capture a series of changes to a parameter value as generated by a UI gesture. Unlike a non-recording observer, these callbacks are not throttled.
This block is called in an arbitrary thread context and it is responsible for thread-safety. It must not make any calls to add or remove other observers, including itself, as this will deadlock.
An audio unit should interact with the parameter node via the AUParameterNode.ImplementorValueObserver and AUParameterNode.ImplementorValueProvider properties.
type AUParameterNodeClass ¶
type AUParameterNodeClass struct {
// contains filtered or unexported fields
}
func GetAUParameterNodeClass ¶
func GetAUParameterNodeClass() AUParameterNodeClass
GetAUParameterNodeClass returns the class object for AUParameterNode.
func (AUParameterNodeClass) Alloc ¶
func (ac AUParameterNodeClass) Alloc() AUParameterNode
Alloc allocates memory for a new instance of the class.
func (AUParameterNodeClass) Class ¶
func (ac AUParameterNodeClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type AUParameterObserver ¶
AUParameterObserver is a block called after the value of a parameter changes.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterObserver
type AUParameterObserverToken ¶
AUParameterObserverToken is a token representing an installed parameter observer block.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterObserverToken
type AUParameterRecordingObserver ¶
type AUParameterRecordingObserver = func(int, *AURecordedParameterEvent)
AUParameterRecordingObserver is a block called to record parameter changes as automation events.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterRecordingObserver
type AUParameterTree ¶
type AUParameterTree struct {
AUParameterGroup
}
An object that represents a top-level group node that contains all of an audio unit’s parameters.
Overview ¶
An audio unit’s parameters are organized into a tree containing groups and parameters (groups may be nested).
The parameter tree is KVO-compliant. An audio unit may choose to dynamically rearrange the tree; when doing so, it must issue a KVO notification on the audio unit’s AUAudioUnit.ParameterTree property.
Obtaining Tree Parameters ¶
- AUParameterTree.ParameterWithAddress: Searches the tree for a parameter with a specific address.
- AUParameterTree.ParameterWithIDScopeElement: Searches the tree for a specific version 2 audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree
func AUParameterTreeFromID ¶
func AUParameterTreeFromID(id objc.ID) AUParameterTree
AUParameterTreeFromID constructs a AUParameterTree from an objc.ID.
An object that represents a top-level group node that contains all of an audio unit’s parameters.
func NewAUParameterTree ¶
func NewAUParameterTree() AUParameterTree
NewAUParameterTree creates a new AUParameterTree instance.
func NewParameterTreeWithCoder ¶
func NewParameterTreeWithCoder(coder foundation.INSCoder) AUParameterTree
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup/init(coder:)
func (AUParameterTree) Autorelease ¶
func (p AUParameterTree) Autorelease() AUParameterTree
Autorelease adds the receiver to the current autorelease pool.
func (AUParameterTree) Init ¶
func (p AUParameterTree) Init() AUParameterTree
Init initializes the instance.
func (AUParameterTree) ParameterWithAddress ¶
func (p AUParameterTree) ParameterWithAddress(address AUParameterAddress) IAUParameter
Searches the tree for a parameter with a specific address.
address: The address with which to search the tree.
Return Value ¶
The parameter corresponding to the supplied address, or `nil` if no such parameter exists.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/parameter(withAddress:)
func (AUParameterTree) ParameterWithIDScopeElement ¶
func (p AUParameterTree) ParameterWithIDScopeElement(paramID AudioUnitParameterID, scope AudioUnitScope, element AudioUnitElement) IAUParameter
Searches the tree for a specific version 2 audio unit parameter.
paramID: The parameter ID with which to search the tree.
scope: The scope with which to search the tree.
element: The element with which to search the tree.
Return Value ¶
The parameter corresponding to the supplied ID, scope, and element. Returns `nil` if the parameter is nonexistent or if it is not associated with a version 2 audio unit.
Discussion ¶
Version 2 audio units publish parameters identified by a parameter ID, scope, and element. A host that knows that it is dealing with a version 2 audio unit can locate parameters using this method—for example, for the Apple-supplied system audio units.
type AUParameterTreeClass ¶
type AUParameterTreeClass struct {
// contains filtered or unexported fields
}
func GetAUParameterTreeClass ¶
func GetAUParameterTreeClass() AUParameterTreeClass
GetAUParameterTreeClass returns the class object for AUParameterTree.
func (AUParameterTreeClass) Alloc ¶
func (ac AUParameterTreeClass) Alloc() AUParameterTree
Alloc allocates memory for a new instance of the class.
func (AUParameterTreeClass) Class ¶
func (ac AUParameterTreeClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (AUParameterTreeClass) CreateGroupFromTemplateIdentifierNameAddressOffset ¶
func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupFromTemplateIdentifierNameAddressOffset(templateGroup IAUParameterGroup, identifier string, name string, addressOffset AUParameterAddress) AUParameterGroup
Initializes a group as a copied instance of a template group.
templateGroup: A group to be used as a template and largely copied from.
identifier: A non-localized, persistent identifier for the new group.
name: A localized display name for the new group.
addressOffset: The address offset for the new group’s parameters, with respect to the template group.
Return Value ¶
A newly-initialized parameter group object.
func (AUParameterTreeClass) CreateGroupTemplate ¶
func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupTemplate(children []AUParameterNode) AUParameterGroup
Creates a template group which may be used as a prototype for further group instances.
children: The template group’s child nodes.
Return Value ¶
A newly-initialized parameter group template.
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.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/createGroupTemplate(_:)
func (AUParameterTreeClass) CreateGroupWithIdentifierNameChildren ¶
func (_AUParameterTreeClass AUParameterTreeClass) CreateGroupWithIdentifierNameChildren(identifier string, name string, children []AUParameterNode) AUParameterGroup
Creates a parameter group object.
identifier: A non-localized, persistent identifier for the group.
name: A localized display name for the group.
children: The group’s child nodes.
Return Value ¶
A newly-initialized parameter group object.
func (AUParameterTreeClass) CreateParameterWithIdentifierNameAddressMinMaxUnitUnitNameFlagsValueStringsDependentParameters ¶
func (_AUParameterTreeClass AUParameterTreeClass) CreateParameterWithIdentifierNameAddressMinMaxUnitUnitNameFlagsValueStringsDependentParameters(identifier string, name string, address AUParameterAddress, min AUValue, max AUValue, unit AudioUnitParameterUnit, unitName string, flags AudioUnitParameterOptions, valueStrings []string, dependentParameters []foundation.NSNumber) AUParameter
Creates a single parameter object.
identifier: The parameter’s non-localized, permanent name.
name: The parameter’s localized name for display.
address: The parameter’s address.
min: The parameter’s minimum value.
max: The parameter’s maximum value.
unit: The parameter’s unit of measurement.
unitName: The parameter’s localized unit name.
flags: The parameter’s characteristic details.
valueStrings: The parameter’s localized value strings.
dependentParameters: Any other parameter’s whose values may change as a side effect of this parameter’s value changing.
Return Value ¶
A newly-initialized parameter object.
func (AUParameterTreeClass) CreateTreeWithChildren ¶
func (_AUParameterTreeClass AUParameterTreeClass) CreateTreeWithChildren(children []AUParameterNode) AUParameterTree
Creates a parameter tree object.
children: The tree’s top-level children nodes.
Return Value ¶
A newly-initialized parameter tree object.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/createTree(withChildren:)
type AUPreset ¶
type AUPreset struct {
PresetNumber int32 // If less than `0`, then the preset is a user preset. If greater than or equal to `0`, then this field is used to select a factory preset.
PresetName corefoundation.CFStringRef // If a factory preset, the name of the specified factory preset.
}
AUPreset - Used to set factory presets for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUPreset
type AUPresetEvent ¶
type AUPresetEvent struct {
Scope AudioUnitScope
Element AudioUnitElement
Preset corefoundation.CFPropertyListRef
}
AUPresetEvent - Describes an audio unit preset.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUPresetEvent
type AURecordedParameterEvent ¶
type AURecordedParameterEvent struct {
HostTime uint64 // The host time at which the event occurred.
Address AUParameterAddress // The address of the parameter whose value changed.
Value AUValue // The value of the parameter at the given time.
}
AURecordedParameterEvent - An event recording the changing of a parameter at a particular host time.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AURecordedParameterEvent
type AURenderBlock ¶
type AURenderBlock = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int, *coreaudiotypes.AudioBufferList, func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, unsafe.Pointer, int, *coreaudiotypes.AudioBufferList) int32) int32
AURenderBlock is a block to render the audio unit.
See: https://developer.apple.com/documentation/AudioToolbox/AURenderBlock
type AURenderCallback ¶
type AURenderCallback = func(inRefCon unsafe.Pointer, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp uintptr, inBusNumber uint32, inNumberFrames uint32, ioData uintptr) int32
AURenderCallback is called by the system when an audio unit requires input samples, or before and after a render operation.
See: https://developer.apple.com/documentation/AudioToolbox/AURenderCallback
type AURenderCallbackStruct ¶
type AURenderCallbackStruct struct {
InputProc AURenderCallback
InputProcRefCon unsafe.Pointer
}
AURenderCallbackStruct - Used for registering an input callback function with an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AURenderCallbackStruct
type AURenderContextObserver ¶
type AURenderContextObserver = func(*AudioUnitRenderContext)
AURenderContextObserver is a custom block that tells the audio unit which thread context to use for the next render cycle.
See: https://developer.apple.com/documentation/AudioToolbox/AURenderContextObserver
type AURenderEvent ¶
type AURenderEvent struct {
// contains filtered or unexported fields
}
AURenderEvent
func (*AURenderEvent) Head ¶
func (s *AURenderEvent) Head() AURenderEventHeader
Head returns the Head field from the record's packed storage.
func (*AURenderEvent) MIDI ¶
func (s *AURenderEvent) MIDI() AUMIDIEvent
MIDI returns the MIDI field from the record's packed storage.
func (*AURenderEvent) MIDIEventsList ¶
func (s *AURenderEvent) MIDIEventsList() AUMIDIEventList
MIDIEventsList returns the MIDIEventsList field from the record's packed storage.
func (*AURenderEvent) Parameter ¶
func (s *AURenderEvent) Parameter() AUParameterEvent
Parameter returns the Parameter field from the record's packed storage.
func (*AURenderEvent) SetHead ¶
func (s *AURenderEvent) SetHead(v AURenderEventHeader)
SetHead updates the Head field in the record's packed storage.
func (*AURenderEvent) SetMIDI ¶
func (s *AURenderEvent) SetMIDI(v AUMIDIEvent)
SetMIDI updates the MIDI field in the record's packed storage.
func (*AURenderEvent) SetMIDIEventsList ¶
func (s *AURenderEvent) SetMIDIEventsList(v AUMIDIEventList)
SetMIDIEventsList updates the MIDIEventsList field in the record's packed storage.
func (*AURenderEvent) SetParameter ¶
func (s *AURenderEvent) SetParameter(v AUParameterEvent)
SetParameter updates the Parameter field in the record's packed storage.
type AURenderEventHeader ¶
type AURenderEventHeader struct {
// contains filtered or unexported fields
}
AURenderEventHeader - The common header for a render event.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AURenderEventHeader
func (*AURenderEventHeader) EventSampleTime ¶
func (s *AURenderEventHeader) EventSampleTime() AUEventSampleTime
EventSampleTime returns the EventSampleTime field from the record's packed storage.
func (*AURenderEventHeader) EventType ¶
func (s *AURenderEventHeader) EventType() AURenderEventType
EventType returns the EventType field from the record's packed storage.
func (*AURenderEventHeader) Next ¶
func (s *AURenderEventHeader) Next() *AURenderEvent
Next returns the Next field from the record's packed storage.
func (*AURenderEventHeader) Reserved ¶
func (s *AURenderEventHeader) Reserved() uint8
Reserved returns the Reserved field from the record's packed storage.
func (*AURenderEventHeader) SetEventSampleTime ¶
func (s *AURenderEventHeader) SetEventSampleTime(v AUEventSampleTime)
SetEventSampleTime updates the EventSampleTime field in the record's packed storage.
func (*AURenderEventHeader) SetEventType ¶
func (s *AURenderEventHeader) SetEventType(v AURenderEventType)
SetEventType updates the EventType field in the record's packed storage.
func (*AURenderEventHeader) SetNext ¶
func (s *AURenderEventHeader) SetNext(v *AURenderEvent)
SetNext updates the Next field in the record's packed storage.
v is stored as a raw address. The storage is a byte array, so the garbage collector scans it as integers and an address written here keeps nothing alive. v must name C-owned memory, or Go memory the caller pins with runtime.Pinner for as long as C reads the record.
func (*AURenderEventHeader) SetReserved ¶
func (s *AURenderEventHeader) SetReserved(v uint8)
SetReserved updates the Reserved field in the record's packed storage.
type AURenderEventType ¶
type AURenderEventType uint8
See: https://developer.apple.com/documentation/AudioToolbox/AURenderEventType
const ( // AURenderEventMIDI: A MIDI event. AURenderEventMIDI AURenderEventType = 8 AURenderEventMIDIEventList AURenderEventType = 10 // AURenderEventMIDISysEx: A system-exclusive MIDI event. AURenderEventMIDISysEx AURenderEventType = 9 // AURenderEventParameter: A parameter event. AURenderEventParameter AURenderEventType = 1 // AURenderEventParameterRamp: A ramped parameter event. AURenderEventParameterRamp AURenderEventType = 2 )
func (AURenderEventType) String ¶
func (e AURenderEventType) String() string
type AURenderObserver ¶
type AURenderObserver = func(uint, *coreaudiotypes.AudioTimeStamp, uint32, int)
AURenderObserver is a block called when an audio unit renders audio.
See: https://developer.apple.com/documentation/AudioToolbox/AURenderObserver
type AURenderPullInputBlock ¶
type AURenderPullInputBlock = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int, *coreaudiotypes.AudioBufferList) int32
AURenderPullInputBlock is a block to supply audio input to a render block.
See: https://developer.apple.com/documentation/AudioToolbox/AURenderPullInputBlock
type AUReverbRoomType ¶
type AUReverbRoomType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUReverbRoomType
const ( KReverbRoomType_Cathedral AUReverbRoomType = 8 KReverbRoomType_LargeChamber AUReverbRoomType = 7 KReverbRoomType_LargeHall AUReverbRoomType = 4 KReverbRoomType_LargeHall2 AUReverbRoomType = 12 KReverbRoomType_LargeRoom AUReverbRoomType = 2 KReverbRoomType_LargeRoom2 AUReverbRoomType = 9 KReverbRoomType_MediumChamber AUReverbRoomType = 6 KReverbRoomType_MediumHall AUReverbRoomType = 3 KReverbRoomType_MediumHall2 AUReverbRoomType = 10 KReverbRoomType_MediumHall3 AUReverbRoomType = 11 KReverbRoomType_MediumRoom AUReverbRoomType = 1 KReverbRoomType_Plate AUReverbRoomType = 5 KReverbRoomType_SmallRoom AUReverbRoomType = 0 )
func (AUReverbRoomType) String ¶
func (e AUReverbRoomType) String() string
type AUSamplerBankPresetData ¶
type AUSamplerBankPresetData struct {
BankURL corefoundation.CFURLRef
BankMSB uint8
BankLSB uint8
PresetID uint8
Reserved uint8
}
AUSamplerBankPresetData
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUSamplerBankPresetData
type AUSamplerInstrumentData ¶
type AUSamplerInstrumentData struct {
FileURL corefoundation.CFURLRef
InstrumentType uint8
BankMSB uint8
BankLSB uint8
PresetID uint8
}
AUSamplerInstrumentData
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUSamplerInstrumentData
type AUScheduleMIDIEventBlock ¶
AUScheduleMIDIEventBlock is a block to schedule MIDI events.
See: https://developer.apple.com/documentation/AudioToolbox/AUScheduleMIDIEventBlock
type AUScheduleParameterBlock ¶
AUScheduleParameterBlock is a block to schedule parameter changes.
See: https://developer.apple.com/documentation/AudioToolbox/AUScheduleParameterBlock
type AUScheduledAudioSliceFlags ¶
type AUScheduledAudioSliceFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUScheduledAudioSliceFlags
const ( KScheduledAudioSliceFlag_BeganToRender AUScheduledAudioSliceFlags = 0x2 KScheduledAudioSliceFlag_BeganToRenderLate AUScheduledAudioSliceFlags = 0x4 KScheduledAudioSliceFlag_Complete AUScheduledAudioSliceFlags = 0x1 KScheduledAudioSliceFlag_Interrupt AUScheduledAudioSliceFlags = 0x10 KScheduledAudioSliceFlag_InterruptAtLoop AUScheduledAudioSliceFlags = 0x20 KScheduledAudioSliceFlag_Loop AUScheduledAudioSliceFlags = 0x8 )
func (AUScheduledAudioSliceFlags) String ¶
func (e AUScheduledAudioSliceFlags) String() string
type AUSpatialMixerAttenuationCurve ¶
type AUSpatialMixerAttenuationCurve uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerAttenuationCurve
const ( KSpatialMixerAttenuationCurve_Exponential AUSpatialMixerAttenuationCurve = 1 KSpatialMixerAttenuationCurve_Inverse AUSpatialMixerAttenuationCurve = 2 KSpatialMixerAttenuationCurve_Linear AUSpatialMixerAttenuationCurve = 3 KSpatialMixerAttenuationCurve_Power AUSpatialMixerAttenuationCurve = 0 )
func (AUSpatialMixerAttenuationCurve) String ¶
func (e AUSpatialMixerAttenuationCurve) String() string
type AUSpatialMixerOutputType ¶
type AUSpatialMixerOutputType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerOutputType
const ( KSpatialMixerOutputType_BuiltInSpeakers AUSpatialMixerOutputType = 2 KSpatialMixerOutputType_Headphones AUSpatialMixerOutputType = 1 )
func (AUSpatialMixerOutputType) String ¶
func (e AUSpatialMixerOutputType) String() string
type AUSpatialMixerPersonalizedHRTFMode ¶
type AUSpatialMixerPersonalizedHRTFMode uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerPersonalizedHRTFMode
const ( KSpatialMixerPersonalizedHRTFMode_Auto AUSpatialMixerPersonalizedHRTFMode = 2 KSpatialMixerPersonalizedHRTFMode_Off AUSpatialMixerPersonalizedHRTFMode = 0 KSpatialMixerPersonalizedHRTFMode_On AUSpatialMixerPersonalizedHRTFMode = 1 )
func (AUSpatialMixerPersonalizedHRTFMode) String ¶
func (e AUSpatialMixerPersonalizedHRTFMode) String() string
type AUSpatialMixerPointSourceInHeadMode ¶
type AUSpatialMixerPointSourceInHeadMode uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerPointSourceInHeadMode
const ( KSpatialMixerPointSourceInHeadMode_Bypass AUSpatialMixerPointSourceInHeadMode = 1 KSpatialMixerPointSourceInHeadMode_Mono AUSpatialMixerPointSourceInHeadMode = 0 )
func (AUSpatialMixerPointSourceInHeadMode) String ¶
func (e AUSpatialMixerPointSourceInHeadMode) String() string
type AUSpatialMixerRenderingFlags ¶
type AUSpatialMixerRenderingFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerRenderingFlags
const ( KSpatialMixerRenderingFlags_DistanceAttenuation AUSpatialMixerRenderingFlags = 4 KSpatialMixerRenderingFlags_InterAuralDelay AUSpatialMixerRenderingFlags = 1 )
func (AUSpatialMixerRenderingFlags) String ¶
func (e AUSpatialMixerRenderingFlags) String() string
type AUSpatialMixerSourceMode ¶
type AUSpatialMixerSourceMode uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatialMixerSourceMode
const ( KSpatialMixerSourceMode_AmbienceBed AUSpatialMixerSourceMode = 3 KSpatialMixerSourceMode_Bypass AUSpatialMixerSourceMode = 1 KSpatialMixerSourceMode_PointSource AUSpatialMixerSourceMode = 2 KSpatialMixerSourceMode_SpatializeIfMono AUSpatialMixerSourceMode = 0 )
func (AUSpatialMixerSourceMode) String ¶
func (e AUSpatialMixerSourceMode) String() string
type AUSpatializationAlgorithm ¶
type AUSpatializationAlgorithm uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUSpatializationAlgorithm
const ( KSpatializationAlgorithm_EqualPowerPanning AUSpatializationAlgorithm = 0 KSpatializationAlgorithm_HRTF AUSpatializationAlgorithm = 2 KSpatializationAlgorithm_HRTFHQ AUSpatializationAlgorithm = 6 KSpatializationAlgorithm_SoundField AUSpatializationAlgorithm = 3 KSpatializationAlgorithm_SphericalHead AUSpatializationAlgorithm = 1 KSpatializationAlgorithm_StereoPassThrough AUSpatializationAlgorithm = 5 KSpatializationAlgorithm_UseOutputType AUSpatializationAlgorithm = 7 KSpatializationAlgorithm_VectorBasedPanning AUSpatializationAlgorithm = 4 )
func (AUSpatializationAlgorithm) String ¶
func (e AUSpatializationAlgorithm) String() string
type AUValue ¶
type AUValue = float32
AUValue is a value of an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUValue
type AUViewControllerBaseHandler ¶
type AUViewControllerBaseHandler = func(*uintptr)
AUViewControllerBaseHandler is the signature for a completion handler block.
Used by:
- [AUAudioUnit.RequestViewControllerWithCompletionHandler]
type AUVoiceIOMutedSpeechActivityEventListener ¶
type AUVoiceIOMutedSpeechActivityEventListener = func(event AUVoiceIOSpeechActivityEvent)
AUVoiceIOMutedSpeechActivityEventListener is a block that the system calls to indicate speech activity while the user has the microphone muted.
See: https://developer.apple.com/documentation/AudioToolbox/AUVoiceIOMutedSpeechActivityEventListener
type AUVoiceIOOtherAudioDuckingConfiguration ¶
type AUVoiceIOOtherAudioDuckingConfiguration struct {
MEnableAdvancedDucking bool // A Boolean value that specifies whether to enable advanced ducking.
MDuckingLevel AUVoiceIOOtherAudioDuckingLevel // The ducking level of other non-voice audio.
}
AUVoiceIOOtherAudioDuckingConfiguration - A structure that you use to configure ducking of other non-voice audio in a voice chat.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AUVoiceIOOtherAudioDuckingConfiguration
type AUVoiceIOOtherAudioDuckingLevel ¶
type AUVoiceIOOtherAudioDuckingLevel uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUVoiceIOOtherAudioDuckingLevel
const ( // KAUVoiceIOOtherAudioDuckingLevelDefault: The default ducking level of other non-voice audio in a typical voice chat. KAUVoiceIOOtherAudioDuckingLevelDefault AUVoiceIOOtherAudioDuckingLevel = 0 // KAUVoiceIOOtherAudioDuckingLevelMax: The maximum ducking level of other non-voice audio. KAUVoiceIOOtherAudioDuckingLevelMax AUVoiceIOOtherAudioDuckingLevel = 30 // KAUVoiceIOOtherAudioDuckingLevelMid: A medium ducking level of other non-voice audio. KAUVoiceIOOtherAudioDuckingLevelMid AUVoiceIOOtherAudioDuckingLevel = 20 // KAUVoiceIOOtherAudioDuckingLevelMin: The minimum ducking level of other non-voice audio. KAUVoiceIOOtherAudioDuckingLevelMin AUVoiceIOOtherAudioDuckingLevel = 10 )
func (AUVoiceIOOtherAudioDuckingLevel) String ¶
func (e AUVoiceIOOtherAudioDuckingLevel) String() string
type AUVoiceIOSpeechActivityEvent ¶
type AUVoiceIOSpeechActivityEvent uint32
See: https://developer.apple.com/documentation/AudioToolbox/AUVoiceIOSpeechActivityEvent
const ( // KAUVoiceIOSpeechActivityHasEnded: A state that indicates speech ended. KAUVoiceIOSpeechActivityHasEnded AUVoiceIOSpeechActivityEvent = 1 // KAUVoiceIOSpeechActivityHasStarted: A state that indicates speech started. KAUVoiceIOSpeechActivityHasStarted AUVoiceIOSpeechActivityEvent = 0 )
func (AUVoiceIOSpeechActivityEvent) String ¶
func (e AUVoiceIOSpeechActivityEvent) String() string
type AudioBalanceFade ¶
type AudioBalanceFade struct {
MLeftRightBalance float32 // The audio left/right balance, where -1 represents full left, 0 represents center, and +1 represents full right.
MBackFrontFade float32 // The audio front/back fade, where -1 represents full rear, 0 represents center, and +1 represents full front.
MType AudioBalanceFadeType // An AudioBalanceFadeType constant. max unity gain, or equal power.
MChannelLayout *coreaudiotypes.AudioChannelLayout // The size, in bytes, of the `mMagicCookie` parameter.
}
AudioBalanceFade - Describes audio left/right balance and front/back fade values.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioBalanceFade
type AudioBalanceFadeType ¶
type AudioBalanceFadeType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioBalanceFadeType
const ( // KAudioBalanceFadeType_EqualPower: Overall loudness remains constant, but gain can exceed 1.0. KAudioBalanceFadeType_EqualPower AudioBalanceFadeType = 1 // KAudioBalanceFadeType_MaxUnityGain: Ensures that the overall gain value never exceeds 1.0 by fading one channel as the other channel’s level rises. KAudioBalanceFadeType_MaxUnityGain AudioBalanceFadeType = 0 )
func (AudioBalanceFadeType) String ¶
func (e AudioBalanceFadeType) String() string
type AudioBytePacketTranslation ¶
type AudioBytePacketTranslation struct {
MByte int64 // A byte number.
MPacket int64 // A packet number.
MByteOffsetInPacket uint32 // A byte offset in a packet.
MFlags AudioBytePacketTranslationFlags // A translation flag value.
}
AudioBytePacketTranslation - A data structure used by the [kAudioFilePropertyByteToPacket](<https://developer.apple.com/documentation/AudioToolbox/kAudioFilePropertyByteToPacket>) and [kAudioFilePropertyPacketToByte](<https://developer.apple.com/documentation/AudioToolbox/kAudioFilePropertyPacketToByte>) properties.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioBytePacketTranslation
type AudioBytePacketTranslationFlags ¶
type AudioBytePacketTranslationFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioBytePacketTranslationFlags
const ( // KBytePacketTranslationFlag_IsEstimate: If set, the result value is an estimate. KBytePacketTranslationFlag_IsEstimate AudioBytePacketTranslationFlags = 1 )
func (AudioBytePacketTranslationFlags) String ¶
func (e AudioBytePacketTranslationFlags) String() string
type AudioCodec ¶
AudioCodec is an instance of a Component Manager component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodec
type AudioCodecAppendInputBufferListProc ¶
type AudioCodecAppendInputBufferListProc = func(unsafe.Pointer, uintptr, *uint32, uintptr, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecAppendInputBufferListProc
type AudioCodecAppendInputDataProc ¶
type AudioCodecAppendInputDataProc = func(unsafe.Pointer, unsafe.Pointer, *uint32, *uint32, uintptr) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecAppendInputDataProc
type AudioCodecGetPropertyInfoProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecGetPropertyInfoProc
type AudioCodecGetPropertyProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecGetPropertyProc
type AudioCodecInitializeProc ¶
type AudioCodecInitializeProc = func(unsafe.Pointer, uintptr, uintptr, unsafe.Pointer, uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecInitializeProc
type AudioCodecMagicCookieInfo ¶
type AudioCodecMagicCookieInfo struct {
MMagicCookieSize uint32 // The size of the magic cookie.
MMagicCookie unsafe.Pointer // Generic constant pointer to the magic cookie.
}
AudioCodecMagicCookieInfo - A structure holding magic cookie information needed by some codecs.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioCodecMagicCookieInfo
type AudioCodecPrimeInfo ¶
type AudioCodecPrimeInfo struct {
LeadingFrames uint32 // An unsigned integer specifying the number of leading empty frames.
TrailingFrames uint32 // An unsigned integer specifying the number of trailing empty frames.
}
AudioCodecPrimeInfo - A structure specifying the number of leading and trailing empty frames to be inserted.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioCodecPrimeInfo
type AudioCodecProduceOutputBufferListProc ¶
type AudioCodecProduceOutputBufferListProc = func(unsafe.Pointer, uintptr, *uint32, uintptr, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecProduceOutputBufferListProc
type AudioCodecProduceOutputPacketsProc ¶
type AudioCodecProduceOutputPacketsProc = func(unsafe.Pointer, unsafe.Pointer, *uint32, *uint32, uintptr, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecProduceOutputPacketsProc
type AudioCodecPropertyID ¶
type AudioCodecPropertyID = uint32
AudioCodecPropertyID is an integer identifying an audio codec property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecPropertyID
type AudioCodecResetProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecResetProc
type AudioCodecSetPropertyProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecSetPropertyProc
type AudioCodecUninitializeProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecUninitializeProc
type AudioComponent ¶
type AudioComponent = uintptr
AudioComponent is an audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponent
func AudioComponentFindNext ¶
func AudioComponentFindNext(inComponent AudioComponent, inDesc *AudioComponentDescription) AudioComponent
AudioComponentFindNext finds the next component that matches a specified AudioComponentDescription structure after a specified audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentFindNext(_:_:)
func AudioComponentInstanceGetComponent ¶
func AudioComponentInstanceGetComponent(inInstance AudioComponentInstance) AudioComponent
AudioComponentInstanceGetComponent retrieves a reference to an audio component from an instance of that audio component.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceGetComponent(_:)
func AudioComponentRegister ¶
func AudioComponentRegister(inDesc *AudioComponentDescription, inName corefoundation.CFStringRef, inVersion uint32, inFactory AudioComponentFactoryFunction) AudioComponent
AudioComponentRegister.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentRegister(_:_:_:_:)
type AudioComponentDescription ¶
type AudioComponentDescription struct {
ComponentType uint32 // A unique 4-byte code identifying the interface for the component.
ComponentSubType uint32 // A 4-byte code that you can use to indicate the purpose of a component. For example, you could use `lpas` or `lowp` as a mnemonic indication that an audio unit is a low-pass filter.
ComponentManufacturer uint32 // The unique vendor identifier, registered with Apple, for the audio component.
ComponentFlags uint32 // Set this value to zero.
ComponentFlagsMask uint32 // Set this value to zero.
}
AudioComponentDescription - Identifying information for an audio component.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioComponentDescription
type AudioComponentFactoryFunction ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentFactoryFunction
type AudioComponentFlags ¶
type AudioComponentFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentFlags
const ( KAudioComponentFlag_CanLoadInProcess AudioComponentFlags = 0x10 KAudioComponentFlag_IsV3AudioUnit AudioComponentFlags = 4 KAudioComponentFlag_RequiresAsyncInstantiation AudioComponentFlags = 8 KAudioComponentFlag_SandboxSafe AudioComponentFlags = 2 KAudioComponentFlag_Unsearchable AudioComponentFlags = 1 )
func (AudioComponentFlags) String ¶
func (e AudioComponentFlags) String() string
type AudioComponentInstance ¶
type AudioComponentInstance = uintptr
AudioComponentInstance is a component instance, or object, is an audio unit or audio codec.
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstance
type AudioComponentInstanceErrorHandler ¶
type AudioComponentInstanceErrorHandler = func(AudioComponentInstance, error)
AudioComponentInstanceErrorHandler handles The block called when instantiation has completed.
- audioUnit: An initialized audio unit if the operation succeeded, or `nil` if it failed.
- error: An error if the operation failed, or `nil` if it succeeded.
The error can be type-asserted to *foundation.NSError for Domain, Code, and UserInfo.
Used by:
- [AUAudioUnit.InstantiateWithComponentDescriptionOptionsCompletionHandler]
type AudioComponentInstantiationOptions ¶
type AudioComponentInstantiationOptions uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstantiationOptions
const ( KAudioComponentInstantiation_LoadInProcess AudioComponentInstantiationOptions = 2 KAudioComponentInstantiation_LoadOutOfProcess AudioComponentInstantiationOptions = 1 KAudioComponentInstantiation_LoadedRemotely AudioComponentInstantiationOptions = 2147483648 )
func (AudioComponentInstantiationOptions) String ¶
func (e AudioComponentInstantiationOptions) String() string
type AudioComponentMethod ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentMethod
type AudioComponentPlugInInterface ¶
type AudioComponentPlugInInterface struct {
Open func(unsafe.Pointer, AudioComponentInstance) int32
Close func(unsafe.Pointer) int32
// Lookup returns a raw C code address, not a Go func value. The address is
// not callable directly from Go; invoke it through purego.
Lookup func(int16) uintptr
Reserved unsafe.Pointer
}
AudioComponentPlugInInterface
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioComponentPlugInInterface
type AudioComponentValidationResult ¶
type AudioComponentValidationResult uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentValidationResult
const ( KAudioComponentValidationResult_Failed AudioComponentValidationResult = 2 KAudioComponentValidationResult_Passed AudioComponentValidationResult = 1 KAudioComponentValidationResult_TimedOut AudioComponentValidationResult = 3 KAudioComponentValidationResult_Unknown AudioComponentValidationResult = 0 )
func (AudioComponentValidationResult) String ¶
func (e AudioComponentValidationResult) String() string
type AudioConverterComplexInputDataProc ¶
type AudioConverterComplexInputDataProc = func(inAudioConverter AudioConverterRef, ioNumberDataPackets *uint32, ioData uintptr, outDataPacketDescription uintptr, inUserData unsafe.Pointer) int32
AudioConverterComplexInputDataProc is supplies input data to the [AudioConverterFillComplexBuffer(_:_:_:_:_:_:)] function.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterComplexInputDataProc
type AudioConverterComplexInputDataProcRealtimeSafe ¶
type AudioConverterInputDataProc ¶
type AudioConverterInputDataProc = func(AudioConverterRef, *uint32, unsafe.Pointer, unsafe.Pointer) int32
AudioConverterInputDataProc is deprecated. Use [AudioConverterFillComplexBuffer(_:_:_:_:_:_:)] instead.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterInputDataProc
type AudioConverterOptions ¶
type AudioConverterOptions uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterOptions
const (
KAudioConverterOption_Unbuffered AudioConverterOptions = 65536
)
func (AudioConverterOptions) String ¶
func (e AudioConverterOptions) String() string
type AudioConverterPrimeInfo ¶
type AudioConverterPrimeInfo struct {
LeadingFrames uint32 // The number of leading frames of input audio data required for the converter to perform high-quality conversion.
TrailingFrames uint32 // The number of trailing frames of input audio data required by the converter to perform high-quality conversion. Trailing frames follow, in time, the expected final input frame. Your application should be prepared to provide this number of additional input frames except when using the `kConverterPrimeMethod_None` value for the `kAudioConverterPrimeMethod` property. If no additional frames are available in the input stream (because, for example, the desired end frame is at the end of an audio file), then the audio converter synthesizes a sufficient number of silent (`0`-valued) trailing frames.
}
AudioConverterPrimeInfo - Specifies priming information for an audio converter.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioConverterPrimeInfo
type AudioConverterPropertyID ¶
type AudioConverterPropertyID = uint32
AudioConverterPropertyID is an audio converter property identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterPropertyID
type AudioConverterRef ¶
type AudioConverterRef uintptr
AudioConverterRef is a reference to an audio converter object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterRef
type AudioFileComponent ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponent
type AudioFileComponentCloseProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCloseProc
type AudioFileComponentCountUserDataProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCountUserDataProc
type AudioFileComponentCreateURLProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCreateURLProc
type AudioFileComponentExtensionIsThisFormatProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentExtensionIsThisFormatProc
type AudioFileComponentFileDataIsThisFormatProc ¶
type AudioFileComponentFileDataIsThisFormatProc = func(unsafe.Pointer, uint32, unsafe.Pointer, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentFileDataIsThisFormatProc
type AudioFileComponentGetGlobalInfoProc ¶
type AudioFileComponentGetGlobalInfoProc = func(unsafe.Pointer, uint32, uint32, unsafe.Pointer, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetGlobalInfoProc
type AudioFileComponentGetGlobalInfoSizeProc ¶
type AudioFileComponentGetGlobalInfoSizeProc = func(unsafe.Pointer, uint32, uint32, unsafe.Pointer, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetGlobalInfoSizeProc
type AudioFileComponentGetPropertyInfoProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetPropertyInfoProc
type AudioFileComponentGetPropertyProc ¶
type AudioFileComponentGetPropertyProc = func(unsafe.Pointer, uint32, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetPropertyProc
type AudioFileComponentGetUserDataAtOffsetProc ¶
type AudioFileComponentGetUserDataAtOffsetProc = func(unsafe.Pointer, uint32, uint32, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataAtOffsetProc
type AudioFileComponentGetUserDataProc ¶
type AudioFileComponentGetUserDataProc = func(unsafe.Pointer, uint32, uint32, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataProc
type AudioFileComponentGetUserDataSize64Proc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataSize64Proc
type AudioFileComponentGetUserDataSizeProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataSizeProc
type AudioFileComponentInitializeWithCallbacksProc ¶
type AudioFileComponentInitializeWithCallbacksProc = func(unsafe.Pointer, unsafe.Pointer, AudioFile_ReadProc, AudioFile_WriteProc, AudioFile_GetSizeProc, AudioFile_SetSizeProc, uint32, uintptr, uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentInitializeWithCallbacksProc
type AudioFileComponentOpenURLProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOpenURLProc
type AudioFileComponentOpenWithCallbacksProc ¶
type AudioFileComponentOpenWithCallbacksProc = func(unsafe.Pointer, unsafe.Pointer, AudioFile_ReadProc, AudioFile_WriteProc, AudioFile_GetSizeProc, AudioFile_SetSizeProc) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOpenWithCallbacksProc
type AudioFileComponentOptimizeProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOptimizeProc
type AudioFileComponentPropertyID ¶
type AudioFileComponentPropertyID = uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentPropertyID
type AudioFileComponentReadBytesProc ¶
type AudioFileComponentReadBytesProc = func(unsafe.Pointer, uint8, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadBytesProc
type AudioFileComponentReadPacketDataProc ¶
type AudioFileComponentReadPacketDataProc = func(unsafe.Pointer, uint8, *uint32, uintptr, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadPacketDataProc
type AudioFileComponentReadPacketsProc ¶
type AudioFileComponentReadPacketsProc = func(unsafe.Pointer, uint8, *uint32, uintptr, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadPacketsProc
type AudioFileComponentRemoveUserDataProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentRemoveUserDataProc
type AudioFileComponentSetPropertyProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentSetPropertyProc
type AudioFileComponentSetUserDataProc ¶
type AudioFileComponentSetUserDataProc = func(unsafe.Pointer, uint32, uint32, uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentSetUserDataProc
type AudioFileComponentWriteBytesProc ¶
type AudioFileComponentWriteBytesProc = func(unsafe.Pointer, uint8, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentWriteBytesProc
type AudioFileComponentWritePacketsProc ¶
type AudioFileComponentWritePacketsProc = func(unsafe.Pointer, uint8, uint32, uintptr, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentWritePacketsProc
type AudioFileFDFTable ¶
type AudioFileFDFTable struct {
MComponentStorage unsafe.Pointer
MReadBytesFDF ReadBytesFDF
MWriteBytesFDF WriteBytesFDF
MReadPacketsFDF ReadPacketsFDF
MWritePacketsFDF WritePacketsFDF
MGetPropertyInfoFDF GetPropertyInfoFDF
MGetPropertyFDF GetPropertyFDF
MSetPropertyFDF SetPropertyFDF
MCountUserDataFDF CountUserDataFDF
MGetUserDataSizeFDF GetUserDataSizeFDF
MGetUserDataFDF GetUserDataFDF
MSetUserDataFDF SetUserDataFDF
}
AudioFileFDFTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileFDFTable
type AudioFileFDFTableExtended ¶
type AudioFileFDFTableExtended struct {
MComponentStorage unsafe.Pointer
MReadBytesFDF ReadBytesFDF
MWriteBytesFDF WriteBytesFDF
MReadPacketsFDF ReadPacketsFDF
MWritePacketsFDF WritePacketsFDF
MGetPropertyInfoFDF GetPropertyInfoFDF
MGetPropertyFDF GetPropertyFDF
MSetPropertyFDF SetPropertyFDF
MCountUserDataFDF CountUserDataFDF
MGetUserDataSizeFDF GetUserDataSizeFDF
MGetUserDataFDF GetUserDataFDF
MSetUserDataFDF SetUserDataFDF
MReadPacketDataFDF ReadPacketDataFDF
}
AudioFileFDFTableExtended
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileFDFTableExtended
type AudioFileFlags ¶
type AudioFileFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileFlags
const ( // KAudioFileFlags_DontPageAlignAudioData: Typically, the audio data in a file is page aligned. KAudioFileFlags_DontPageAlignAudioData AudioFileFlags = 2 // KAudioFileFlags_EraseFile: # Discussion KAudioFileFlags_EraseFile AudioFileFlags = 1 )
func (AudioFileFlags) String ¶
func (e AudioFileFlags) String() string
type AudioFileGetSizeProc ¶
type AudioFileGetSizeProc = AudioFile_GetSizeProc
AudioFileGetSizeProc is a Go-name alias for AudioFile_GetSizeProc.
type AudioFileID ¶
type AudioFileID = uintptr
AudioFileID is an opaque data type that represents an audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileID
type AudioFileMarker ¶
type AudioFileMarker struct {
MFramePosition float64 // The frame in the file, counting from the start of the audio data.
MName corefoundation.CFStringRef // The name of the marker.
MMarkerID int32 // A unique ID for the marker.
MSMPTETime AudioFile_SMPTE_Time // The SMPTE time for this marker.
MType uint32 // The marker type.
MReserved uint16 // A reserved field. Set to `0`.
MChannel uint16 // The channel number referred to by the marker. Set to `0` if the marker applies to all channels.
}
AudioFileMarker - Annotates a position in an audio file.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileMarker
type AudioFileMarkerList ¶
type AudioFileMarkerList struct {
MSMPTE_TimeType uint32 // The SMPTE time type of the whole list of markers in an audio file.
MNumberMarkers uint32 // The number of markers in the list.
MMarkers [1]AudioFileMarker // An array of `mNumberMarkers` elements, each of which is an audio file marker.
}
AudioFileMarkerList - A list of markers associated with an audio file, including their SMPTE time type, the number of markers, and the markers themselves.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileMarkerList
type AudioFilePacketTableInfo ¶
type AudioFilePacketTableInfo struct {
MNumberValidFrames int64 // The number of valid frames in the file.
MPrimingFrames int32 // The number of invalid frames at the beginning of the file.
MRemainderFrames int32 // The number of invalid frames at the end of the file.
}
AudioFilePacketTableInfo - Contains information about the number of valid frames in a file and where they begin and end.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFilePacketTableInfo
type AudioFilePermissions ¶
type AudioFilePermissions int8
See: https://developer.apple.com/documentation/AudioToolbox/AudioFilePermissions
const ( // KAudioFileReadPermission: File is read-only. KAudioFileReadPermission AudioFilePermissions = 0x1 // KAudioFileReadWritePermission: File has read-write permission. KAudioFileReadWritePermission AudioFilePermissions = 0x3 // KAudioFileWritePermission: File is write-only. KAudioFileWritePermission AudioFilePermissions = 0x2 )
func (AudioFilePermissions) String ¶
func (e AudioFilePermissions) String() string
type AudioFilePropertyID ¶
type AudioFilePropertyID = uint32
AudioFilePropertyID is an audio file property identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFilePropertyID
type AudioFileReadProc ¶
type AudioFileReadProc = AudioFile_ReadProc
AudioFileReadProc is a Go-name alias for AudioFile_ReadProc.
type AudioFileRegion ¶
type AudioFileRegion struct {
MRegionID uint32 // A unique ID associated with the audio file region.
MName corefoundation.CFStringRef // The name of the region.
MFlags AudioFileRegionFlags // Audio File Services region flags.
MNumberMarkers uint32 // The number of markers in the array specified in the `mMarkers` parameter.
MMarkers [1]AudioFileMarker // An array of `mNumberMarkers` elements describing where the data in the region starts.
}
AudioFileRegion - An audio file region specifies a segment of audio data.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileRegion
type AudioFileRegionFlags ¶
type AudioFileRegionFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileRegionFlags
const ( // KAudioFileRegionFlag_LoopEnable: If set, the region is looped. KAudioFileRegionFlag_LoopEnable AudioFileRegionFlags = 1 // KAudioFileRegionFlag_PlayBackward: If set, the region is played backward. KAudioFileRegionFlag_PlayBackward AudioFileRegionFlags = 4 // KAudioFileRegionFlag_PlayForward: If set, the region is played forward. KAudioFileRegionFlag_PlayForward AudioFileRegionFlags = 2 )
func (AudioFileRegionFlags) String ¶
func (e AudioFileRegionFlags) String() string
type AudioFileRegionList ¶
type AudioFileRegionList struct {
MSMPTE_TimeType uint32 // The SMPTE timing scheme used in the file. See Core Audio’s `CAFFile.H()` header file for the values used here. For more information, see Core Audio Overview.
MNumberRegions uint32 // The number of regions in the list specified in the `mRegions` parameter.
MRegions [1]AudioFileRegion // A variable length array of audio file regions.
}
AudioFileRegionList - A list of the audio file regions in a file.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileRegionList
type AudioFileSetSizeProc ¶
type AudioFileSetSizeProc = AudioFile_SetSizeProc
AudioFileSetSizeProc is a Go-name alias for AudioFile_SetSizeProc.
type AudioFileStreamID ¶
type AudioFileStreamID = uintptr
AudioFileStreamID is defines an opaque data type that represents an audio file stream parser.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamID
type AudioFileStreamPacketsProc ¶
type AudioFileStreamPacketsProc = AudioFileStream_PacketsProc
AudioFileStreamPacketsProc is a Go-name alias for AudioFileStream_PacketsProc.
type AudioFileStreamParseFlags ¶
type AudioFileStreamParseFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamParseFlags
const ( // KAudioFileStreamParseFlag_Discontinuity: Pass this flag to the AudioFileStreamParseBytes(_:_:_:_:) function to signal a discontinuity in the audio data. KAudioFileStreamParseFlag_Discontinuity AudioFileStreamParseFlags = 1 )
func (AudioFileStreamParseFlags) String ¶
func (e AudioFileStreamParseFlags) String() string
type AudioFileStreamPropertyFlags ¶
type AudioFileStreamPropertyFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamPropertyFlags
const ( // KAudioFileStreamPropertyFlag_CacheProperty: A property listener sets this flag to instruct the parser to cache the property value so that it remains available after the callback returns. KAudioFileStreamPropertyFlag_CacheProperty AudioFileStreamPropertyFlags = 2 // KAudioFileStreamPropertyFlag_PropertyIsCached: This flag is set when the callback AudioFileStream_PropertyListenerProc is invoked in the case that the value of the property has been cached and can be obtained later. KAudioFileStreamPropertyFlag_PropertyIsCached AudioFileStreamPropertyFlags = 1 )
func (AudioFileStreamPropertyFlags) String ¶
func (e AudioFileStreamPropertyFlags) String() string
type AudioFileStreamPropertyID ¶
type AudioFileStreamPropertyID = uint32
AudioFileStreamPropertyID is uniquely identifies an audio file stream property.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamPropertyID
type AudioFileStreamPropertyListenerProc ¶
type AudioFileStreamPropertyListenerProc = AudioFileStream_PropertyListenerProc
AudioFileStreamPropertyListenerProc is a Go-name alias for AudioFileStream_PropertyListenerProc.
type AudioFileStreamSeekFlags ¶
type AudioFileStreamSeekFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamSeekFlags
const ( // KAudioFileStreamSeekFlag_OffsetIsEstimated: This flag is returned by the AudioFileStreamSeek(_:_:_:_:) function if the byte offset is only an estimate. KAudioFileStreamSeekFlag_OffsetIsEstimated AudioFileStreamSeekFlags = 1 )
func (AudioFileStreamSeekFlags) String ¶
func (e AudioFileStreamSeekFlags) String() string
type AudioFileStream_PacketsProc ¶
type AudioFileStream_PacketsProc = func(inClientData unsafe.Pointer, inNumberBytes uint32, inNumberPackets uint32, inInputData unsafe.Pointer, inPacketDescriptions uintptr)
AudioFileStream_PacketsProc is invoked by an audio file stream parser when it finds audio data in the audio file stream.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStream_PacketsProc
type AudioFileStream_PropertyListenerProc ¶
type AudioFileStream_PropertyListenerProc = func(inClientData unsafe.Pointer, inAudioFileStream AudioFileStreamID, inPropertyID uint32, ioFlags *AudioFileStreamPropertyFlags)
AudioFileStream_PropertyListenerProc is invoked by an audio file stream parser when it finds a property value in the audio file stream.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStream_PropertyListenerProc
type AudioFileTypeAndFormatID ¶
type AudioFileTypeAndFormatID struct {
MFileType AudioFileTypeID // A four-character code for the file type.
MFormatID uint32 // A four-character code for the format ID such as `kAudioFormatLinearPCM`, `kAudioFormatMPEG4AAC`, and so forth. (See the `AudioFormat.H()` header file for declarations.)
}
AudioFileTypeAndFormatID - A specifier for the constant[kAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat](<https://developer.apple.com/documentation/AudioToolbox/kAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat>).
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileTypeAndFormatID
type AudioFileTypeID ¶
type AudioFileTypeID = uint32
AudioFileTypeID is operating system constants that indicate the type of file to be written or a hint about what type of file to expect from data provided.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFileTypeID
type AudioFileWriteProc ¶
type AudioFileWriteProc = AudioFile_WriteProc
AudioFileWriteProc is a Go-name alias for AudioFile_WriteProc.
type AudioFile_GetSizeProc ¶
AudioFile_GetSizeProc is gets file data size.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFile_GetSizeProc
type AudioFile_ReadProc ¶
type AudioFile_ReadProc = func(inClientData unsafe.Pointer, inPosition int64, requestCount uint32, buffer unsafe.Pointer, actualCount *uint32) int32
AudioFile_ReadProc is reads audio data when used in conjunction with the [AudioFileOpenWithCallbacks(_:_:_:_:_:_:_:)] or [AudioFileInitializeWithCallbacks(_:_:_:_:_:_:_:_:_:)] functions.).
See: https://developer.apple.com/documentation/AudioToolbox/AudioFile_ReadProc
type AudioFile_SMPTE_Time ¶
type AudioFile_SMPTE_Time struct {
MHours int8 // The hours.
MMinutes uint8 // The minutes.
MSeconds uint8 // The seconds.
MFrames uint8 // The frames.
MSubFrameSampleOffset uint32 // The sample offset within a frame.
}
AudioFile_SMPTE_Time - A data structure for describing SMPTE (Society of Motion Picture and Television Engineers) time.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFile_SMPTE_Time
type AudioFile_SetSizeProc ¶
AudioFile_SetSizeProc is sets file data size.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFile_SetSizeProc
type AudioFile_WriteProc ¶
type AudioFile_WriteProc = func(inClientData unsafe.Pointer, inPosition int64, requestCount uint32, buffer unsafe.Pointer, actualCount *uint32) int32
AudioFile_WriteProc is a callback for writing file data when used in conjunction with the [AudioFileOpenWithCallbacks(_:_:_:_:_:_:_:)] or [AudioFileCreateWithURL(_:_:_:_:_:)] functions.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFile_WriteProc
type AudioFormatInfo ¶
type AudioFormatInfo struct {
MASBD coreaudiotypes.AudioStreamBasicDescription // An [AudioStreamBasicDescription] structure.
MMagicCookie unsafe.Pointer // A pointer to the decompression information for the data described in the `mASBD` parameter.
MMagicCookieSize uint32 // The size, in bytes, of the `mMagicCookie` parameter.
}
AudioFormatInfo - A structure that specifies an audio format.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFormatInfo
type AudioFormatListItem ¶
type AudioFormatListItem struct {
MASBD coreaudiotypes.AudioStreamBasicDescription
MChannelLayoutTag uint32
}
AudioFormatListItem
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioFormatListItem
type AudioFormatPropertyID ¶
type AudioFormatPropertyID = uint32
AudioFormatPropertyID is a type for four-char codes for audio format property identifiers.
See: https://developer.apple.com/documentation/AudioToolbox/AudioFormatPropertyID
type AudioFramePacketTranslation ¶
type AudioFramePacketTranslation struct {
MFrame int64 // A frame number.
MPacket int64 // A packet number.
MFrameOffsetInPacket uint32 // A frame offset in a packet.
}
AudioFramePacketTranslation - A structure that specifies frame and packet translations.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFramePacketTranslation
type AudioIndependentPacketTranslation ¶
AudioIndependentPacketTranslation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioIndependentPacketTranslation
type AudioOutputUnitMIDICallbacks ¶
type AudioOutputUnitMIDICallbacks struct {
UserData unsafe.Pointer
MIDIEventProc func(unsafe.Pointer, uint32, uint32, uint32, uint32)
MIDISysExProc func(unsafe.Pointer, *byte, uint32)
}
AudioOutputUnitMIDICallbacks
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitMIDICallbacks
type AudioOutputUnitStartAtTimeParams ¶
type AudioOutputUnitStartAtTimeParams struct {
MTimestamp coreaudiotypes.AudioTimeStamp
MFlags uint32
}
AudioOutputUnitStartAtTimeParams - A timestamp for scheduled starting of an I/O audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStartAtTimeParams
type AudioOutputUnitStartProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStartProc
type AudioOutputUnitStopProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStopProc
type AudioPacketDependencyInfoTranslation ¶
type AudioPacketDependencyInfoTranslation struct {
MPacket int64
MIsIndependentlyDecodable uint32
MNumberPrerollPackets uint32
}
AudioPacketDependencyInfoTranslation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioPacketDependencyInfoTranslation
type AudioPacketRangeByteCountTranslation ¶
type AudioPacketRangeByteCountTranslation struct {
MPacket int64
MPacketCount int64
MByteCountUpperBound int64
}
AudioPacketRangeByteCountTranslation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioPacketRangeByteCountTranslation
type AudioPacketRollDistanceTranslation ¶
AudioPacketRollDistanceTranslation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioPacketRollDistanceTranslation
type AudioPanningInfo ¶
type AudioPanningInfo struct {
MPanningMode AudioPanningMode // The mode to use for panning.
MCoordinateFlags uint32 // For the available coordinate flags, see Channel Coordinate Flags.
MCoordinates [3]float32 // For the available coordinate index constants, see Channel Coordinate Index Constants.
MGainScale float32 // A multiplier for audio panning values, typically representing a volume value in the range from 0 to 1. A value of 1 results in audio panning at unity gain. A value of 0 silences all channels.
MOutputChannelMap *coreaudiotypes.AudioChannelLayout // The channel map used to determine channel volumes for the audio panning.
}
AudioPanningInfo - Audio panning information.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioPanningInfo
type AudioPanningMode ¶
type AudioPanningMode uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioPanningMode
const ( // KPanningMode_SoundField: The SoundField panning algorithm. KPanningMode_SoundField AudioPanningMode = 3 // KPanningMode_VectorBasedPanning: A vector-based panning algorithm. KPanningMode_VectorBasedPanning AudioPanningMode = 4 )
func (AudioPanningMode) String ¶
func (e AudioPanningMode) String() string
type AudioQueueBuffer ¶
type AudioQueueBuffer struct {
MAudioDataBytesCapacity uint32 // The size of the audio queue buffer, in bytes. This size is set when a buffer is allocated and cannot be changed.
MAudioData unsafe.Pointer // The audio data owned the audio queue buffer. The buffer address cannot be changed.
MAudioDataByteSize uint32 // The number of bytes of valid audio data in the audio queue buffer’s `mAudioData` field, initially set to `0`. Your callback must set this value for a playback audio queue; for recording, the recording audio queue sets the value.
MUserData unsafe.Pointer // The custom data structure you specify, for use by your callback function, when creating a recording or playback audio queue.
MPacketDescriptionCapacity uint32 // The maximum number of packet descriptions that can be stored in the `mPacketDescriptions` field.
MPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription // An array of [AudioStreamPacketDescription] structures for the buffer.
MPacketDescriptionCount uint32 // The number of valid packet descriptions in the buffer. You set this value when providing buffers for playback. The audio queue sets this value when returning buffers from a recording queue.
}
AudioQueueBuffer - Defines an audio queue buffer.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioQueueBuffer
type AudioQueueBufferRef ¶
type AudioQueueBufferRef = *AudioQueueBuffer
AudioQueueBufferRef is a pointer to an audio queue buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueBufferRef
type AudioQueueChannelAssignment ¶
type AudioQueueChannelAssignment struct {
MDeviceUID corefoundation.CFStringRef
MChannelNumber uint32
}
AudioQueueChannelAssignment
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioQueueChannelAssignment
type AudioQueueInputCallback ¶
type AudioQueueInputCallback = func(inUserData unsafe.Pointer, inAQ AudioQueueRef, inBuffer uintptr, inStartTime uintptr, inNumberPacketDescriptions uint32, inPacketDescs uintptr)
AudioQueueInputCallback is called by the system when a recording audio queue has finished filling an audio queue buffer.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueInputCallback
type AudioQueueInputCallbackBlock ¶
type AudioQueueInputCallbackBlock = func(*uintptr, *AudioQueueBuffer, *coreaudiotypes.AudioTimeStamp, uint32, *coreaudiotypes.AudioStreamPacketDescription)
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueInputCallbackBlock
type AudioQueueLevelMeterState ¶
type AudioQueueLevelMeterState struct {
MAveragePower float32 // The audio channel’s average RMS power.
MPeakPower float32 // The audio channel’s peak RMS power.
}
AudioQueueLevelMeterState - Specifies the current level metering information for one channel of an audio queue.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioQueueLevelMeterState
type AudioQueueOutputCallback ¶
type AudioQueueOutputCallback = func(inUserData unsafe.Pointer, inAQ AudioQueueRef, inBuffer uintptr)
AudioQueueOutputCallback is called by the system when an audio queue buffer is available for reuse.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueOutputCallback
type AudioQueueOutputCallbackBlock ¶
type AudioQueueOutputCallbackBlock = func(*uintptr, *AudioQueueBuffer)
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueOutputCallbackBlock
type AudioQueueParameterEvent ¶
type AudioQueueParameterEvent struct {
MID AudioQueueParameterID // The parameter.
MValue AudioQueueParameterValue // The value of the specified parameter.
}
AudioQueueParameterEvent - Specifies an audio queue parameter and associated value.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioQueueParameterEvent
type AudioQueueParameterID ¶
type AudioQueueParameterID = uint32
AudioQueueParameterID is a [UInt32] value that uniquely identifies an audio queue parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueParameterID
type AudioQueueParameterValue ¶
type AudioQueueParameterValue = float32
AudioQueueParameterValue is a [Float32] value for an audio queue parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueParameterValue
type AudioQueueProcessingTapCallback ¶
type AudioQueueProcessingTapCallback = func(unsafe.Pointer, AudioQueueProcessingTapRef, uint32, uintptr, *AudioQueueProcessingTapFlags, *uint32, uintptr)
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapCallback
type AudioQueueProcessingTapFlags ¶
type AudioQueueProcessingTapFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapFlags
const ( KAudioQueueProcessingTap_EndOfStream AudioQueueProcessingTapFlags = 512 KAudioQueueProcessingTap_PostEffects AudioQueueProcessingTapFlags = 2 KAudioQueueProcessingTap_PreEffects AudioQueueProcessingTapFlags = 1 KAudioQueueProcessingTap_Siphon AudioQueueProcessingTapFlags = 4 KAudioQueueProcessingTap_StartOfStream AudioQueueProcessingTapFlags = 256 )
func (AudioQueueProcessingTapFlags) String ¶
func (e AudioQueueProcessingTapFlags) String() string
type AudioQueueProcessingTapRef ¶
type AudioQueueProcessingTapRef uintptr
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapRef
type AudioQueuePropertyID ¶
type AudioQueuePropertyID = uint32
AudioQueuePropertyID is identifiers for audio queue properties.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePropertyID
type AudioQueuePropertyListenerProc ¶
type AudioQueuePropertyListenerProc = func(inUserData unsafe.Pointer, inAQ AudioQueueRef, inID uint32)
AudioQueuePropertyListenerProc is called by the system when a specified audio queue property changes value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePropertyListenerProc
type AudioQueueRef ¶
AudioQueueRef is defines an opaque data type that represents an audio queue.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueRef
type AudioQueueTimelineRef ¶
type AudioQueueTimelineRef uintptr
AudioQueueTimelineRef is defines an opaque data type that represents an audio queue timeline object.
See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueTimelineRef
type AudioServicesPropertyID ¶
type AudioServicesPropertyID = uint32
AudioServicesPropertyID is the data type for a system sound property identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPropertyID
type AudioServicesSystemSoundCompletionProc ¶
AudioServicesSystemSoundCompletionProc is a function the system invokes when a system sound finishes playing.
See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesSystemSoundCompletionProc
type AudioSessionInterruptionType ¶
type AudioSessionInterruptionType = uint32
AudioSessionInterruptionType is values that indicate the nature of the interruption that ended.
See: https://developer.apple.com/documentation/AudioToolbox/AudioSessionInterruptionType
type AudioSettingsFlags ¶
type AudioSettingsFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioSettingsFlags
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 AudioUnit ¶
AudioUnit is the data type for a plug-in component that provides audio processing or audio data generation.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnit
type AudioUnitAddPropertyListenerProc ¶
type AudioUnitAddPropertyListenerProc = func(unsafe.Pointer, uint32, AudioUnitPropertyListenerProc, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitAddPropertyListenerProc
type AudioUnitAddRenderNotifyProc ¶
type AudioUnitAddRenderNotifyProc = func(unsafe.Pointer, func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uint32, uintptr) int32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitAddRenderNotifyProc
type AudioUnitCarbonView ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitCarbonView
type AudioUnitCarbonViewEventID ¶
type AudioUnitCarbonViewEventID = int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitCarbonViewEventID
type AudioUnitCocoaViewInfo ¶
type AudioUnitCocoaViewInfo struct {
MCocoaAUViewBundleLocation corefoundation.CFURLRef
MCocoaAUViewClass [1]corefoundation.CFStringRef
}
AudioUnitCocoaViewInfo - The name and number of custom Cocoa views for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitCocoaViewInfo
type AudioUnitComplexRenderProc ¶
type AudioUnitComplexRenderProc = func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uint32, *uint32, uintptr, uintptr, unsafe.Pointer, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitComplexRenderProc
type AudioUnitConnection ¶
type AudioUnitConnection struct {
SourceAudioUnit AudioUnit // The audio unit that is serves as the source in the connection.
SourceOutputNumber uint32 // The source audio unit’s output element to be used in the connection.
DestInputNumber uint32 // The destination audio unit’s input element to be used in the connection.
}
AudioUnitConnection - An audio unit source-to-destination connection specification.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitConnection
type AudioUnitElement ¶
type AudioUnitElement = uint32
AudioUnitElement is the data type for an audio unit element identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitElement
type AudioUnitEvent ¶
type AudioUnitEvent struct {
MEventType AudioUnitEventType
MArgument [3]uint64
}
AudioUnitEvent
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitEvent
type AudioUnitEventType ¶
type AudioUnitEventType uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitEventType
const ( KAudioUnitEvent_BeginParameterChangeGesture AudioUnitEventType = 1 KAudioUnitEvent_EndParameterChangeGesture AudioUnitEventType = 2 KAudioUnitEvent_ParameterValueChange AudioUnitEventType = 0 KAudioUnitEvent_PropertyChange AudioUnitEventType = 3 )
func (AudioUnitEventType) String ¶
func (e AudioUnitEventType) String() string
type AudioUnitExternalBuffer ¶
AudioUnitExternalBuffer - Allows an audio unit host application to tell an audio unit to use a specified buffer for its input callback.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitExternalBuffer
type AudioUnitFrequencyResponseBin ¶
AudioUnitFrequencyResponseBin - An audio unit’s audio level at a particular frequency.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitFrequencyResponseBin
type AudioUnitGetParameterProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetParameterProc
type AudioUnitGetPropertyInfoProc ¶
type AudioUnitGetPropertyInfoProc = func(unsafe.Pointer, uint32, uint32, uint32, *uint32, *byte) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetPropertyInfoProc
type AudioUnitGetPropertyProc ¶
type AudioUnitGetPropertyProc = func(unsafe.Pointer, uint32, uint32, uint32, unsafe.Pointer, *uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetPropertyProc
type AudioUnitInitializeProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitInitializeProc
type AudioUnitMIDIControlMapping ¶
type AudioUnitMIDIControlMapping struct {
MidiNRPN uint16
MidiControl uint8
Scope uint8
Element AudioUnitElement
Parameter AudioUnitParameterID
}
AudioUnitMIDIControlMapping
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitMIDIControlMapping
type AudioUnitMeterClipping ¶
type AudioUnitMeterClipping struct {
PeakValueSinceLastCall float32 // The maximum value seen on the channel since the last time the property was retrieved.
SawInfinity bool // [TRUE] if there was an infinite value on this channel since the last time the property was retrieved.
SawNotANumber bool // [TRUE] if there was a floating point “not a number” value on this channel since the last time the property was retrieved.
}
AudioUnitMeterClipping - Audio clipping that has occurred in a mixer unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitMeterClipping
type AudioUnitNodeConnection ¶
type AudioUnitNodeConnection struct {
SourceNode AUNode
SourceOutputNumber uint32
DestNode AUNode
DestInputNumber uint32
}
AudioUnitNodeConnection - A connection between two node objects in an audio processing graph.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitNodeConnection
type AudioUnitOtherPluginDesc ¶
type AudioUnitOtherPluginDesc struct {
Format uint32
Plugin coreaudiotypes.AudioClassDescription
}
AudioUnitOtherPluginDesc
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitOtherPluginDesc
type AudioUnitParameter ¶
type AudioUnitParameter struct {
MAudioUnit AudioUnit // The audio unit instance that the parameter applies to.
MParameterID AudioUnitParameterID // The audio unit parameter identifier.
MScope AudioUnitScope // The audio unit scope for the parameter.
MElement AudioUnitElement // The audio unit element for the parameter.
}
AudioUnitParameter - An adjustable audio unit attribute such as volume, pitch, or filter cutoff frequency.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameter
type AudioUnitParameterEvent ¶
type AudioUnitParameterEvent struct {
Scope AudioUnitScope // The scope for this parameter event.
Element AudioUnitElement // The element for this parameter event.
Parameter AudioUnitParameterID // An identifier for this parameter event.
EventType AUParameterEventType // The type for this parameter event.
EventValues [4]uint32 // The values for this parameter event.
Immediate unsafe.Pointer
Ramp unsafe.Pointer
}
AudioUnitParameterEvent - A scheduled change to an audio unit parameter’s value.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterEvent
type AudioUnitParameterHistoryInfo ¶
type AudioUnitParameterHistoryInfo struct {
UpdatesPerSecond float32
HistoryDurationInSeconds float32
}
AudioUnitParameterHistoryInfo - The suggested update rate and history duration for parameters which have the [flag_PlotHistory](<https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterOptions/flag_PlotHistory>) flag set.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterHistoryInfo
type AudioUnitParameterID ¶
type AudioUnitParameterID = uint32
AudioUnitParameterID is the data type for an audio unit parameter identifier.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterID
type AudioUnitParameterIDName ¶
type AudioUnitParameterIDName = AudioUnitParameterNameInfo
AudioUnitParameterIDName is a type definition for a data type that defines the short version of the name for an audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterIDName
type AudioUnitParameterInfo ¶
type AudioUnitParameterInfo struct {
Name [52]int8 // Must be set to `0`.
UnitName corefoundation.CFStringRef // If `kAudioUnitParameterUnit_CustomUnit` is set, this field must contain a valid [CFString] object. Only valid if `kAudioUnitParameterUnit_CustomUnit` is set.
ClumpID uint32 // Only valid if `kAudioUnitParameterFlag_HasClump` is set.
CfNameString corefoundation.CFStringRef // Only valid if `kAudioUnitParameterFlag_HasCFNameString` is set.
Unit AudioUnitParameterUnit // If the `unit` field contains a value not in the [AudioUnitParameterUnit] enumeration, then assume the unit type is `kAudioUnitParameterUnit_Generic`.
MinValue AudioUnitParameterValue
MaxValue AudioUnitParameterValue
DefaultValue AudioUnitParameterValue
Flags AudioUnitParameterOptions // The host should check for this flag and, if present, release the parameter name when it is finished with it.
}
AudioUnitParameterInfo
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterInfo
type AudioUnitParameterNameInfo ¶
type AudioUnitParameterNameInfo struct {
InID AudioUnitParameterID // The identifier for the audio unit parameter.
InDesiredLength int32 // When setting an audio unit property that uses this data structure for its value, the maximum length that you are specifying for the audio unit parameter name.
OutName corefoundation.CFStringRef // When getting an audio unit property that uses this data structure for its value, the short version of the parameter name provided by the audio unit. The host application then owns the string and is responsible for releasing it.
}
AudioUnitParameterNameInfo - A short version of the name for an audio unit parameter.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterNameInfo
type AudioUnitParameterOptions ¶
type AudioUnitParameterOptions uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterOptions
const ( // KAudioUnitParameterFlag_CFNameRelease: If an audio unit can generate parameter names dynamically, it should set this flag. KAudioUnitParameterFlag_CFNameRelease AudioUnitParameterOptions = 16 KAudioUnitParameterFlag_CanRamp AudioUnitParameterOptions = 33554432 KAudioUnitParameterFlag_DisplayCubeRoot AudioUnitParameterOptions = 262144 KAudioUnitParameterFlag_DisplayCubed AudioUnitParameterOptions = 196608 KAudioUnitParameterFlag_DisplayExponential AudioUnitParameterOptions = 327680 KAudioUnitParameterFlag_DisplayLogarithmic AudioUnitParameterOptions = 4194304 KAudioUnitParameterFlag_DisplayMask AudioUnitParameterOptions = 4653056 KAudioUnitParameterFlag_DisplaySquareRoot AudioUnitParameterOptions = 65536 KAudioUnitParameterFlag_DisplaySquared AudioUnitParameterOptions = 131072 KAudioUnitParameterFlag_ExpertMode AudioUnitParameterOptions = 67108864 KAudioUnitParameterFlag_HasCFNameString AudioUnitParameterOptions = 134217728 KAudioUnitParameterFlag_HasClump AudioUnitParameterOptions = 1048576 KAudioUnitParameterFlag_IsElementMeta AudioUnitParameterOptions = 536870912 KAudioUnitParameterFlag_IsGlobalMeta AudioUnitParameterOptions = 268435456 KAudioUnitParameterFlag_IsHighResolution AudioUnitParameterOptions = 8388608 KAudioUnitParameterFlag_IsReadable AudioUnitParameterOptions = 1073741824 KAudioUnitParameterFlag_IsWritable AudioUnitParameterOptions = 2147483648 KAudioUnitParameterFlag_MeterReadOnly AudioUnitParameterOptions = 32768 KAudioUnitParameterFlag_NonRealTime AudioUnitParameterOptions = 16777216 KAudioUnitParameterFlag_OmitFromPresets AudioUnitParameterOptions = 8192 // KAudioUnitParameterFlag_PlotHistory: If set, getting the `kAudioUnitProperty_ParameterHistoryInfo` property fills out the AudioUnitParameterHistoryInfo struct containing the recommended update rate and history duration. KAudioUnitParameterFlag_PlotHistory AudioUnitParameterOptions = 16384 KAudioUnitParameterFlag_ValuesHaveStrings AudioUnitParameterOptions = 2097152 )
func (AudioUnitParameterOptions) String ¶
func (e AudioUnitParameterOptions) String() string
type AudioUnitParameterStringFromValue ¶
type AudioUnitParameterStringFromValue struct {
InParamID AudioUnitParameterID
InValue *AudioUnitParameterValue
OutString corefoundation.CFStringRef
}
AudioUnitParameterStringFromValue - A string representation of a parameter’s value.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterStringFromValue
type AudioUnitParameterUnit ¶
type AudioUnitParameterUnit uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterUnit
const ( // KAudioUnitParameterUnit_AbsoluteCents: An absolute unit of measure for the musical pitch of a note. KAudioUnitParameterUnit_AbsoluteCents AudioUnitParameterUnit = 20 // KAudioUnitParameterUnit_BPM: A whole-number unit of measure for musical tempo, representing beats per minute. KAudioUnitParameterUnit_BPM AudioUnitParameterUnit = 22 // KAudioUnitParameterUnit_Beats: A time unit of measure in musical beats. KAudioUnitParameterUnit_Beats AudioUnitParameterUnit = 23 // KAudioUnitParameterUnit_Boolean: A Boolean-like unit of measure. KAudioUnitParameterUnit_Boolean AudioUnitParameterUnit = 2 // KAudioUnitParameterUnit_Cents: A logarithmic unit of measure for a musical interval between two notes. KAudioUnitParameterUnit_Cents AudioUnitParameterUnit = 9 // KAudioUnitParameterUnit_CustomUnit: A custom unit of measure. KAudioUnitParameterUnit_CustomUnit AudioUnitParameterUnit = 26 // KAudioUnitParameterUnit_Decibels: A logarithmic unit of measure representing the ratio between two audio levels. KAudioUnitParameterUnit_Decibels AudioUnitParameterUnit = 13 // KAudioUnitParameterUnit_Degrees: An angular degree unit of measure. KAudioUnitParameterUnit_Degrees AudioUnitParameterUnit = 15 // KAudioUnitParameterUnit_EqualPowerCrossfade: An audio power unit of measure. KAudioUnitParameterUnit_EqualPowerCrossfade AudioUnitParameterUnit = 16 // KAudioUnitParameterUnit_Generic: A generic unit of measure. KAudioUnitParameterUnit_Generic AudioUnitParameterUnit = 0 // KAudioUnitParameterUnit_Hertz: A hertz unit of measure. KAudioUnitParameterUnit_Hertz AudioUnitParameterUnit = 8 // KAudioUnitParameterUnit_Indexed: An indexed unit of measure. KAudioUnitParameterUnit_Indexed AudioUnitParameterUnit = 1 // KAudioUnitParameterUnit_LinearGain: A linear unit of measure representing the difference between two audio levels. KAudioUnitParameterUnit_LinearGain AudioUnitParameterUnit = 14 KAudioUnitParameterUnit_MIDI2Controller AudioUnitParameterUnit = 27 // KAudioUnitParameterUnit_MIDIController: A whole-number unit of measure corresponding to standard MIDI control numbers. KAudioUnitParameterUnit_MIDIController AudioUnitParameterUnit = 12 // KAudioUnitParameterUnit_MIDINoteNumber: A whole-number unit of measure corresponding to audio frequency. KAudioUnitParameterUnit_MIDINoteNumber AudioUnitParameterUnit = 11 // KAudioUnitParameterUnit_Meters: A distance unit of measure, corresponding to meters. KAudioUnitParameterUnit_Meters AudioUnitParameterUnit = 19 // KAudioUnitParameterUnit_Milliseconds: A time unit of measure representing milliseconds. KAudioUnitParameterUnit_Milliseconds AudioUnitParameterUnit = 24 // KAudioUnitParameterUnit_MixerFaderCurve1: An audio power unit of measure. KAudioUnitParameterUnit_MixerFaderCurve1 AudioUnitParameterUnit = 17 // KAudioUnitParameterUnit_Octaves: A relative unit of measure for the musical interval between two notes. KAudioUnitParameterUnit_Octaves AudioUnitParameterUnit = 21 // KAudioUnitParameterUnit_Pan: An audio position unit of measure. KAudioUnitParameterUnit_Pan AudioUnitParameterUnit = 18 // KAudioUnitParameterUnit_Percent: A percentage unit of measure. KAudioUnitParameterUnit_Percent AudioUnitParameterUnit = 3 // KAudioUnitParameterUnit_Phase: An angular degree unit of measure. KAudioUnitParameterUnit_Phase AudioUnitParameterUnit = 6 // KAudioUnitParameterUnit_Rate: A multiplication factor unit of measure. KAudioUnitParameterUnit_Rate AudioUnitParameterUnit = 7 // KAudioUnitParameterUnit_Ratio: A unitless ratio unit of measure. KAudioUnitParameterUnit_Ratio AudioUnitParameterUnit = 25 // KAudioUnitParameterUnit_RelativeSemiTones: A relative unit of measure for a musical interval between two notes. KAudioUnitParameterUnit_RelativeSemiTones AudioUnitParameterUnit = 10 // KAudioUnitParameterUnit_SampleFrames: A sample-frame-count unit of measure. KAudioUnitParameterUnit_SampleFrames AudioUnitParameterUnit = 5 // KAudioUnitParameterUnit_Seconds: A whole-seconds unit of measure, indicating either absolute or relative time. KAudioUnitParameterUnit_Seconds AudioUnitParameterUnit = 4 )
func (AudioUnitParameterUnit) String ¶
func (e AudioUnitParameterUnit) String() string
type AudioUnitParameterValue ¶
type AudioUnitParameterValue = float32
AudioUnitParameterValue is the data type for an audio unit parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterValue
func AUParameterValueFromLinear ¶
func AUParameterValueFromLinear(inLinearValue float32, inParameter *AudioUnitParameter) AudioUnitParameterValue
AUParameterValueFromLinear.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterValueFromLinear(_:_:)
type AudioUnitParameterValueFromString ¶
type AudioUnitParameterValueFromString struct {
InParamID AudioUnitParameterID
InString corefoundation.CFStringRef
OutValue AudioUnitParameterValue
}
AudioUnitParameterValueFromString - A parameter’s value based on a string representation of the value.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterValueFromString
type AudioUnitParameterValueName ¶
type AudioUnitParameterValueName struct {
InParamID AudioUnitParameterID
InValue *float32
OutName corefoundation.CFStringRef
}
AudioUnitParameterValueName
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterValueName
type AudioUnitParameterValueTranslation ¶
type AudioUnitParameterValueTranslation struct {
OtherDesc AudioUnitOtherPluginDesc
OtherParamID uint32
OtherValue float32
AuParamID AudioUnitParameterID
AuValue AudioUnitParameterValue
}
AudioUnitParameterValueTranslation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitParameterValueTranslation
type AudioUnitPresetMAS_SettingData ¶
type AudioUnitPresetMAS_SettingData struct {
IsStockSetting uint32
SettingID uint32
DataLen uint32
Data [1]uint8
}
AudioUnitPresetMAS_SettingData
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitPresetMAS_SettingData
type AudioUnitPresetMAS_Settings ¶
type AudioUnitPresetMAS_Settings struct {
ManufacturerID uint32
EffectID uint32
VariantID uint32
SettingsVersion uint32
NumberOfSettings uint32
Settings [1]AudioUnitPresetMAS_SettingData
}
AudioUnitPresetMAS_Settings
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitPresetMAS_Settings
type AudioUnitProcessMultipleProc ¶
type AudioUnitProcessMultipleProc = func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uint32, uintptr, uint32, uintptr) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitProcessMultipleProc
type AudioUnitProcessProc ¶
type AudioUnitProcessProc = func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uintptr) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitProcessProc
type AudioUnitProperty ¶
type AudioUnitProperty struct {
MAudioUnit AudioUnit // The audio unit instance that the parameter applies to.
MPropertyID AudioUnitPropertyID // The audio unit property identifier.
MScope AudioUnitScope // The audio unit scope for the property.
MElement AudioUnitElement // The audio unit element for the property.
}
AudioUnitProperty - A key-value pair that declares an attribute or behavior for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitProperty
type AudioUnitPropertyID ¶
type AudioUnitPropertyID = uint32
AudioUnitPropertyID is the data type for audio unit property keys.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitPropertyID
type AudioUnitPropertyListenerProc ¶
type AudioUnitPropertyListenerProc = func(inRefCon unsafe.Pointer, inUnit AudioComponentInstance, inID uint32, inScope uint32, inElement uint32)
AudioUnitPropertyListenerProc is called by the system when the value of a specified audio unit property has changed.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitPropertyListenerProc
type AudioUnitRemoteControlEvent ¶
type AudioUnitRemoteControlEvent uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemoteControlEvent
const ( KAudioUnitRemoteControlEvent_Rewind AudioUnitRemoteControlEvent = 3 KAudioUnitRemoteControlEvent_TogglePlayPause AudioUnitRemoteControlEvent = 1 KAudioUnitRemoteControlEvent_ToggleRecord AudioUnitRemoteControlEvent = 2 )
func (AudioUnitRemoteControlEvent) String ¶
func (e AudioUnitRemoteControlEvent) String() string
type AudioUnitRemoteControlEventListener ¶
type AudioUnitRemoteControlEventListener = func(AudioUnitRemoteControlEvent)
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemoteControlEventListener
type AudioUnitRemovePropertyListenerProc ¶
type AudioUnitRemovePropertyListenerProc = func(unsafe.Pointer, uint32, AudioUnitPropertyListenerProc) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemovePropertyListenerProc
type AudioUnitRemovePropertyListenerWithUserDataProc ¶
type AudioUnitRemoveRenderNotifyProc ¶
type AudioUnitRemoveRenderNotifyProc = func(unsafe.Pointer, func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uint32, uintptr) int32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemoveRenderNotifyProc
type AudioUnitRenderActionFlags ¶
type AudioUnitRenderActionFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRenderActionFlags
const ( // KAudioOfflineUnitRenderAction_Complete: This flag is set when an offline unit has completed either its preflight or performed render operation. KAudioOfflineUnitRenderAction_Complete AudioUnitRenderActionFlags = 128 // KAudioOfflineUnitRenderAction_Preflight: This is used with offline audio units (of type `'auol'`). KAudioOfflineUnitRenderAction_Preflight AudioUnitRenderActionFlags = 32 // KAudioOfflineUnitRenderAction_Render: Once an offline unit has been successfully preflighted, it is then put into its render mode. KAudioOfflineUnitRenderAction_Render AudioUnitRenderActionFlags = 64 // KAudioUnitRenderAction_DoNotCheckRenderArgs: If this flag is set, then checks that are done on the arguments provided to render are not performed. KAudioUnitRenderAction_DoNotCheckRenderArgs AudioUnitRenderActionFlags = 512 // KAudioUnitRenderAction_OutputIsSilence: This flag can be set in a render input callback (or in the audio unit’s render operation itself) and is used to indicate that the render buffer contains only silence. KAudioUnitRenderAction_OutputIsSilence AudioUnitRenderActionFlags = 16 // KAudioUnitRenderAction_PostRender: Called on a render notification Proc - which is called either before or after the render operation of the audio unit. KAudioUnitRenderAction_PostRender AudioUnitRenderActionFlags = 8 // KAudioUnitRenderAction_PostRenderError: If this flag is set on the post-render call an error was returned by the audio unit’s render operation. KAudioUnitRenderAction_PostRenderError AudioUnitRenderActionFlags = 256 // KAudioUnitRenderAction_PreRender: Called on a render notification Proc - which is called either before or after the render operation of the audio unit. KAudioUnitRenderAction_PreRender AudioUnitRenderActionFlags = 4 )
func (AudioUnitRenderActionFlags) String ¶
func (e AudioUnitRenderActionFlags) String() string
type AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler ¶
type AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int64)
AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler handles completion with primitive and object results.
type AudioUnitRenderContext ¶
type AudioUnitRenderContext struct {
Workgroup os.Os_workgroup_t // The workgroup that manages the rendering threads of the audio unit.
Reserved [6]uint32 // System-specific information.
}
AudioUnitRenderContext - A structure that contains thread context information for a real-time rendering operation.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRenderContext
type AudioUnitRenderProc ¶
type AudioUnitRenderProc = func(unsafe.Pointer, *AudioUnitRenderActionFlags, uintptr, uint32, uint32, uintptr) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRenderProc
type AudioUnitResetProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitResetProc
type AudioUnitScheduleParametersProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitScheduleParametersProc
type AudioUnitScope ¶
type AudioUnitScope = uint32
AudioUnitScope is the data type for audio unit scope identifiers.
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitScope
type AudioUnitSetParameterProc ¶
type AudioUnitSetParameterProc = func(unsafe.Pointer, uint32, uint32, uint32, float32, uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitSetParameterProc
type AudioUnitSetPropertyProc ¶
type AudioUnitSetPropertyProc = func(unsafe.Pointer, uint32, uint32, uint32, unsafe.Pointer, uint32) int32
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitSetPropertyProc
type AudioUnitUninitializeProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitUninitializeProc
type BoolAUHostTransportStateFlagsHandler ¶
BoolAUHostTransportStateFlagsHandler is the signature for a completion handler block.
type BoolFloat64Handler ¶
BoolFloat64Handler is the signature for a completion handler block.
type CABarBeatTime ¶
type CABarBeatTime struct {
Bar int32
Beat uint16
Subbeat uint16
SubbeatDivisor uint16
Reserved uint16
}
CABarBeatTime
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CABarBeatTime
type CAClockBeats ¶
type CAClockBeats = float64
See: https://developer.apple.com/documentation/AudioToolbox/CAClockBeats
type CAClockListenerProc ¶
type CAClockListenerProc = func(unsafe.Pointer, CAClockMessage, unsafe.Pointer)
See: https://developer.apple.com/documentation/AudioToolbox/CAClockListenerProc
type CAClockMessage ¶
type CAClockMessage uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAClockMessage
const ( KCAClockMessage_Armed CAClockMessage = 'a'<<24 | 'r'<<16 | 'm'<<8 | 'd' // 'armd' KCAClockMessage_Disarmed CAClockMessage = 'd'<<24 | 'a'<<16 | 'r'<<8 | 'm' // 'darm' KCAClockMessage_PropertyChanged CAClockMessage = 'p'<<24 | 'c'<<16 | 'h'<<8 | 'g' // 'pchg' KCAClockMessage_StartTimeSet CAClockMessage = 's'<<24 | 't'<<16 | 'i'<<8 | 'm' // 'stim' KCAClockMessage_Started CAClockMessage = 's'<<24 | 't'<<16 | 'r'<<8 | 't' // 'strt' KCAClockMessage_Stopped CAClockMessage = 's'<<24 | 't'<<16 | 'o'<<8 | 'p' // 'stop' KCAClockMessage_WrongSMPTEFormat CAClockMessage = '?'<<24 | 's'<<16 | 'm'<<8 | 'p' // '?smp' )
func (CAClockMessage) String ¶
func (e CAClockMessage) String() string
type CAClockPropertyID ¶
type CAClockPropertyID uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAClockPropertyID
const ( KCAClockProperty_InternalTimebase CAClockPropertyID = 'i'<<24 | 'n'<<16 | 't'<<8 | 'b' // 'intb' KCAClockProperty_MIDIClockDestinations CAClockPropertyID = 'm'<<24 | 'b'<<16 | 'c'<<8 | 'd' // 'mbcd' KCAClockProperty_MTCDestinations CAClockPropertyID = 'm'<<24 | 't'<<16 | 'c'<<8 | 'd' // 'mtcd' KCAClockProperty_MTCFreewheelTime CAClockPropertyID = 'm'<<24 | 't'<<16 | 'f'<<8 | 'w' // 'mtfw' KCAClockProperty_MeterTrack CAClockPropertyID = 'm'<<24 | 'e'<<16 | 't'<<8 | 'r' // 'metr' KCAClockProperty_Name CAClockPropertyID = 'n'<<24 | 'a'<<16 | 'm'<<8 | 'e' // 'name' KCAClockProperty_SMPTEFormat CAClockPropertyID = 's'<<24 | 'm'<<16 | 'p'<<8 | 'f' // 'smpf' KCAClockProperty_SMPTEOffset CAClockPropertyID = 's'<<24 | 'm'<<16 | 'p'<<8 | 'o' // 'smpo' KCAClockProperty_SendMIDISPP CAClockPropertyID = 'm'<<24 | 's'<<16 | 'p'<<8 | 'p' // 'mspp' KCAClockProperty_SyncMode CAClockPropertyID = 's'<<24 | 'y'<<16 | 'n'<<8 | 'm' // 'synm' KCAClockProperty_SyncSource CAClockPropertyID = 's'<<24 | 'y'<<16 | 'n'<<8 | 's' // 'syns' KCAClockProperty_TempoMap CAClockPropertyID = 't'<<24 | 'm'<<16 | 'p'<<8 | 'o' // 'tmpo' KCAClockProperty_TimebaseSource CAClockPropertyID = 'i'<<24 | 't'<<16 | 'b'<<8 | 's' // 'itbs' )
func (CAClockPropertyID) String ¶
func (e CAClockPropertyID) String() string
type CAClockRef ¶
type CAClockRef uintptr
See: https://developer.apple.com/documentation/AudioToolbox/CAClockRef
type CAClockSMPTEFormat ¶
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSMPTEFormat
type CAClockSamples ¶
type CAClockSamples = float64
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSamples
type CAClockSeconds ¶
type CAClockSeconds = float64
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSeconds
type CAClockSyncMode ¶
type CAClockSyncMode uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAClockSyncMode
const ( KCAClockSyncMode_Internal CAClockSyncMode = 'i'<<24 | 'n'<<16 | 't'<<8 | 'r' // 'intr' KCAClockSyncMode_MIDIClockTransport CAClockSyncMode = 'm'<<24 | 'c'<<16 | 'l'<<8 | 'k' // 'mclk' KCAClockSyncMode_MTCTransport CAClockSyncMode = 'm'<<24 | 'm'<<16 | 't'<<8 | 'c' // 'mmtc' )
func (CAClockSyncMode) String ¶
func (e CAClockSyncMode) String() string
type CAClockTempo ¶
type CAClockTempo = float64
See: https://developer.apple.com/documentation/AudioToolbox/CAClockTempo
type CAClockTime ¶
type CAClockTime struct {
Format CAClockTimeFormat
Reserved uint32
Time [3]uint64
}
CAClockTime
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAClockTime
type CAClockTimeFormat ¶
type CAClockTimeFormat uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAClockTimeFormat
const ( KCAClockTimeFormat_AbsoluteSeconds CAClockTimeFormat = 'a'<<24 | 's'<<16 | 'e'<<8 | 'c' // 'asec' KCAClockTimeFormat_Beats CAClockTimeFormat = 'b'<<24 | 'e'<<16 | 'a'<<8 | 't' // 'beat' KCAClockTimeFormat_HostTime CAClockTimeFormat = 'h'<<24 | 'o'<<16 | 's'<<8 | 't' // 'host' KCAClockTimeFormat_SMPTESeconds CAClockTimeFormat = 's'<<24 | 'm'<<16 | 'p'<<8 | 's' // 'smps' KCAClockTimeFormat_SMPTETime CAClockTimeFormat = 's'<<24 | 'm'<<16 | 'p'<<8 | 't' // 'smpt' KCAClockTimeFormat_Samples CAClockTimeFormat = 's'<<24 | 'a'<<16 | 'm'<<8 | 'p' // 'samp' KCAClockTimeFormat_Seconds CAClockTimeFormat = 's'<<24 | 'e'<<16 | 'c'<<8 | 's' // 'secs' )
func (CAClockTimeFormat) String ¶
func (e CAClockTimeFormat) String() string
type CAClockTimebase ¶
type CAClockTimebase uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAClockTimebase
const ( KCAClockTimebase_AudioDevice CAClockTimebase = 'a'<<24 | 'u'<<16 | 'd'<<8 | 'i' // 'audi' KCAClockTimebase_AudioOutputUnit CAClockTimebase = 'a'<<24 | 'u'<<16 | 'o'<<8 | 'u' // 'auou' KCAClockTimebase_HostTime CAClockTimebase = 'h'<<24 | 'o'<<16 | 's'<<8 | 't' // 'host' )
func (CAClockTimebase) String ¶
func (e CAClockTimebase) String() string
type CAFAudioDescription ¶
type CAFAudioDescription struct {
// contains filtered or unexported fields
}
CAFAudioDescription
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFAudioDescription
func (*CAFAudioDescription) MBitsPerChannel ¶
func (s *CAFAudioDescription) MBitsPerChannel() uint32
MBitsPerChannel returns the MBitsPerChannel field from the record's packed storage.
func (*CAFAudioDescription) MBytesPerPacket ¶
func (s *CAFAudioDescription) MBytesPerPacket() uint32
MBytesPerPacket returns the MBytesPerPacket field from the record's packed storage.
func (*CAFAudioDescription) MChannelsPerFrame ¶
func (s *CAFAudioDescription) MChannelsPerFrame() uint32
MChannelsPerFrame returns the MChannelsPerFrame field from the record's packed storage.
func (*CAFAudioDescription) MFormatFlags ¶
func (s *CAFAudioDescription) MFormatFlags() CAFFormatFlags
MFormatFlags returns the MFormatFlags field from the record's packed storage.
func (*CAFAudioDescription) MFormatID ¶
func (s *CAFAudioDescription) MFormatID() uint32
MFormatID returns the MFormatID field from the record's packed storage.
func (*CAFAudioDescription) MFramesPerPacket ¶
func (s *CAFAudioDescription) MFramesPerPacket() uint32
MFramesPerPacket returns the MFramesPerPacket field from the record's packed storage.
func (*CAFAudioDescription) MSampleRate ¶
func (s *CAFAudioDescription) MSampleRate() float64
MSampleRate returns the MSampleRate field from the record's packed storage.
func (*CAFAudioDescription) SetMBitsPerChannel ¶
func (s *CAFAudioDescription) SetMBitsPerChannel(v uint32)
SetMBitsPerChannel updates the MBitsPerChannel field in the record's packed storage.
func (*CAFAudioDescription) SetMBytesPerPacket ¶
func (s *CAFAudioDescription) SetMBytesPerPacket(v uint32)
SetMBytesPerPacket updates the MBytesPerPacket field in the record's packed storage.
func (*CAFAudioDescription) SetMChannelsPerFrame ¶
func (s *CAFAudioDescription) SetMChannelsPerFrame(v uint32)
SetMChannelsPerFrame updates the MChannelsPerFrame field in the record's packed storage.
func (*CAFAudioDescription) SetMFormatFlags ¶
func (s *CAFAudioDescription) SetMFormatFlags(v CAFFormatFlags)
SetMFormatFlags updates the MFormatFlags field in the record's packed storage.
func (*CAFAudioDescription) SetMFormatID ¶
func (s *CAFAudioDescription) SetMFormatID(v uint32)
SetMFormatID updates the MFormatID field in the record's packed storage.
func (*CAFAudioDescription) SetMFramesPerPacket ¶
func (s *CAFAudioDescription) SetMFramesPerPacket(v uint32)
SetMFramesPerPacket updates the MFramesPerPacket field in the record's packed storage.
func (*CAFAudioDescription) SetMSampleRate ¶
func (s *CAFAudioDescription) SetMSampleRate(v float64)
SetMSampleRate updates the MSampleRate field in the record's packed storage.
type CAFAudioFormatListItem ¶
type CAFAudioFormatListItem struct {
// contains filtered or unexported fields
}
CAFAudioFormatListItem
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFAudioFormatListItem
func (*CAFAudioFormatListItem) MChannelLayoutTag ¶
func (s *CAFAudioFormatListItem) MChannelLayoutTag() uint32
MChannelLayoutTag returns the MChannelLayoutTag field from the record's packed storage.
func (*CAFAudioFormatListItem) MFormat ¶
func (s *CAFAudioFormatListItem) MFormat() CAFAudioDescription
MFormat returns the MFormat field from the record's packed storage.
func (*CAFAudioFormatListItem) SetMChannelLayoutTag ¶
func (s *CAFAudioFormatListItem) SetMChannelLayoutTag(v uint32)
SetMChannelLayoutTag updates the MChannelLayoutTag field in the record's packed storage.
func (*CAFAudioFormatListItem) SetMFormat ¶
func (s *CAFAudioFormatListItem) SetMFormat(v CAFAudioDescription)
SetMFormat updates the MFormat field in the record's packed storage.
type CAFChunkHeader ¶
type CAFChunkHeader struct {
// contains filtered or unexported fields
}
CAFChunkHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFChunkHeader
func (*CAFChunkHeader) MChunkSize ¶
func (s *CAFChunkHeader) MChunkSize() int64
MChunkSize returns the MChunkSize field from the record's packed storage.
func (*CAFChunkHeader) MChunkType ¶
func (s *CAFChunkHeader) MChunkType() uint32
MChunkType returns the MChunkType field from the record's packed storage.
func (*CAFChunkHeader) SetMChunkSize ¶
func (s *CAFChunkHeader) SetMChunkSize(v int64)
SetMChunkSize updates the MChunkSize field in the record's packed storage.
func (*CAFChunkHeader) SetMChunkType ¶
func (s *CAFChunkHeader) SetMChunkType(v uint32)
SetMChunkType updates the MChunkType field in the record's packed storage.
type CAFDataChunk ¶
type CAFDataChunk struct {
// contains filtered or unexported fields
}
CAFDataChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFDataChunk
func (*CAFDataChunk) MData ¶
func (s *CAFDataChunk) MData() [1]uint8
MData returns the MData field from the record's packed storage.
func (*CAFDataChunk) MEditCount ¶
func (s *CAFDataChunk) MEditCount() uint32
MEditCount returns the MEditCount field from the record's packed storage.
func (*CAFDataChunk) SetMData ¶
func (s *CAFDataChunk) SetMData(v [1]uint8)
SetMData updates the MData field in the record's packed storage.
func (*CAFDataChunk) SetMEditCount ¶
func (s *CAFDataChunk) SetMEditCount(v uint32)
SetMEditCount updates the MEditCount field in the record's packed storage.
type CAFFileHeader ¶
type CAFFileHeader struct {
// contains filtered or unexported fields
}
CAFFileHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFFileHeader
func (*CAFFileHeader) MFileFlags ¶
func (s *CAFFileHeader) MFileFlags() uint16
MFileFlags returns the MFileFlags field from the record's packed storage.
func (*CAFFileHeader) MFileType ¶
func (s *CAFFileHeader) MFileType() uint32
MFileType returns the MFileType field from the record's packed storage.
func (*CAFFileHeader) MFileVersion ¶
func (s *CAFFileHeader) MFileVersion() uint16
MFileVersion returns the MFileVersion field from the record's packed storage.
func (*CAFFileHeader) SetMFileFlags ¶
func (s *CAFFileHeader) SetMFileFlags(v uint16)
SetMFileFlags updates the MFileFlags field in the record's packed storage.
func (*CAFFileHeader) SetMFileType ¶
func (s *CAFFileHeader) SetMFileType(v uint32)
SetMFileType updates the MFileType field in the record's packed storage.
func (*CAFFileHeader) SetMFileVersion ¶
func (s *CAFFileHeader) SetMFileVersion(v uint16)
SetMFileVersion updates the MFileVersion field in the record's packed storage.
type CAFFormatFlags ¶
type CAFFormatFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAFFormatFlags
const ( KCAFLinearPCMFormatFlagIsFloat CAFFormatFlags = 1 KCAFLinearPCMFormatFlagIsLittleEndian CAFFormatFlags = 2 )
func (CAFFormatFlags) String ¶
func (e CAFFormatFlags) String() string
type CAFInfoStrings ¶
type CAFInfoStrings struct {
// contains filtered or unexported fields
}
CAFInfoStrings
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFInfoStrings
func (*CAFInfoStrings) MNumEntries ¶
func (s *CAFInfoStrings) MNumEntries() uint32
MNumEntries returns the MNumEntries field from the record's packed storage.
func (*CAFInfoStrings) SetMNumEntries ¶
func (s *CAFInfoStrings) SetMNumEntries(v uint32)
SetMNumEntries updates the MNumEntries field in the record's packed storage.
type CAFInstrumentChunk ¶
type CAFInstrumentChunk struct {
// contains filtered or unexported fields
}
CAFInstrumentChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFInstrumentChunk
func (*CAFInstrumentChunk) MBaseNote ¶
func (s *CAFInstrumentChunk) MBaseNote() float32
MBaseNote returns the MBaseNote field from the record's packed storage.
func (*CAFInstrumentChunk) MInstrumentID ¶
func (s *CAFInstrumentChunk) MInstrumentID() uint32
MInstrumentID returns the MInstrumentID field from the record's packed storage.
func (*CAFInstrumentChunk) MMIDIHighNote ¶
func (s *CAFInstrumentChunk) MMIDIHighNote() uint8
MMIDIHighNote returns the MMIDIHighNote field from the record's packed storage.
func (*CAFInstrumentChunk) MMIDIHighVelocity ¶
func (s *CAFInstrumentChunk) MMIDIHighVelocity() uint8
MMIDIHighVelocity returns the MMIDIHighVelocity field from the record's packed storage.
func (*CAFInstrumentChunk) MMIDILowNote ¶
func (s *CAFInstrumentChunk) MMIDILowNote() uint8
MMIDILowNote returns the MMIDILowNote field from the record's packed storage.
func (*CAFInstrumentChunk) MMIDILowVelocity ¶
func (s *CAFInstrumentChunk) MMIDILowVelocity() uint8
MMIDILowVelocity returns the MMIDILowVelocity field from the record's packed storage.
func (*CAFInstrumentChunk) MReleaseRegionID ¶
func (s *CAFInstrumentChunk) MReleaseRegionID() uint32
MReleaseRegionID returns the MReleaseRegionID field from the record's packed storage.
func (*CAFInstrumentChunk) MStartRegionID ¶
func (s *CAFInstrumentChunk) MStartRegionID() uint32
MStartRegionID returns the MStartRegionID field from the record's packed storage.
func (*CAFInstrumentChunk) MSustainRegionID ¶
func (s *CAFInstrumentChunk) MSustainRegionID() uint32
MSustainRegionID returns the MSustainRegionID field from the record's packed storage.
func (*CAFInstrumentChunk) MdBGain ¶
func (s *CAFInstrumentChunk) MdBGain() float32
MdBGain returns the MdBGain field from the record's packed storage.
func (*CAFInstrumentChunk) SetMBaseNote ¶
func (s *CAFInstrumentChunk) SetMBaseNote(v float32)
SetMBaseNote updates the MBaseNote field in the record's packed storage.
func (*CAFInstrumentChunk) SetMInstrumentID ¶
func (s *CAFInstrumentChunk) SetMInstrumentID(v uint32)
SetMInstrumentID updates the MInstrumentID field in the record's packed storage.
func (*CAFInstrumentChunk) SetMMIDIHighNote ¶
func (s *CAFInstrumentChunk) SetMMIDIHighNote(v uint8)
SetMMIDIHighNote updates the MMIDIHighNote field in the record's packed storage.
func (*CAFInstrumentChunk) SetMMIDIHighVelocity ¶
func (s *CAFInstrumentChunk) SetMMIDIHighVelocity(v uint8)
SetMMIDIHighVelocity updates the MMIDIHighVelocity field in the record's packed storage.
func (*CAFInstrumentChunk) SetMMIDILowNote ¶
func (s *CAFInstrumentChunk) SetMMIDILowNote(v uint8)
SetMMIDILowNote updates the MMIDILowNote field in the record's packed storage.
func (*CAFInstrumentChunk) SetMMIDILowVelocity ¶
func (s *CAFInstrumentChunk) SetMMIDILowVelocity(v uint8)
SetMMIDILowVelocity updates the MMIDILowVelocity field in the record's packed storage.
func (*CAFInstrumentChunk) SetMReleaseRegionID ¶
func (s *CAFInstrumentChunk) SetMReleaseRegionID(v uint32)
SetMReleaseRegionID updates the MReleaseRegionID field in the record's packed storage.
func (*CAFInstrumentChunk) SetMStartRegionID ¶
func (s *CAFInstrumentChunk) SetMStartRegionID(v uint32)
SetMStartRegionID updates the MStartRegionID field in the record's packed storage.
func (*CAFInstrumentChunk) SetMSustainRegionID ¶
func (s *CAFInstrumentChunk) SetMSustainRegionID(v uint32)
SetMSustainRegionID updates the MSustainRegionID field in the record's packed storage.
func (*CAFInstrumentChunk) SetMdBGain ¶
func (s *CAFInstrumentChunk) SetMdBGain(v float32)
SetMdBGain updates the MdBGain field in the record's packed storage.
type CAFMarker ¶
type CAFMarker struct {
// contains filtered or unexported fields
}
CAFMarker
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFMarker
func (*CAFMarker) MFramePosition ¶
MFramePosition returns the MFramePosition field from the record's packed storage.
func (*CAFMarker) MMarkerID ¶
MMarkerID returns the MMarkerID field from the record's packed storage.
func (*CAFMarker) MSMPTETime ¶
func (s *CAFMarker) MSMPTETime() CAF_SMPTE_Time
MSMPTETime returns the MSMPTETime field from the record's packed storage.
func (*CAFMarker) SetMChannel ¶
SetMChannel updates the MChannel field in the record's packed storage.
func (*CAFMarker) SetMFramePosition ¶
SetMFramePosition updates the MFramePosition field in the record's packed storage.
func (*CAFMarker) SetMMarkerID ¶
SetMMarkerID updates the MMarkerID field in the record's packed storage.
func (*CAFMarker) SetMSMPTETime ¶
func (s *CAFMarker) SetMSMPTETime(v CAF_SMPTE_Time)
SetMSMPTETime updates the MSMPTETime field in the record's packed storage.
type CAFMarkerChunk ¶
type CAFMarkerChunk struct {
// contains filtered or unexported fields
}
CAFMarkerChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFMarkerChunk
func (*CAFMarkerChunk) MMarkers ¶
func (s *CAFMarkerChunk) MMarkers() [1]CAFMarker
MMarkers returns the MMarkers field from the record's packed storage.
func (*CAFMarkerChunk) MNumberMarkers ¶
func (s *CAFMarkerChunk) MNumberMarkers() uint32
MNumberMarkers returns the MNumberMarkers field from the record's packed storage.
func (*CAFMarkerChunk) MSMPTE_TimeType ¶
func (s *CAFMarkerChunk) MSMPTE_TimeType() uint32
MSMPTE_TimeType returns the MSMPTE_TimeType field from the record's packed storage.
func (*CAFMarkerChunk) SetMMarkers ¶
func (s *CAFMarkerChunk) SetMMarkers(v [1]CAFMarker)
SetMMarkers updates the MMarkers field in the record's packed storage.
func (*CAFMarkerChunk) SetMNumberMarkers ¶
func (s *CAFMarkerChunk) SetMNumberMarkers(v uint32)
SetMNumberMarkers updates the MNumberMarkers field in the record's packed storage.
func (*CAFMarkerChunk) SetMSMPTE_TimeType ¶
func (s *CAFMarkerChunk) SetMSMPTE_TimeType(v uint32)
SetMSMPTE_TimeType updates the MSMPTE_TimeType field in the record's packed storage.
type CAFOverviewChunk ¶
type CAFOverviewChunk struct {
// contains filtered or unexported fields
}
CAFOverviewChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFOverviewChunk
func (*CAFOverviewChunk) MData ¶
func (s *CAFOverviewChunk) MData() [1]CAFOverviewSample
MData returns the MData field from the record's packed storage.
func (*CAFOverviewChunk) MEditCount ¶
func (s *CAFOverviewChunk) MEditCount() uint32
MEditCount returns the MEditCount field from the record's packed storage.
func (*CAFOverviewChunk) MNumFramesPerOVWSample ¶
func (s *CAFOverviewChunk) MNumFramesPerOVWSample() uint32
MNumFramesPerOVWSample returns the MNumFramesPerOVWSample field from the record's packed storage.
func (*CAFOverviewChunk) SetMData ¶
func (s *CAFOverviewChunk) SetMData(v [1]CAFOverviewSample)
SetMData updates the MData field in the record's packed storage.
func (*CAFOverviewChunk) SetMEditCount ¶
func (s *CAFOverviewChunk) SetMEditCount(v uint32)
SetMEditCount updates the MEditCount field in the record's packed storage.
func (*CAFOverviewChunk) SetMNumFramesPerOVWSample ¶
func (s *CAFOverviewChunk) SetMNumFramesPerOVWSample(v uint32)
SetMNumFramesPerOVWSample updates the MNumFramesPerOVWSample field in the record's packed storage.
type CAFOverviewSample ¶
type CAFOverviewSample struct {
// contains filtered or unexported fields
}
CAFOverviewSample
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFOverviewSample
func (*CAFOverviewSample) MMaxValue ¶
func (s *CAFOverviewSample) MMaxValue() int16
MMaxValue returns the MMaxValue field from the record's packed storage.
func (*CAFOverviewSample) MMinValue ¶
func (s *CAFOverviewSample) MMinValue() int16
MMinValue returns the MMinValue field from the record's packed storage.
func (*CAFOverviewSample) SetMMaxValue ¶
func (s *CAFOverviewSample) SetMMaxValue(v int16)
SetMMaxValue updates the MMaxValue field in the record's packed storage.
func (*CAFOverviewSample) SetMMinValue ¶
func (s *CAFOverviewSample) SetMMinValue(v int16)
SetMMinValue updates the MMinValue field in the record's packed storage.
type CAFPacketTableHeader ¶
type CAFPacketTableHeader struct {
// contains filtered or unexported fields
}
CAFPacketTableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFPacketTableHeader
func (*CAFPacketTableHeader) MNumberPackets ¶
func (s *CAFPacketTableHeader) MNumberPackets() int64
MNumberPackets returns the MNumberPackets field from the record's packed storage.
func (*CAFPacketTableHeader) MNumberValidFrames ¶
func (s *CAFPacketTableHeader) MNumberValidFrames() int64
MNumberValidFrames returns the MNumberValidFrames field from the record's packed storage.
func (*CAFPacketTableHeader) MPacketDescriptions ¶
func (s *CAFPacketTableHeader) MPacketDescriptions() [1]uint8
MPacketDescriptions returns the MPacketDescriptions field from the record's packed storage.
func (*CAFPacketTableHeader) MPrimingFrames ¶
func (s *CAFPacketTableHeader) MPrimingFrames() int32
MPrimingFrames returns the MPrimingFrames field from the record's packed storage.
func (*CAFPacketTableHeader) MRemainderFrames ¶
func (s *CAFPacketTableHeader) MRemainderFrames() int32
MRemainderFrames returns the MRemainderFrames field from the record's packed storage.
func (*CAFPacketTableHeader) SetMNumberPackets ¶
func (s *CAFPacketTableHeader) SetMNumberPackets(v int64)
SetMNumberPackets updates the MNumberPackets field in the record's packed storage.
func (*CAFPacketTableHeader) SetMNumberValidFrames ¶
func (s *CAFPacketTableHeader) SetMNumberValidFrames(v int64)
SetMNumberValidFrames updates the MNumberValidFrames field in the record's packed storage.
func (*CAFPacketTableHeader) SetMPacketDescriptions ¶
func (s *CAFPacketTableHeader) SetMPacketDescriptions(v [1]uint8)
SetMPacketDescriptions updates the MPacketDescriptions field in the record's packed storage.
func (*CAFPacketTableHeader) SetMPrimingFrames ¶
func (s *CAFPacketTableHeader) SetMPrimingFrames(v int32)
SetMPrimingFrames updates the MPrimingFrames field in the record's packed storage.
func (*CAFPacketTableHeader) SetMRemainderFrames ¶
func (s *CAFPacketTableHeader) SetMRemainderFrames(v int32)
SetMRemainderFrames updates the MRemainderFrames field in the record's packed storage.
type CAFPeakChunk ¶
type CAFPeakChunk struct {
// contains filtered or unexported fields
}
CAFPeakChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFPeakChunk
func (*CAFPeakChunk) MEditCount ¶
func (s *CAFPeakChunk) MEditCount() uint32
MEditCount returns the MEditCount field from the record's packed storage.
func (*CAFPeakChunk) MPeaks ¶
func (s *CAFPeakChunk) MPeaks() [1]CAFPositionPeak
MPeaks returns the MPeaks field from the record's packed storage.
func (*CAFPeakChunk) SetMEditCount ¶
func (s *CAFPeakChunk) SetMEditCount(v uint32)
SetMEditCount updates the MEditCount field in the record's packed storage.
func (*CAFPeakChunk) SetMPeaks ¶
func (s *CAFPeakChunk) SetMPeaks(v [1]CAFPositionPeak)
SetMPeaks updates the MPeaks field in the record's packed storage.
type CAFPositionPeak ¶
type CAFPositionPeak struct {
// contains filtered or unexported fields
}
CAFPositionPeak
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFPositionPeak
func (*CAFPositionPeak) MFrameNumber ¶
func (s *CAFPositionPeak) MFrameNumber() uint64
MFrameNumber returns the MFrameNumber field from the record's packed storage.
func (*CAFPositionPeak) MValue ¶
func (s *CAFPositionPeak) MValue() float32
MValue returns the MValue field from the record's packed storage.
func (*CAFPositionPeak) SetMFrameNumber ¶
func (s *CAFPositionPeak) SetMFrameNumber(v uint64)
SetMFrameNumber updates the MFrameNumber field in the record's packed storage.
func (*CAFPositionPeak) SetMValue ¶
func (s *CAFPositionPeak) SetMValue(v float32)
SetMValue updates the MValue field in the record's packed storage.
type CAFRegion ¶
type CAFRegion struct {
// contains filtered or unexported fields
}
CAFRegion
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFRegion
func (*CAFRegion) MFlags ¶
func (s *CAFRegion) MFlags() CAFRegionFlags
MFlags returns the MFlags field from the record's packed storage.
func (*CAFRegion) MNumberMarkers ¶
MNumberMarkers returns the MNumberMarkers field from the record's packed storage.
func (*CAFRegion) MRegionID ¶
MRegionID returns the MRegionID field from the record's packed storage.
func (*CAFRegion) SetMFlags ¶
func (s *CAFRegion) SetMFlags(v CAFRegionFlags)
SetMFlags updates the MFlags field in the record's packed storage.
func (*CAFRegion) SetMMarkers ¶
SetMMarkers updates the MMarkers field in the record's packed storage.
func (*CAFRegion) SetMNumberMarkers ¶
SetMNumberMarkers updates the MNumberMarkers field in the record's packed storage.
func (*CAFRegion) SetMRegionID ¶
SetMRegionID updates the MRegionID field in the record's packed storage.
type CAFRegionChunk ¶
type CAFRegionChunk struct {
// contains filtered or unexported fields
}
CAFRegionChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFRegionChunk
func (*CAFRegionChunk) MNumberRegions ¶
func (s *CAFRegionChunk) MNumberRegions() uint32
MNumberRegions returns the MNumberRegions field from the record's packed storage.
func (*CAFRegionChunk) MRegions ¶
func (s *CAFRegionChunk) MRegions() [1]CAFRegion
MRegions returns the MRegions field from the record's packed storage.
func (*CAFRegionChunk) MSMPTE_TimeType ¶
func (s *CAFRegionChunk) MSMPTE_TimeType() uint32
MSMPTE_TimeType returns the MSMPTE_TimeType field from the record's packed storage.
func (*CAFRegionChunk) SetMNumberRegions ¶
func (s *CAFRegionChunk) SetMNumberRegions(v uint32)
SetMNumberRegions updates the MNumberRegions field in the record's packed storage.
func (*CAFRegionChunk) SetMRegions ¶
func (s *CAFRegionChunk) SetMRegions(v [1]CAFRegion)
SetMRegions updates the MRegions field in the record's packed storage.
func (*CAFRegionChunk) SetMSMPTE_TimeType ¶
func (s *CAFRegionChunk) SetMSMPTE_TimeType(v uint32)
SetMSMPTE_TimeType updates the MSMPTE_TimeType field in the record's packed storage.
type CAFRegionFlags ¶
type CAFRegionFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/CAFRegionFlags
const ( KCAFRegionFlag_LoopEnable CAFRegionFlags = 1 KCAFRegionFlag_PlayBackward CAFRegionFlags = 4 KCAFRegionFlag_PlayForward CAFRegionFlags = 2 )
func (CAFRegionFlags) String ¶
func (e CAFRegionFlags) String() string
type CAFStringID ¶
type CAFStringID struct {
// contains filtered or unexported fields
}
CAFStringID
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFStringID
func (*CAFStringID) MStringID ¶
func (s *CAFStringID) MStringID() uint32
MStringID returns the MStringID field from the record's packed storage.
func (*CAFStringID) MStringStartByteOffset ¶
func (s *CAFStringID) MStringStartByteOffset() int64
MStringStartByteOffset returns the MStringStartByteOffset field from the record's packed storage.
func (*CAFStringID) SetMStringID ¶
func (s *CAFStringID) SetMStringID(v uint32)
SetMStringID updates the MStringID field in the record's packed storage.
func (*CAFStringID) SetMStringStartByteOffset ¶
func (s *CAFStringID) SetMStringStartByteOffset(v int64)
SetMStringStartByteOffset updates the MStringStartByteOffset field in the record's packed storage.
type CAFStrings ¶
type CAFStrings struct {
// contains filtered or unexported fields
}
CAFStrings
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFStrings
func (*CAFStrings) MNumEntries ¶
func (s *CAFStrings) MNumEntries() uint32
MNumEntries returns the MNumEntries field from the record's packed storage.
func (*CAFStrings) MStringsIDs ¶
func (s *CAFStrings) MStringsIDs() [1]CAFStringID
MStringsIDs returns the MStringsIDs field from the record's packed storage.
func (*CAFStrings) SetMNumEntries ¶
func (s *CAFStrings) SetMNumEntries(v uint32)
SetMNumEntries updates the MNumEntries field in the record's packed storage.
func (*CAFStrings) SetMStringsIDs ¶
func (s *CAFStrings) SetMStringsIDs(v [1]CAFStringID)
SetMStringsIDs updates the MStringsIDs field in the record's packed storage.
type CAFUMIDChunk ¶
type CAFUMIDChunk struct {
MBytes [64]uint8
}
CAFUMIDChunk
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAFUMIDChunk
type CAF_SMPTE_Time ¶
type CAF_SMPTE_Time struct {
// contains filtered or unexported fields
}
CAF_SMPTE_Time
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAF_SMPTE_Time
func (*CAF_SMPTE_Time) MFrames ¶
func (s *CAF_SMPTE_Time) MFrames() int8
MFrames returns the MFrames field from the record's packed storage.
func (*CAF_SMPTE_Time) MHours ¶
func (s *CAF_SMPTE_Time) MHours() int8
MHours returns the MHours field from the record's packed storage.
func (*CAF_SMPTE_Time) MMinutes ¶
func (s *CAF_SMPTE_Time) MMinutes() int8
MMinutes returns the MMinutes field from the record's packed storage.
func (*CAF_SMPTE_Time) MSeconds ¶
func (s *CAF_SMPTE_Time) MSeconds() int8
MSeconds returns the MSeconds field from the record's packed storage.
func (*CAF_SMPTE_Time) MSubFrameSampleOffset ¶
func (s *CAF_SMPTE_Time) MSubFrameSampleOffset() uint32
MSubFrameSampleOffset returns the MSubFrameSampleOffset field from the record's packed storage.
func (*CAF_SMPTE_Time) SetMFrames ¶
func (s *CAF_SMPTE_Time) SetMFrames(v int8)
SetMFrames updates the MFrames field in the record's packed storage.
func (*CAF_SMPTE_Time) SetMHours ¶
func (s *CAF_SMPTE_Time) SetMHours(v int8)
SetMHours updates the MHours field in the record's packed storage.
func (*CAF_SMPTE_Time) SetMMinutes ¶
func (s *CAF_SMPTE_Time) SetMMinutes(v int8)
SetMMinutes updates the MMinutes field in the record's packed storage.
func (*CAF_SMPTE_Time) SetMSeconds ¶
func (s *CAF_SMPTE_Time) SetMSeconds(v int8)
SetMSeconds updates the MSeconds field in the record's packed storage.
func (*CAF_SMPTE_Time) SetMSubFrameSampleOffset ¶
func (s *CAF_SMPTE_Time) SetMSubFrameSampleOffset(v uint32)
SetMSubFrameSampleOffset updates the MSubFrameSampleOffset field in the record's packed storage.
type CAF_UUID_ChunkHeader ¶
type CAF_UUID_ChunkHeader struct {
// contains filtered or unexported fields
}
CAF_UUID_ChunkHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAF_UUID_ChunkHeader
func (*CAF_UUID_ChunkHeader) MHeader ¶
func (s *CAF_UUID_ChunkHeader) MHeader() CAFChunkHeader
MHeader returns the MHeader field from the record's packed storage.
func (*CAF_UUID_ChunkHeader) MUUID ¶
func (s *CAF_UUID_ChunkHeader) MUUID() [16]uint8
MUUID returns the MUUID field from the record's packed storage.
func (*CAF_UUID_ChunkHeader) SetMHeader ¶
func (s *CAF_UUID_ChunkHeader) SetMHeader(v CAFChunkHeader)
SetMHeader updates the MHeader field in the record's packed storage.
func (*CAF_UUID_ChunkHeader) SetMUUID ¶
func (s *CAF_UUID_ChunkHeader) SetMUUID(v [16]uint8)
SetMUUID updates the MUUID field in the record's packed storage.
type CAMeterTrackEntry ¶
type CAMeterTrackEntry struct {
Beats CAClockBeats
MeterNumer uint16
MeterDenom uint16
}
CAMeterTrackEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CAMeterTrackEntry
type CATempoMapEntry ¶
type CATempoMapEntry struct {
Beats CAClockBeats
TempoBPM CAClockTempo
}
CATempoMapEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/CATempoMapEntry
type CallHostBlock ¶
type CallHostBlock = func(foundation.INSDictionary) foundation.INSDictionary
See: https://developer.apple.com/documentation/AudioToolbox/CallHostBlock
type CountUserDataFDF ¶
See: https://developer.apple.com/documentation/AudioToolbox/CountUserDataFDF
type ExtAudioFilePacketTableInfoOverride ¶
type ExtAudioFilePacketTableInfoOverride = int32
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFilePacketTableInfoOverride
type ExtAudioFilePropertyID ¶
type ExtAudioFilePropertyID = uint32
ExtAudioFilePropertyID is an audio file object property identifier.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFilePropertyID
type ExtAudioFileRef ¶
type ExtAudioFileRef uintptr
ExtAudioFileRef is an opaque structure representing an extended audio file object.
See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileRef
type ExtendedAudioFormatInfo ¶
type ExtendedAudioFormatInfo struct {
MASBD coreaudiotypes.AudioStreamBasicDescription // A format specification for an audio stream.
MMagicCookie unsafe.Pointer // Decompression information for the audio data format specified in the `mASBD` field.
MMagicCookieSize uint32 // The size, in bytes, of the `mMagicCookie` field.
MClassDescription coreaudiotypes.AudioClassDescription // A structure that describes an audio codec.
}
ExtendedAudioFormatInfo - A specifier for the [kAudioFormatProperty_FormatList](<https://developer.apple.com/documentation/AudioToolbox/kAudioFormatProperty_FormatList>) property, including the codec to use.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ExtendedAudioFormatInfo
type ExtendedControlEvent ¶
type ExtendedControlEvent struct {
GroupID MusicDeviceGroupID
ControlID AudioUnitParameterID
Value AudioUnitParameterValue
}
ExtendedControlEvent
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ExtendedControlEvent
type ExtendedNoteOnEvent ¶
type ExtendedNoteOnEvent struct {
InstrumentID MusicDeviceInstrumentID
GroupID MusicDeviceGroupID
Duration float32
ExtendedParams MusicDeviceNoteParams
}
ExtendedNoteOnEvent - Describes a note-on event with extended parameters.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ExtendedNoteOnEvent
type ExtendedTempoEvent ¶
type ExtendedTempoEvent struct {
Bpm float64 // The number of beats-per-minute.
}
ExtendedTempoEvent - Describes a music track tempo in beats-per-minute.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ExtendedTempoEvent
type Float32AUParameterHandler ¶
type Float32AUParameterHandler = func(*AUParameter) float32
Float32AUParameterHandler is the signature for a completion handler block.
type Float32AUParameterStringHandler ¶
type Float32AUParameterStringHandler = func(*AUParameter, string) float32
Float32AUParameterStringHandler is the signature for a completion handler block.
type GetPropertyInfoFDF ¶
See: https://developer.apple.com/documentation/AudioToolbox/GetPropertyInfoFDF
type GetUserDataSizeFDF ¶
See: https://developer.apple.com/documentation/AudioToolbox/GetUserDataSizeFDF
type HostCallbackGetBeatAndTempo ¶
type HostCallbackGetBeatAndTempo = HostCallback_GetBeatAndTempo
HostCallbackGetBeatAndTempo is a Go-name alias for HostCallback_GetBeatAndTempo.
type HostCallbackGetMusicalTimeLocation ¶
type HostCallbackGetMusicalTimeLocation = HostCallback_GetMusicalTimeLocation
HostCallbackGetMusicalTimeLocation is a Go-name alias for HostCallback_GetMusicalTimeLocation.
type HostCallbackGetTransportState ¶
type HostCallbackGetTransportState = HostCallback_GetTransportState
HostCallbackGetTransportState is a Go-name alias for HostCallback_GetTransportState.
type HostCallbackGetTransportState2 ¶
type HostCallbackGetTransportState2 = HostCallback_GetTransportState2
HostCallbackGetTransportState2 is a Go-name alias for HostCallback_GetTransportState2.
type HostCallbackInfo ¶
type HostCallbackInfo struct {
HostUserData unsafe.Pointer // Custom data specified by your application. May be [NULL].
BeatAndTempoProc HostCallback_GetBeatAndTempo // Your callback function that provides beat and tempo information to an audio unit. May be [NULL].
MusicalTimeLocationProc HostCallback_GetMusicalTimeLocation // Your callback function that provides musical timeline information to an audio unit. May be [NULL].
TransportStateProc HostCallback_GetTransportState // Your callback function that provides audio transport state information (play, rewind, and so on) to an audio unit. May be [NULL].
TransportStateProc2 HostCallback_GetTransportState2
}
HostCallbackInfo - The time- and transport-related callback functions for an audio unit.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/HostCallbackInfo
type HostCallback_GetBeatAndTempo ¶
type HostCallback_GetBeatAndTempo = func(inHostUserData unsafe.Pointer, outCurrentBeat []float64, outCurrentTempo []float64) int32
HostCallback_GetBeatAndTempo is when called by the system, provides beat and tempo information to an audio unit from a host application.
See: https://developer.apple.com/documentation/AudioToolbox/HostCallback_GetBeatAndTempo
type HostCallback_GetMusicalTimeLocation ¶
type HostCallback_GetMusicalTimeLocation = func(inHostUserData unsafe.Pointer, outDeltaSampleOffsetToNextBeat *uint32, outTimeSig_Numerator []float32, outTimeSig_Denominator *uint32, outCurrentMeasureDownBeat []float64) int32
HostCallback_GetMusicalTimeLocation is when called by the system, provides musical timing information to an audio unit from a host application.
See: https://developer.apple.com/documentation/AudioToolbox/HostCallback_GetMusicalTimeLocation
type HostCallback_GetTransportState ¶
type HostCallback_GetTransportState = func(inHostUserData unsafe.Pointer, outIsPlaying *byte, outTransportStateChanged *byte, outCurrentSampleInTimeLine []float64, outIsCycling *byte, outCycleStartBeat []float64, outCycleEndBeat []float64) int32
HostCallback_GetTransportState is when called by the system, provides audio transport state and timeline information to an audio unit from a host application.
See: https://developer.apple.com/documentation/AudioToolbox/HostCallback_GetTransportState
type HostCallback_GetTransportState2 ¶
type HostCallback_GetTransportState2 = func(unsafe.Pointer, *byte, *byte, *byte, []float64, *byte, []float64, []float64) int32
See: https://developer.apple.com/documentation/AudioToolbox/HostCallback_GetTransportState2
type IAUAudioUnit ¶
type IAUAudioUnit interface {
objectivec.IObject
// Synchronously initializes a new audio unit object.
InitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)
// Synchronously initializes a new audio unit object.
InitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnit, error)
// An array containing the audio unit’s input connection points.
InputBusses() IAUAudioUnitBusArray
// An array containing the audio unit’s output connection points.
OutputBusses() IAUAudioUnitBusArray
// This is called when you set the format on a bus.
ShouldChangeToFormatForBus(format objectivec.IObject, bus IAUAudioUnitBus) bool
// The block which you must provide, via a getter, in order to implement rendering.
InternalRenderBlock() IntAudioUnitRenderActionFlagsHandler
MIDIOutputBufferSizeHint() int
SetMIDIOutputBufferSizeHint(value int)
// An audio unit’s parameters, organized in a tree hierarchy.
ParameterTree() IAUParameterTree
SetParameterTree(value IAUParameterTree)
// Special read-only property for KVO.
AllParameterValues() bool
// Returns the audio unit’s most important parameters.
ParametersForOverviewWithCount(count int) []foundation.NSNumber
// A callback to the host for musical context information.
MusicalContextBlock() AUHostMusicalContextBlock
SetMusicalContextBlock(value objc.ID)
// A callback to the host for transport state information.
TransportStateBlock() AUHostTransportStateBlock
SetTransportStateBlock(value objc.ID)
// Information about the host context in which the audio unit is connected, for display in the audio unit’s view.
ContextName() string
SetContextName(value string)
// A Boolean value that indicates whether the audio unit supports multi-dimensional polyphonic expression.
SupportsMPE() bool
// Specifies whether an audio unit responds to MIDI events.
IsMusicDeviceOrEffect() bool
// The number of virtual MIDI cables implemented by a music device or effect.
VirtualMIDICableCount() int
// A block used to schedule MIDI events.
ScheduleMIDIEventBlock() AUScheduleMIDIEventBlock
MIDIOutputEventBlock() IntInt64Handler
SetMIDIOutputEventBlock(value IntInt64Handler)
// The names of the MIDI outputs.
MIDIOutputNames() []string
// A persistable snapshot of the audio unit’s properties and parameters, suitable for saving as a user preset.
FullState() foundation.INSDictionary
SetFullState(value foundation.INSDictionary)
// A persistable snapshot of the audio unit’s properties and parameters, suitable for saving in a user’s document.
FullStateForDocument() foundation.INSDictionary
SetFullStateForDocument(value foundation.INSDictionary)
// A collection of presets provided by the audio unit’s developer.
FactoryPresets() []AUAudioUnitPreset
// The audio unit’s last-selected preset.
CurrentPreset() IAUAudioUnitPreset
SetCurrentPreset(value IAUAudioUnitPreset)
SupportsUserPresets() bool
UserPresets() []AUAudioUnitPreset
SaveUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
DeleteUserPresetError(userPreset IAUAudioUnitPreset) (bool, error)
PresetStateForError(userPreset IAUAudioUnitPreset) (foundation.INSDictionary, error)
// Allocates resources required to render audio.
AllocateRenderResourcesAndReturnError() (bool, error)
// Deallocates resources required to render audio.
DeallocateRenderResources()
// Resets transitory rendering state to its initial state.
Reset()
// Determines whether the audio unit has allocated render resources.
RenderResourcesAllocated() bool
// The block that hosts use to ask the audio unit to render audio.
RenderBlock() IntAudioUnitRenderActionFlagsHandler
// The block that hosts use to schedule parameters.
ScheduleParameterBlock() Int64Uint32Uint64Float32Handler
// The maximum number of frames that the audio unit can render at once.
MaximumFramesToRender() AUAudioFrameCount
SetMaximumFramesToRender(value AUAudioFrameCount)
// Adds a block to be called on each render cycle.
TokenByAddingRenderObserver(observer IntAudioTimeStampUint32Int64Handler) int
// Removes an observer block previously added to the render cycle.
RemoveRenderObserver(token int)
// Returns an object for bidirectional communication between an audio unit and its host.
MessageChannelFor(channelName string) AUMessageChannel
// The audio unit’s processing latency, in seconds.
Latency() foundation.NSTimeInterval
// The audio unit’s tail time, in seconds.
TailTime() foundation.NSTimeInterval
// Provides a trade-off between rendering quality and CPU load.
RenderQuality() int
SetRenderQuality(value int)
// Determines whether an effect should route input directly to output, without any processing.
ShouldBypassEffect() bool
SetShouldBypassEffect(value bool)
// Determines whether an audio unit can process in place.
CanProcessInPlace() bool
// Communicates to an audio unit that it is rendering offline.
IsRenderingOffline() bool
SetRenderingOffline(value bool)
// The component description with which the audio unit was created.
ComponentDescription() AudioComponentDescription
// The component found in the component description with which the audio unit was created.
Component() AudioComponent
// The audio unit’s component’s name.
ComponentName() string
// The audio unit’s component’s version.
ComponentVersion() uint32
// The audio unit’s name, derived from the component’s name.
AudioUnitName() string
AudioUnitShortName() string
// The manufacturer’s name, derived from the component’s name.
ManufacturerName() string
// Expresses valid combinations of input and output channels.
ChannelCapabilities() []foundation.NSNumber
ChannelMap() []foundation.NSNumber
SetChannelMap(value []foundation.NSNumber)
ProfileStateForCableChannel(cable uint8, channel MIDIChannelNumber) coremidi.MIDICIProfileState
EnableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
DisableProfileCableOnChannelError(profile *coremidi.MIDICIProfile, cable uint8, channel MIDIChannelNumber) (bool, error)
ProfileChangedBlock() Uint32Uint32MIDICIProfileBoolHandler
SetProfileChangedBlock(value Uint32Uint32MIDICIProfileBoolHandler)
// Gets the I/O hardware device.
DeviceID() AUAudioObjectID
// Sets the I/O hardware device.
SetDeviceIDError(deviceID AUAudioObjectID) (bool, error)
// Determines whether the I/O device can perform input.
CanPerformInput() bool
// Determines whether the I/O device can perform output.
CanPerformOutput() bool
// A flag enabling audio input from the unit.
IsInputEnabled() bool
SetInputEnabled(value bool)
// A flag enabling audio output from the unit.
IsOutputEnabled() bool
SetOutputEnabled(value bool)
// The block that the output unit will call to notify when input is available.
InputHandler() AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler
SetInputHandler(value AudioUnitRenderActionFlagsAudioTimeStampUint32Int64Handler)
// The block that the output unit will call to get audio to send to the output.
OutputProvider() IntAudioUnitRenderActionFlagsHandler
SetOutputProvider(value IntAudioUnitRenderActionFlagsHandler)
// The audio device’s input latency, in seconds.
DeviceInputLatency() foundation.NSTimeInterval
// The audio devic’s output latency, in seconds.
DeviceOutputLatency() foundation.NSTimeInterval
// Starts the audio hardware.
StartHardwareAndReturnError() (bool, error)
// Stops the audio hardware.
StopHardware()
// A Boolean that indicates whether the audio unit provides a user interface, normally in the form of a view controller.
ProvidesUserInterface() bool
SupportedViewConfigurations(availableViewConfigurations []objectivec.IObject) foundation.NSIndexSet
SelectViewConfiguration(viewConfiguration objectivec.IObject)
IsRunning() bool
IsLoadedInProcess() bool
AudioUnitMIDIProtocol() int32
HostMIDIProtocol() int32
SetHostMIDIProtocol(value int32)
MIDIOutputEventListBlock() IntInt64Handler
SetMIDIOutputEventListBlock(value IntInt64Handler)
MigrateFromPlugin() foundation.INSArray
ScheduleMIDIEventListBlock() IntInt64Handler
// The workgroup associated with the audio device underlying this Audio Unit.
OsWorkgroup() os.OSWorkgroup
// The block that the system calls when the rendering context changes.
RenderContextObserver() conststructAudioUnitRenderContextHandler
}
An interface definition for the AUAudioUnit class.
Creating an Audio Unit ¶
- IAUAudioUnit.InitWithComponentDescriptionError: Synchronously initializes a new audio unit object.
- IAUAudioUnit.InitWithComponentDescriptionOptionsError: Synchronously initializes a new audio unit object.
Returning the Audio Busses ¶
- IAUAudioUnit.InputBusses: An array containing the audio unit’s input connection points.
- IAUAudioUnit.OutputBusses: An array containing the audio unit’s output connection points.
Customizing the Audio Unit Behavior ¶
- IAUAudioUnit.ShouldChangeToFormatForBus: This is called when you set the format on a bus.
- IAUAudioUnit.InternalRenderBlock: The block which you must provide, via a getter, in order to implement rendering.
- IAUAudioUnit.MIDIOutputBufferSizeHint
- IAUAudioUnit.SetMIDIOutputBufferSizeHint
Querying Parameters ¶
- IAUAudioUnit.ParameterTree: An audio unit’s parameters, organized in a tree hierarchy.
- IAUAudioUnit.SetParameterTree
- IAUAudioUnit.AllParameterValues: Special read-only property for KVO.
- IAUAudioUnit.ParametersForOverviewWithCount: Returns the audio unit’s most important parameters.
Providing Data to the Host ¶
- IAUAudioUnit.MusicalContextBlock: A callback to the host for musical context information.
- IAUAudioUnit.SetMusicalContextBlock
- IAUAudioUnit.TransportStateBlock: A callback to the host for transport state information.
- IAUAudioUnit.SetTransportStateBlock
- IAUAudioUnit.ContextName: Information about the host context in which the audio unit is connected, for display in the audio unit’s view.
- IAUAudioUnit.SetContextName
- IAUAudioUnit.SupportsMPE: A Boolean value that indicates whether the audio unit supports multi-dimensional polyphonic expression.
Managing MIDI Events ¶
- IAUAudioUnit.IsMusicDeviceOrEffect: Specifies whether an audio unit responds to MIDI events.
- IAUAudioUnit.VirtualMIDICableCount: The number of virtual MIDI cables implemented by a music device or effect.
- IAUAudioUnit.ScheduleMIDIEventBlock: A block used to schedule MIDI events.
- IAUAudioUnit.MIDIOutputEventBlock
- IAUAudioUnit.SetMIDIOutputEventBlock
- IAUAudioUnit.MIDIOutputNames: The names of the MIDI outputs.
Managing Presets ¶
- IAUAudioUnit.FullState: A persistable snapshot of the audio unit’s properties and parameters, suitable for saving as a user preset.
- IAUAudioUnit.SetFullState
- IAUAudioUnit.FullStateForDocument: A persistable snapshot of the audio unit’s properties and parameters, suitable for saving in a user’s document.
- IAUAudioUnit.SetFullStateForDocument
- IAUAudioUnit.FactoryPresets: A collection of presets provided by the audio unit’s developer.
- IAUAudioUnit.CurrentPreset: The audio unit’s last-selected preset.
- IAUAudioUnit.SetCurrentPreset
- IAUAudioUnit.SupportsUserPresets
- IAUAudioUnit.UserPresets
- IAUAudioUnit.SaveUserPresetError
- IAUAudioUnit.DeleteUserPresetError
- IAUAudioUnit.PresetStateForError
Managing the Render Cycle ¶
- IAUAudioUnit.AllocateRenderResourcesAndReturnError: Allocates resources required to render audio.
- IAUAudioUnit.DeallocateRenderResources: Deallocates resources required to render audio.
- IAUAudioUnit.Reset: Resets transitory rendering state to its initial state.
- IAUAudioUnit.RenderResourcesAllocated: Determines whether the audio unit has allocated render resources.
- IAUAudioUnit.RenderBlock: The block that hosts use to ask the audio unit to render audio.
- IAUAudioUnit.ScheduleParameterBlock: The block that hosts use to schedule parameters.
- IAUAudioUnit.MaximumFramesToRender: The maximum number of frames that the audio unit can render at once.
- IAUAudioUnit.SetMaximumFramesToRender
- IAUAudioUnit.TokenByAddingRenderObserver: Adds a block to be called on each render cycle.
- IAUAudioUnit.RemoveRenderObserver: Removes an observer block previously added to the render cycle.
Messaging Channels ¶
- IAUAudioUnit.MessageChannelFor: Returns an object for bidirectional communication between an audio unit and its host.
Optimizing Performance ¶
- IAUAudioUnit.Latency: The audio unit’s processing latency, in seconds.
- IAUAudioUnit.TailTime: The audio unit’s tail time, in seconds.
- IAUAudioUnit.RenderQuality: Provides a trade-off between rendering quality and CPU load.
- IAUAudioUnit.SetRenderQuality
- IAUAudioUnit.ShouldBypassEffect: Determines whether an effect should route input directly to output, without any processing.
- IAUAudioUnit.SetShouldBypassEffect
- IAUAudioUnit.CanProcessInPlace: Determines whether an audio unit can process in place.
- IAUAudioUnit.IsRenderingOffline: Communicates to an audio unit that it is rendering offline.
- IAUAudioUnit.SetRenderingOffline
Describing the Audio Unit ¶
- IAUAudioUnit.ComponentDescription: The component description with which the audio unit was created.
- IAUAudioUnit.Component: The component found in the component description with which the audio unit was created.
- IAUAudioUnit.ComponentName: The audio unit’s component’s name.
- IAUAudioUnit.ComponentVersion: The audio unit’s component’s version.
- IAUAudioUnit.AudioUnitName: The audio unit’s name, derived from the component’s name.
- IAUAudioUnit.AudioUnitShortName
- IAUAudioUnit.ManufacturerName: The manufacturer’s name, derived from the component’s name.
Configuring the Channel Capabilities ¶
- IAUAudioUnit.ChannelCapabilities: Expresses valid combinations of input and output channels.
- IAUAudioUnit.ChannelMap
- IAUAudioUnit.SetChannelMap
- IAUAudioUnit.ProfileStateForCableChannel
- IAUAudioUnit.EnableProfileCableOnChannelError
- IAUAudioUnit.DisableProfileCableOnChannelError
- IAUAudioUnit.ProfileChangedBlock
- IAUAudioUnit.SetProfileChangedBlock
Configuring the Device ¶
- IAUAudioUnit.DeviceID: Gets the I/O hardware device.
- IAUAudioUnit.SetDeviceIDError: Sets the I/O hardware device.
- IAUAudioUnit.CanPerformInput: Determines whether the I/O device can perform input.
- IAUAudioUnit.CanPerformOutput: Determines whether the I/O device can perform output.
- IAUAudioUnit.IsInputEnabled: A flag enabling audio input from the unit.
- IAUAudioUnit.SetInputEnabled
- IAUAudioUnit.IsOutputEnabled: A flag enabling audio output from the unit.
- IAUAudioUnit.SetOutputEnabled
- IAUAudioUnit.InputHandler: The block that the output unit will call to notify when input is available.
- IAUAudioUnit.SetInputHandler
- IAUAudioUnit.OutputProvider: The block that the output unit will call to get audio to send to the output.
- IAUAudioUnit.SetOutputProvider
- IAUAudioUnit.DeviceInputLatency: The audio device’s input latency, in seconds.
- IAUAudioUnit.DeviceOutputLatency: The audio devic’s output latency, in seconds.
- IAUAudioUnit.StartHardwareAndReturnError: Starts the audio hardware.
- IAUAudioUnit.StopHardware: Stops the audio hardware.
Configuring the User Interface ¶
- IAUAudioUnit.ProvidesUserInterface: A Boolean that indicates whether the audio unit provides a user interface, normally in the form of a view controller.
- IAUAudioUnit.SupportedViewConfigurations
- IAUAudioUnit.SelectViewConfiguration
Getting the Runtime Behavior ¶
Instance properties ¶
- IAUAudioUnit.AudioUnitMIDIProtocol
- IAUAudioUnit.HostMIDIProtocol
- IAUAudioUnit.SetHostMIDIProtocol
- IAUAudioUnit.MIDIOutputEventListBlock
- IAUAudioUnit.SetMIDIOutputEventListBlock
- IAUAudioUnit.MigrateFromPlugin
- IAUAudioUnit.ScheduleMIDIEventListBlock
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit
type IAUAudioUnitBus ¶
type IAUAudioUnitBus interface {
objectivec.IObject
// Sets the bus’s audio format.
SetFormatError(format objectivec.IObject) (bool, error)
// The audio format and channel layout of audio being transferred on the bus.
Format() objectivec.IObject
// Determines whether the bus is active.
IsEnabled() bool
SetEnabled(value bool)
// A name for the bus.
Name() string
SetName(value string)
// The index of this bus in its containing array.
Index() uint
// The bus type.
BusType() AUAudioUnitBusType
// The audio unit that owns the bus.
OwnerAudioUnit() IAUAudioUnit
// An array of audio channel layout tags.
SupportedChannelLayoutTags() []foundation.NSNumber
// Information about latency in the audio unit’s processing context.
ContextPresentationLatency() foundation.NSTimeInterval
SetContextPresentationLatency(value foundation.NSTimeInterval)
ShouldAllocateBuffer() bool
SetShouldAllocateBuffer(value bool)
// Initializes a bus object with a specific format.
InitWithFormatError(format objectivec.IObject) (AUAudioUnitBus, error)
// An array of numbers indicating the supported number of channels for this bus.
SupportedChannelCounts() []foundation.NSNumber
SetSupportedChannelCounts(value []foundation.NSNumber)
// The maximum number of channels supported for this bus.
MaximumChannelCount() AUAudioChannelCount
SetMaximumChannelCount(value AUAudioChannelCount)
}
An interface definition for the AUAudioUnitBus class.
Bus Methods and Properties ¶
- IAUAudioUnitBus.SetFormatError: Sets the bus’s audio format.
- IAUAudioUnitBus.Format: The audio format and channel layout of audio being transferred on the bus.
- IAUAudioUnitBus.IsEnabled: Determines whether the bus is active.
- IAUAudioUnitBus.SetEnabled
- IAUAudioUnitBus.Name: A name for the bus.
- IAUAudioUnitBus.SetName
- IAUAudioUnitBus.Index: The index of this bus in its containing array.
- IAUAudioUnitBus.BusType: The bus type.
- IAUAudioUnitBus.OwnerAudioUnit: The audio unit that owns the bus.
- IAUAudioUnitBus.SupportedChannelLayoutTags: An array of audio channel layout tags.
- IAUAudioUnitBus.ContextPresentationLatency: Information about latency in the audio unit’s processing context.
- IAUAudioUnitBus.SetContextPresentationLatency
- IAUAudioUnitBus.ShouldAllocateBuffer
- IAUAudioUnitBus.SetShouldAllocateBuffer
Audio Unit Implementations ¶
- IAUAudioUnitBus.InitWithFormatError: Initializes a bus object with a specific format.
- IAUAudioUnitBus.SupportedChannelCounts: An array of numbers indicating the supported number of channels for this bus.
- IAUAudioUnitBus.SetSupportedChannelCounts
- IAUAudioUnitBus.MaximumChannelCount: The maximum number of channels supported for this bus.
- IAUAudioUnitBus.SetMaximumChannelCount
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBus
type IAUAudioUnitBusArray ¶
type IAUAudioUnitBusArray interface {
objectivec.IObject
// Initializes an empty bus array.
InitWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray
// Initializes a bus array by making a copy of the supplied busses.
InitWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray
// The number of busses in the array.
Count() uint
// Determines whether the array can have a variable number of busses.
IsCountChangeable() bool
// The audio unit that owns the bus array.
OwnerAudioUnit() IAUAudioUnit
// Determines whether the bus array is for input or output.
BusType() AUAudioUnitBusType
// Returns the bus at the specified index.
ObjectAtIndexedSubscript(index uint) IAUAudioUnitBus
// Changes the number of busses in the array.
SetBusCountError(count uint) (bool, error)
// Adds a KVO observer for a given property on all busses in the array.
AddObserverToAllBussesForKeyPathOptionsContext(observer objectivec.NSObject, keyPath string, options uint, context unsafe.Pointer)
// Removes a KVO observer for a given property on all busses in the array.
RemoveObserverFromAllBussesForKeyPathContext(observer objectivec.NSObject, keyPath string, context unsafe.Pointer)
// Replaces the current bus array with a copy of the supplied bus array.
ReplaceBusses(busArray []AUAudioUnitBus)
}
An interface definition for the AUAudioUnitBusArray class.
Initialization ¶
- IAUAudioUnitBusArray.InitWithAudioUnitBusType: Initializes an empty bus array.
- IAUAudioUnitBusArray.InitWithAudioUnitBusTypeBusses: Initializes a bus array by making a copy of the supplied busses.
Bus Array Methods and Properties ¶
- IAUAudioUnitBusArray.Count: The number of busses in the array.
- IAUAudioUnitBusArray.IsCountChangeable: Determines whether the array can have a variable number of busses.
- IAUAudioUnitBusArray.OwnerAudioUnit: The audio unit that owns the bus array.
- IAUAudioUnitBusArray.BusType: Determines whether the bus array is for input or output.
- IAUAudioUnitBusArray.ObjectAtIndexedSubscript: Returns the bus at the specified index.
- IAUAudioUnitBusArray.SetBusCountError: Changes the number of busses in the array.
- IAUAudioUnitBusArray.AddObserverToAllBussesForKeyPathOptionsContext: Adds a KVO observer for a given property on all busses in the array.
- IAUAudioUnitBusArray.RemoveObserverFromAllBussesForKeyPathContext: Removes a KVO observer for a given property on all busses in the array.
Audio Unit Implementations ¶
- IAUAudioUnitBusArray.ReplaceBusses: Replaces the current bus array with a copy of the supplied bus array.
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray
type IAUAudioUnitPreset ¶
type IAUAudioUnitPreset interface {
objectivec.IObject
// The preset’s name.
Name() string
SetName(value string)
// The preset’s unique numeric identifier.
Number() int
SetNumber(value int)
InitWithCoder(coder foundation.INSCoder) AUAudioUnitPreset
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the AUAudioUnitPreset class.
Preset Properties ¶
- IAUAudioUnitPreset.Name: The preset’s name.
- IAUAudioUnitPreset.SetName
- IAUAudioUnitPreset.Number: The preset’s unique numeric identifier.
- IAUAudioUnitPreset.SetNumber
Initializers ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitPreset
type IAUAudioUnitV2Bridge ¶
type IAUAudioUnitV2Bridge interface {
IAUAudioUnit
AudioUnit() AudioUnit
}
An interface definition for the AUAudioUnitV2Bridge class.
Instance Properties ¶
See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitV2Bridge
type IAUParameter ¶
type IAUParameter interface {
IAUParameterNode
// The parameter’s minimum value.
MinValue() AUValue
// The parameter’s maximum value.
MaxValue() AUValue
// The parameter’s unit of measurement.
Unit() AudioUnitParameterUnit
// The parameter’s localized unit name.
UnitName() string
// The parameter’s characteristic details.
Flags() AudioUnitParameterOptions
// The parameter’s address.
Address() AUParameterAddress
// The parameter’s localized value strings.
ValueStrings() []string
// Any other parameter’s whose values may change as a side effect of this parameter’s value changing.
DependentParameters() []foundation.NSNumber
// The parameter’s current value.
Value() AUValue
SetValue(value AUValue)
// Sets the parameter’s value, avoiding redundant notifications to the originator.
SetValueOriginator(value AUValue, originator AUParameterObserverToken)
// Sets the parameter’s value, preserving the host time of the gesture that initiated the change.
SetValueOriginatorAtHostTime(value AUValue, originator AUParameterObserverToken, hostTime uint64)
SetValueOriginatorAtHostTimeEventType(value AUValue, originator AUParameterObserverToken, hostTime uint64, eventType AUParameterAutomationEventType)
// Gets the string representation of a parameter value.
StringFromValue(value *AUValue) string
// Converts a string into a parameter value.
ValueFromString(string_ string) AUValue
}
An interface definition for the AUParameter class.
Querying Parameter Properties ¶
- IAUParameter.MinValue: The parameter’s minimum value.
- IAUParameter.MaxValue: The parameter’s maximum value.
- IAUParameter.Unit: The parameter’s unit of measurement.
- IAUParameter.UnitName: The parameter’s localized unit name.
- IAUParameter.Flags: The parameter’s characteristic details.
- IAUParameter.Address: The parameter’s address.
- IAUParameter.ValueStrings: The parameter’s localized value strings.
- IAUParameter.DependentParameters: Any other parameter’s whose values may change as a side effect of this parameter’s value changing.
Managing Parameter Values ¶
- IAUParameter.Value: The parameter’s current value.
- IAUParameter.SetValue
- IAUParameter.SetValueOriginator: Sets the parameter’s value, avoiding redundant notifications to the originator.
- IAUParameter.SetValueOriginatorAtHostTime: Sets the parameter’s value, preserving the host time of the gesture that initiated the change.
- IAUParameter.SetValueOriginatorAtHostTimeEventType
- IAUParameter.StringFromValue: Gets the string representation of a parameter value.
- IAUParameter.ValueFromString: Converts a string into a parameter value.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameter
type IAUParameterGroup ¶
type IAUParameterGroup interface {
IAUParameterNode
// Returns a flat array of all parameters in the group, including those in child groups.
AllParameters() []AUParameter
// The group’s child nodes.
Children() []AUParameterNode
}
An interface definition for the AUParameterGroup class.
Obtaining Group Parameters ¶
- IAUParameterGroup.AllParameters: Returns a flat array of all parameters in the group, including those in child groups.
- IAUParameterGroup.Children: The group’s child nodes.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterGroup
type IAUParameterNode ¶
type IAUParameterNode interface {
objectivec.IObject
// A non-localized, permanent name for the parameter node.
Identifier() string
// A key path generated by concatenating the identifiers of the parameter and its parents.
KeyPath() string
// A localized display name for the parameter node.
DisplayName() string
// Another version of the display name, possibly truncated to a desired length.
DisplayNameWithLength(maximumLength int) string
// Adds an observer for a single parameter or all parameters in a group.
TokenByAddingParameterObserver(observer Uint64Float32Handler) AUParameterObserverToken
// Adds a recording observer for a single parameter or all parameters in a group.
TokenByAddingParameterRecordingObserver(observer Int64AURecordedParameterEventHandler) AUParameterObserverToken
TokenByAddingParameterAutomationObserver(observer Int64AUParameterAutomationEventHandler) AUParameterObserverToken
// Remove a specific parameter observer.
RemoveParameterObserver(token AUParameterObserverToken)
// The callback for parameter value changes.
ImplementorValueObserver() AUParameterFloat32Handler
SetImplementorValueObserver(value AUParameterFloat32Handler)
// The callback for refreshing known stale values in a parameter tree.
ImplementorValueProvider() Float32AUParameterHandler
SetImplementorValueProvider(value Float32AUParameterHandler)
// The callback for providing a string representation of a parameter value.
ImplementorStringFromValueCallback() StringVoidHandler
SetImplementorStringFromValueCallback(value StringVoidHandler)
// The callback for converting a string to a parameter value.
ImplementorValueFromStringCallback() Float32AUParameterStringHandler
SetImplementorValueFromStringCallback(value Float32AUParameterStringHandler)
// The callback for obtaining an abbreviated version of a parameter node display name.
ImplementorDisplayNameWithLengthCallback() StringAUParameterNodeInt64Handler
SetImplementorDisplayNameWithLengthCallback(value StringAUParameterNodeInt64Handler)
}
An interface definition for the AUParameterNode class.
Identifiers ¶
- IAUParameterNode.Identifier: A non-localized, permanent name for the parameter node.
- IAUParameterNode.KeyPath: A key path generated by concatenating the identifiers of the parameter and its parents.
- IAUParameterNode.DisplayName: A localized display name for the parameter node.
- IAUParameterNode.DisplayNameWithLength: Another version of the display name, possibly truncated to a desired length.
Observers ¶
- IAUParameterNode.TokenByAddingParameterObserver: Adds an observer for a single parameter or all parameters in a group.
- IAUParameterNode.TokenByAddingParameterRecordingObserver: Adds a recording observer for a single parameter or all parameters in a group.
- IAUParameterNode.TokenByAddingParameterAutomationObserver
- IAUParameterNode.RemoveParameterObserver: Remove a specific parameter observer.
Audio Unit Implementations ¶
- IAUParameterNode.ImplementorValueObserver: The callback for parameter value changes.
- IAUParameterNode.SetImplementorValueObserver
- IAUParameterNode.ImplementorValueProvider: The callback for refreshing known stale values in a parameter tree.
- IAUParameterNode.SetImplementorValueProvider
- IAUParameterNode.ImplementorStringFromValueCallback: The callback for providing a string representation of a parameter value.
- IAUParameterNode.SetImplementorStringFromValueCallback
- IAUParameterNode.ImplementorValueFromStringCallback: The callback for converting a string to a parameter value.
- IAUParameterNode.SetImplementorValueFromStringCallback
- IAUParameterNode.ImplementorDisplayNameWithLengthCallback: The callback for obtaining an abbreviated version of a parameter node display name.
- IAUParameterNode.SetImplementorDisplayNameWithLengthCallback
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode
type IAUParameterTree ¶
type IAUParameterTree interface {
IAUParameterGroup
// Searches the tree for a parameter with a specific address.
ParameterWithAddress(address AUParameterAddress) IAUParameter
// Searches the tree for a specific version 2 audio unit parameter.
ParameterWithIDScopeElement(paramID AudioUnitParameterID, scope AudioUnitScope, element AudioUnitElement) IAUParameter
}
An interface definition for the AUParameterTree class.
Obtaining Tree Parameters ¶
- IAUParameterTree.ParameterWithAddress: Searches the tree for a parameter with a specific address.
- IAUParameterTree.ParameterWithIDScopeElement: Searches the tree for a specific version 2 audio unit parameter.
See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree
type INSDictionaryDictionaryHandler ¶
type INSDictionaryDictionaryHandler = func(*foundation.INSDictionary) foundation.INSDictionary
INSDictionaryDictionaryHandler is the signature for a completion handler block.
type Int64AUParameterAutomationEventHandler ¶
type Int64AUParameterAutomationEventHandler = func(int64, *AUParameterAutomationEvent)
Int64AUParameterAutomationEventHandler handles completion with primitive and object results.
Used by:
type Int64AURecordedParameterEventHandler ¶
type Int64AURecordedParameterEventHandler = func(int64, *AURecordedParameterEvent)
Int64AURecordedParameterEventHandler handles A block called to record parameter changes.
Used by:
type Int64Uint32Uint64Float32Handler ¶
Int64Uint32Uint64Float32Handler handles completion with primitive and object results.
type IntAudioTimeStampUint32Int64Handler ¶
type IntAudioTimeStampUint32Int64Handler = func(int, *coreaudiotypes.AudioTimeStamp, uint32, int64)
IntAudioTimeStampUint32Int64Handler handles The block to call.
Used by:
type IntAudioUnitRenderActionFlagsHandler ¶
type IntAudioUnitRenderActionFlagsHandler = func(*AudioUnitRenderActionFlags, *coreaudiotypes.AudioTimeStamp, uint32, int64, *coreaudiotypes.AudioBufferList, unsafe.Pointer) int
IntAudioUnitRenderActionFlagsHandler handles completion with primitive and object results.
type IntInt64Handler ¶
IntInt64Handler handles a primitive value and returns a primitive value.
type K3DMixerParam ¶
type K3DMixerParam uint32
const ( K3DMixerParam_Azimuth K3DMixerParam = 0 K3DMixerParam_BusEnable K3DMixerParam = 20 K3DMixerParam_Distance K3DMixerParam = 2 K3DMixerParam_DryWetReverbBlend K3DMixerParam = 23 K3DMixerParam_Elevation K3DMixerParam = 1 K3DMixerParam_Gain K3DMixerParam = 3 K3DMixerParam_GlobalReverbGainInDecibels K3DMixerParam = 24 K3DMixerParam_MaxGainInDecibels K3DMixerParam = 22 K3DMixerParam_MinGainInDecibels K3DMixerParam = 21 K3DMixerParam_ObstructionAttenuationInDecibels K3DMixerParam = 26 K3DMixerParam_OcclusionAttenuationInDecibels K3DMixerParam = 25 K3DMixerParam_PlaybackRate K3DMixerParam = 4 K3DMixerParam_PostAveragePower K3DMixerParam = 3000 K3DMixerParam_PostPeakHoldLevel K3DMixerParam = 4000 K3DMixerParam_PreAveragePower K3DMixerParam = 1000 K3DMixerParam_PrePeakHoldLevel K3DMixerParam = 2000 // Deprecated: use K3DMixerParam_GlobalReverbGainInDecibels. K3DMixerParam_GlobalReverbGain K3DMixerParam = 6 // Deprecated: use K3DMixerParam_MaxGainInDecibels. K3DMixerParam_MaxGain K3DMixerParam = 10 // Deprecated: use K3DMixerParam_MinGainInDecibels. K3DMixerParam_MinGain K3DMixerParam = 9 // Deprecated: use K3DMixerParam_ObstructionAttenuationInDecibels. K3DMixerParam_ObstructionAttenuation K3DMixerParam = 8 // Deprecated: use K3DMixerParam_OcclusionAttenuationInDecibels. K3DMixerParam_OcclusionAttenuation K3DMixerParam = 7 // Deprecated: use K3DMixerParam_DryWetReverbBlend. K3DMixerParam_ReverbBlend K3DMixerParam = 5 )
func (K3DMixerParam) String ¶
func (e K3DMixerParam) String() string
type KAUAudioMixParameter ¶
type KAUAudioMixParameter uint32
const ( KAUAudioMixParameter_RemixAmount KAUAudioMixParameter = 1 KAUAudioMixParameter_Style KAUAudioMixParameter = 0 )
func (KAUAudioMixParameter) String ¶
func (e KAUAudioMixParameter) String() string
type KAUAudioMixProperty ¶
type KAUAudioMixProperty uint32
const ( KAUAudioMixProperty_EnableSpatialization KAUAudioMixProperty = 5001 KAUAudioMixProperty_SpatialAudioMixMetadata KAUAudioMixProperty = 5000 )
func (KAUAudioMixProperty) String ¶
func (e KAUAudioMixProperty) String() string
type KAUGraphErr ¶
type KAUGraphErr int32
const ( // KAUGraphErr_CannotDoInCurrentContext: To avoid spinning or waiting in the render thread (a bad idea!), many of the calls to AUGraph can return: `kAUGraphErr_CannotDoInCurrentContext`. KAUGraphErr_CannotDoInCurrentContext KAUGraphErr = -10863 KAUGraphErr_InvalidAudioUnit KAUGraphErr = -10864 // KAUGraphErr_InvalidConnection: The attempted connection between two nodes cannot be made. KAUGraphErr_InvalidConnection KAUGraphErr = -10861 // KAUGraphErr_NodeNotFound: The specified node cannot be found. KAUGraphErr_NodeNotFound KAUGraphErr = -10860 // KAUGraphErr_OutputNodeErr: Audio processing graphs can only contain one output unit. KAUGraphErr_OutputNodeErr KAUGraphErr = -10862 )
func (KAUGraphErr) String ¶
func (e KAUGraphErr) String() string
type KAUGroupParameterID ¶
type KAUGroupParameterID uint32
const ( KAUGroupParameterID_AllNotesOff KAUGroupParameterID = 123 KAUGroupParameterID_AllSoundOff KAUGroupParameterID = 120 KAUGroupParameterID_ChannelPressure KAUGroupParameterID = 0xd0 KAUGroupParameterID_DataEntry KAUGroupParameterID = 6 KAUGroupParameterID_DataEntry_LSB KAUGroupParameterID = 38 KAUGroupParameterID_Expression KAUGroupParameterID = 11 KAUGroupParameterID_Expression_LSB KAUGroupParameterID = 43 KAUGroupParameterID_Foot KAUGroupParameterID = 4 KAUGroupParameterID_Foot_LSB KAUGroupParameterID = 36 KAUGroupParameterID_KeyPressure KAUGroupParameterID = 0xa0 KAUGroupParameterID_KeyPressure_FirstKey KAUGroupParameterID = 256 KAUGroupParameterID_KeyPressure_LastKey KAUGroupParameterID = 383 KAUGroupParameterID_ModWheel KAUGroupParameterID = 1 KAUGroupParameterID_ModWheel_LSB KAUGroupParameterID = 33 KAUGroupParameterID_Pan KAUGroupParameterID = 10 KAUGroupParameterID_Pan_LSB KAUGroupParameterID = 42 KAUGroupParameterID_PitchBend KAUGroupParameterID = 0xe0 KAUGroupParameterID_ResetAllControllers KAUGroupParameterID = 121 KAUGroupParameterID_Sostenuto KAUGroupParameterID = 66 KAUGroupParameterID_Sustain KAUGroupParameterID = 64 KAUGroupParameterID_Volume KAUGroupParameterID = 7 KAUGroupParameterID_Volume_LSB KAUGroupParameterID = 39 )
func (KAUGroupParameterID) String ¶
func (e KAUGroupParameterID) String() string
type KAULowShelfParam ¶
type KAULowShelfParam uint32
const ( KAULowShelfParam_CutoffFrequency KAULowShelfParam = 0 KAULowShelfParam_Gain KAULowShelfParam = 1 )
func (KAULowShelfParam) String ¶
func (e KAULowShelfParam) String() string
type KAUNBandEQParam ¶
type KAUNBandEQParam uint32
const ( KAUNBandEQParam_Bandwidth KAUNBandEQParam = 5000 KAUNBandEQParam_BypassBand KAUNBandEQParam = 1000 KAUNBandEQParam_FilterType KAUNBandEQParam = 2000 KAUNBandEQParam_Frequency KAUNBandEQParam = 3000 KAUNBandEQParam_Gain KAUNBandEQParam = 4000 KAUNBandEQParam_GlobalGain KAUNBandEQParam = 0 )
func (KAUNBandEQParam) String ¶
func (e KAUNBandEQParam) String() string
type KAUNBandEQProperty ¶
type KAUNBandEQProperty uint32
const ( KAUNBandEQProperty_BiquadCoefficients KAUNBandEQProperty = 2203 KAUNBandEQProperty_MaxNumberOfBands KAUNBandEQProperty = 2201 KAUNBandEQProperty_NumberOfBands KAUNBandEQProperty = 2200 )
func (KAUNBandEQProperty) String ¶
func (e KAUNBandEQProperty) String() string
type KAUNetReceiveParam ¶
type KAUNetReceiveParam uint32
const ( KAUNetReceiveParam_NumParameters KAUNetReceiveParam = 1 KAUNetReceiveParam_Status KAUNetReceiveParam = 0 )
func (KAUNetReceiveParam) String ¶
func (e KAUNetReceiveParam) String() string
type KAUNetReceiveProperty ¶
type KAUNetReceiveProperty uint32
const ( KAUNetReceiveProperty_Hostname KAUNetReceiveProperty = 3511 KAUNetReceiveProperty_Password KAUNetReceiveProperty = 3512 )
func (KAUNetReceiveProperty) String ¶
func (e KAUNetReceiveProperty) String() string
type KAUNetSend ¶
type KAUNetSend uint32
const ( KAUNetSendNumPresetFormats KAUNetSend = 18 KAUNetSendPresetFormat_AAC_128kbpspc KAUNetSend = 7 KAUNetSendPresetFormat_AAC_32kbpspc KAUNetSend = 13 KAUNetSendPresetFormat_AAC_40kbpspc KAUNetSend = 12 KAUNetSendPresetFormat_AAC_48kbpspc KAUNetSend = 11 KAUNetSendPresetFormat_AAC_64kbpspc KAUNetSend = 10 KAUNetSendPresetFormat_AAC_80kbpspc KAUNetSend = 9 KAUNetSendPresetFormat_AAC_96kbpspc KAUNetSend = 8 KAUNetSendPresetFormat_AAC_LD_32kbpspc KAUNetSend = 17 KAUNetSendPresetFormat_AAC_LD_40kbpspc KAUNetSend = 16 KAUNetSendPresetFormat_AAC_LD_48kbpspc KAUNetSend = 15 KAUNetSendPresetFormat_AAC_LD_64kbpspc KAUNetSend = 14 KAUNetSendPresetFormat_IMA4 KAUNetSend = 6 KAUNetSendPresetFormat_Lossless16 KAUNetSend = 4 KAUNetSendPresetFormat_Lossless24 KAUNetSend = 3 KAUNetSendPresetFormat_PCMFloat32 KAUNetSend = 0 KAUNetSendPresetFormat_PCMInt16 KAUNetSend = 2 KAUNetSendPresetFormat_PCMInt24 KAUNetSend = 1 KAUNetSendPresetFormat_ULaw KAUNetSend = 5 )
func (KAUNetSend) String ¶
func (e KAUNetSend) String() string
type KAUNetSendParam ¶
type KAUNetSendParam uint32
const ( KAUNetSendParam_NumParameters KAUNetSendParam = 1 KAUNetSendParam_Status KAUNetSendParam = 0 )
func (KAUNetSendParam) String ¶
func (e KAUNetSendParam) String() string
type KAUNetSendProperty ¶
type KAUNetSendProperty uint32
const ( KAUNetSendProperty_Disconnect KAUNetSendProperty = 3517 KAUNetSendProperty_Password KAUNetSendProperty = 3518 KAUNetSendProperty_PortNum KAUNetSendProperty = 3513 KAUNetSendProperty_ServiceName KAUNetSendProperty = 3516 KAUNetSendProperty_TransmissionFormat KAUNetSendProperty = 3514 KAUNetSendProperty_TransmissionFormatIndex KAUNetSendProperty = 3515 )
func (KAUNetSendProperty) String ¶
func (e KAUNetSendProperty) String() string
type KAUNetStatus ¶
type KAUNetStatus uint32
const ( KAUNetStatus_Connected KAUNetStatus = 1 KAUNetStatus_Connecting KAUNetStatus = 4 KAUNetStatus_Listening KAUNetStatus = 5 KAUNetStatus_NotConnected KAUNetStatus = 0 KAUNetStatus_Overflow KAUNetStatus = 2 KAUNetStatus_Underflow KAUNetStatus = 3 )
func (KAUNetStatus) String ¶
func (e KAUNetStatus) String() string
type KAUNodeInteraction ¶
type KAUNodeInteraction uint32
const ( // KAUNodeInteraction_Connection: connections between 2 audio units, KAUNodeInteraction_Connection KAUNodeInteraction = 1 // KAUNodeInteraction_InputCallback: input callbacks being registered to a single audio unit’s input bus. KAUNodeInteraction_InputCallback KAUNodeInteraction = 2 )
func (KAUNodeInteraction) String ¶
func (e KAUNodeInteraction) String() string
type KAUSamplerParam ¶
type KAUSamplerParam uint32
const ( KAUSamplerParam_CoarseTuning KAUSamplerParam = 901 KAUSamplerParam_FineTuning KAUSamplerParam = 902 KAUSamplerParam_Gain KAUSamplerParam = 900 KAUSamplerParam_Pan KAUSamplerParam = 903 )
func (KAUSamplerParam) String ¶
func (e KAUSamplerParam) String() string
type KAUSamplerProperty ¶
type KAUSamplerProperty uint32
const ( KAUSamplerProperty_BankAndPreset KAUSamplerProperty = 4100 KAUSamplerProperty_LoadPresetFromBank KAUSamplerProperty = 4100 )
func (KAUSamplerProperty) String ¶
func (e KAUSamplerProperty) String() string
type KAUSoundIsolationParam ¶
type KAUSoundIsolationParam uint32
const ( KAUSoundIsolationParam_SoundToIsolate KAUSoundIsolationParam = 1 KAUSoundIsolationParam_WetDryMixPercent KAUSoundIsolationParam = 0 )
func (KAUSoundIsolationParam) String ¶
func (e KAUSoundIsolationParam) String() string
type KAUSoundIsolationSoundType ¶
type KAUSoundIsolationSoundType int
const ( KAUSoundIsolationSoundType_HighQualityVoice KAUSoundIsolationSoundType = 0 KAUSoundIsolationSoundType_Voice KAUSoundIsolationSoundType = 1 )
func (KAUSoundIsolationSoundType) String ¶
func (e KAUSoundIsolationSoundType) String() string
type KAUVoiceIOProperty ¶
type KAUVoiceIOProperty uint32
const ( // KAUVoiceIOProperty_BypassVoiceProcessing: A property that bypasses all processing for microphone uplink done by the voice processing unit. KAUVoiceIOProperty_BypassVoiceProcessing KAUVoiceIOProperty = 2100 // KAUVoiceIOProperty_MuteOutput: A property to mute the output of the processed microphone uplink. KAUVoiceIOProperty_MuteOutput KAUVoiceIOProperty = 2104 // KAUVoiceIOProperty_VoiceProcessingEnableAGC: A property to enable automatic gain control on the processed microphone uplink. KAUVoiceIOProperty_VoiceProcessingEnableAGC KAUVoiceIOProperty = 2101 )
func (KAUVoiceIOProperty) String ¶
func (e KAUVoiceIOProperty) String() string
type KAudioCodecBitRateControlMode ¶
type KAudioCodecBitRateControlMode uint32
const ( KAudioCodecBitRateControlMode_Constant KAudioCodecBitRateControlMode = 0 KAudioCodecBitRateControlMode_LongTermAverage KAudioCodecBitRateControlMode = 1 KAudioCodecBitRateControlMode_Variable KAudioCodecBitRateControlMode = 3 KAudioCodecBitRateControlMode_VariableConstrained KAudioCodecBitRateControlMode = 2 )
func (KAudioCodecBitRateControlMode) String ¶
func (e KAudioCodecBitRateControlMode) String() string
type KAudioCodecBitRateFormat ¶
type KAudioCodecBitRateFormat uint32
const ( KAudioCodecBitRateFormat_ABR KAudioCodecBitRateFormat = 1 KAudioCodecBitRateFormat_CBR KAudioCodecBitRateFormat = 0 KAudioCodecBitRateFormat_VBR KAudioCodecBitRateFormat = 2 )
func (KAudioCodecBitRateFormat) String ¶
func (e KAudioCodecBitRateFormat) String() string
type KAudioCodecContentSource ¶
type KAudioCodecContentSource int32
const ( KAudioCodecContentSource_AV_Spatial_Live KAudioCodecContentSource = 41 KAudioCodecContentSource_AV_Spatial_Offline KAudioCodecContentSource = 39 KAudioCodecContentSource_AV_Traditional_Live KAudioCodecContentSource = 40 KAudioCodecContentSource_AV_Traditional_Offline KAudioCodecContentSource = 38 KAudioCodecContentSource_AppleAV_Spatial_Live KAudioCodecContentSource = 9 KAudioCodecContentSource_AppleAV_Spatial_Offline KAudioCodecContentSource = 7 KAudioCodecContentSource_AppleAV_Traditional_Live KAudioCodecContentSource = 8 KAudioCodecContentSource_AppleAV_Traditional_Offline KAudioCodecContentSource = 6 KAudioCodecContentSource_AppleCapture_Spatial KAudioCodecContentSource = 2 KAudioCodecContentSource_AppleCapture_Spatial_Enhanced KAudioCodecContentSource = 3 KAudioCodecContentSource_AppleCapture_Traditional KAudioCodecContentSource = 1 KAudioCodecContentSource_AppleMusic_Spatial KAudioCodecContentSource = 5 KAudioCodecContentSource_AppleMusic_Traditional KAudioCodecContentSource = 4 KAudioCodecContentSource_ApplePassthrough KAudioCodecContentSource = 10 KAudioCodecContentSource_Capture_Spatial KAudioCodecContentSource = 34 KAudioCodecContentSource_Capture_Spatial_Enhanced KAudioCodecContentSource = 35 KAudioCodecContentSource_Capture_Traditional KAudioCodecContentSource = 33 KAudioCodecContentSource_Music_Spatial KAudioCodecContentSource = 37 KAudioCodecContentSource_Music_Traditional KAudioCodecContentSource = 36 KAudioCodecContentSource_Passthrough KAudioCodecContentSource = 42 KAudioCodecContentSource_Reserved KAudioCodecContentSource = 0 KAudioCodecContentSource_Unspecified KAudioCodecContentSource = -1 )
func (KAudioCodecContentSource) String ¶
func (e KAudioCodecContentSource) String() string
type KAudioCodecDelayMode ¶
type KAudioCodecDelayMode uint32
const ( KAudioCodecDelayMode_Compatibility KAudioCodecDelayMode = 0 KAudioCodecDelayMode_Minimum KAudioCodecDelayMode = 1 KAudioCodecDelayMode_Optimal KAudioCodecDelayMode = 2 )
func (KAudioCodecDelayMode) String ¶
func (e KAudioCodecDelayMode) String() string
type KAudioCodecDynamicRangeControlConfiguration ¶
type KAudioCodecDynamicRangeControlConfiguration uint32
const ( KAudioCodecDynamicRangeControlConfiguration_Capture KAudioCodecDynamicRangeControlConfiguration = 4 KAudioCodecDynamicRangeControlConfiguration_Movie KAudioCodecDynamicRangeControlConfiguration = 3 KAudioCodecDynamicRangeControlConfiguration_Music KAudioCodecDynamicRangeControlConfiguration = 1 KAudioCodecDynamicRangeControlConfiguration_None KAudioCodecDynamicRangeControlConfiguration = 0 KAudioCodecDynamicRangeControlConfiguration_Speech KAudioCodecDynamicRangeControlConfiguration = 2 )
func (KAudioCodecDynamicRangeControlConfiguration) String ¶
func (e KAudioCodecDynamicRangeControlConfiguration) String() string
type KAudioCodecGetPropertyInfoSelect ¶
type KAudioCodecGetPropertyInfoSelect uint32
const ( KAudioCodecAppendInputBufferListSelect KAudioCodecGetPropertyInfoSelect = 0x9 KAudioCodecAppendInputDataSelect KAudioCodecGetPropertyInfoSelect = 0x6 KAudioCodecGetPropertyInfoSelectValue KAudioCodecGetPropertyInfoSelect = 0x1 KAudioCodecGetPropertySelect KAudioCodecGetPropertyInfoSelect = 0x2 KAudioCodecInitializeSelect KAudioCodecGetPropertyInfoSelect = 0x4 KAudioCodecProduceOutputBufferListSelect KAudioCodecGetPropertyInfoSelect = 0xa KAudioCodecProduceOutputDataSelect KAudioCodecGetPropertyInfoSelect = 0x7 KAudioCodecResetSelect KAudioCodecGetPropertyInfoSelect = 0x8 KAudioCodecSetPropertySelect KAudioCodecGetPropertyInfoSelect = 0x3 KAudioCodecUninitializeSelect KAudioCodecGetPropertyInfoSelect = 0x5 )
func (KAudioCodecGetPropertyInfoSelect) String ¶
func (e KAudioCodecGetPropertyInfoSelect) String() string
type KAudioCodecNoError ¶
type KAudioCodecNoError int32
const ( KAudioCodecBadDataError KAudioCodecNoError = 'b'<<24 | 'a'<<16 | 'd'<<8 | 'a' // 'bada' KAudioCodecBadPropertySizeError KAudioCodecNoError = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' KAudioCodecIllegalOperationError KAudioCodecNoError = 'n'<<24 | 'o'<<16 | 'p'<<8 | 'e' // 'nope' KAudioCodecNoErrorValue KAudioCodecNoError = 0 KAudioCodecNotEnoughBufferSpaceError KAudioCodecNoError = '!'<<24 | 'b'<<16 | 'u'<<8 | 'f' // '!buf' KAudioCodecStateError KAudioCodecNoError = '!'<<24 | 's'<<16 | 't'<<8 | 't' // '!stt' KAudioCodecUnknownPropertyError KAudioCodecNoError = 'w'<<24 | 'h'<<16 | 'o'<<8 | '?' // 'who?' KAudioCodecUnspecifiedError KAudioCodecNoError = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what' KAudioCodecUnsupportedFormatError KAudioCodecNoError = '!'<<24 | 'd'<<16 | 'a'<<8 | 't' // '!dat' )
func (KAudioCodecNoError) String ¶
func (e KAudioCodecNoError) String() string
type KAudioCodecOutputPrecedence ¶
type KAudioCodecOutputPrecedence uint32
const ( KAudioCodecOutputPrecedenceBitRate KAudioCodecOutputPrecedence = 1 KAudioCodecOutputPrecedenceNone KAudioCodecOutputPrecedence = 0 KAudioCodecOutputPrecedenceSampleRate KAudioCodecOutputPrecedence = 2 )
func (KAudioCodecOutputPrecedence) String ¶
func (e KAudioCodecOutputPrecedence) String() string
type KAudioCodecPrimeMethod ¶
type KAudioCodecPrimeMethod uint32
const ( KAudioCodecPrimeMethod_None KAudioCodecPrimeMethod = 2 KAudioCodecPrimeMethod_Normal KAudioCodecPrimeMethod = 1 KAudioCodecPrimeMethod_Pre KAudioCodecPrimeMethod = 0 )
func (KAudioCodecPrimeMethod) String ¶
func (e KAudioCodecPrimeMethod) String() string
type KAudioCodecProduceOutputPacket ¶
type KAudioCodecProduceOutputPacket uint32
const ( KAudioCodecProduceOutputPacketAtEOF KAudioCodecProduceOutputPacket = 5 KAudioCodecProduceOutputPacketFailure KAudioCodecProduceOutputPacket = 1 KAudioCodecProduceOutputPacketNeedsMoreInputData KAudioCodecProduceOutputPacket = 4 KAudioCodecProduceOutputPacketSuccess KAudioCodecProduceOutputPacket = 2 KAudioCodecProduceOutputPacketSuccessConcealed KAudioCodecProduceOutputPacket = 6 KAudioCodecProduceOutputPacketSuccessHasMore KAudioCodecProduceOutputPacket = 3 )
func (KAudioCodecProduceOutputPacket) String ¶
func (e KAudioCodecProduceOutputPacket) String() string
type KAudioCodecPropertyInputBufferSize ¶
type KAudioCodecPropertyInputBufferSize uint32
const ( KAudioCodecPropertyASPFrequency KAudioCodecPropertyInputBufferSize = 'a'<<24 | 's'<<16 | 'p'<<8 | 'f' // 'aspf' KAudioCodecPropertyAdjustCompressionProfile KAudioCodecPropertyInputBufferSize = '^'<<24 | 'p'<<16 | 'r'<<8 | 'o' // '^pro' KAudioCodecPropertyAdjustLocalQuality KAudioCodecPropertyInputBufferSize = '^'<<24 | 'q'<<16 | 'a'<<8 | 'l' // '^qal' KAudioCodecPropertyAdjustTargetLevel KAudioCodecPropertyInputBufferSize = '^'<<24 | 'p'<<16 | 't'<<8 | 'l' // '^ptl' KAudioCodecPropertyAdjustTargetLevelConstant KAudioCodecPropertyInputBufferSize = '^'<<24 | 't'<<16 | 'l'<<8 | 'c' // '^tlc' KAudioCodecPropertyApplicableBitRateRange KAudioCodecPropertyInputBufferSize = 'b'<<24 | 'r'<<16 | 't'<<8 | 'a' // 'brta' KAudioCodecPropertyApplicableInputSampleRates KAudioCodecPropertyInputBufferSize = 'i'<<24 | 's'<<16 | 'r'<<8 | 'a' // 'isra' KAudioCodecPropertyApplicableOutputSampleRates KAudioCodecPropertyInputBufferSize = 'o'<<24 | 's'<<16 | 'r'<<8 | 'a' // 'osra' KAudioCodecPropertyBitRateControlMode KAudioCodecPropertyInputBufferSize = 'a'<<24 | 'c'<<16 | 'b'<<8 | 'f' // 'acbf' KAudioCodecPropertyBitRateForVBR KAudioCodecPropertyInputBufferSize = 'v'<<24 | 'b'<<16 | 'r'<<8 | 'b' // 'vbrb' KAudioCodecPropertyContentSource KAudioCodecPropertyInputBufferSize = 'c'<<24 | 's'<<16 | 'r'<<8 | 'c' // 'csrc' KAudioCodecPropertyCurrentInputChannelLayout KAudioCodecPropertyInputBufferSize = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl ' KAudioCodecPropertyCurrentInputFormat KAudioCodecPropertyInputBufferSize = 'i'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ifmt' KAudioCodecPropertyCurrentInputSampleRate KAudioCodecPropertyInputBufferSize = 'c'<<24 | 'i'<<16 | 's'<<8 | 'r' // 'cisr' KAudioCodecPropertyCurrentOutputChannelLayout KAudioCodecPropertyInputBufferSize = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl ' KAudioCodecPropertyCurrentOutputFormat KAudioCodecPropertyInputBufferSize = 'o'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ofmt' KAudioCodecPropertyCurrentOutputSampleRate KAudioCodecPropertyInputBufferSize = 'c'<<24 | 'o'<<16 | 's'<<8 | 'r' // 'cosr' KAudioCodecPropertyCurrentTargetBitRate KAudioCodecPropertyInputBufferSize = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat' KAudioCodecPropertyDelayMode KAudioCodecPropertyInputBufferSize = 'd'<<24 | 'm'<<16 | 'o'<<8 | 'd' // 'dmod' KAudioCodecPropertyDynamicRangeControlConfiguration KAudioCodecPropertyInputBufferSize = 'c'<<24 | 'd'<<16 | 'r'<<8 | 'c' // 'cdrc' KAudioCodecPropertyDynamicRangeControlMode KAudioCodecPropertyInputBufferSize = 'm'<<24 | 'd'<<16 | 'r'<<8 | 'c' // 'mdrc' KAudioCodecPropertyEmploysDependentPackets KAudioCodecPropertyInputBufferSize = 'd'<<24 | 'p'<<16 | 'k'<<8 | '?' // 'dpk?' KAudioCodecPropertyFormatList KAudioCodecPropertyInputBufferSize = 'a'<<24 | 'c'<<16 | 'f'<<8 | 'l' // 'acfl' KAudioCodecPropertyHasVariablePacketByteSizes KAudioCodecPropertyInputBufferSize = 'v'<<24 | 'p'<<16 | 'k'<<8 | '?' // 'vpk?' KAudioCodecPropertyInputBufferSizeValue KAudioCodecPropertyInputBufferSize = 't'<<24 | 'b'<<16 | 'u'<<8 | 'f' // 'tbuf' KAudioCodecPropertyIsInitialized KAudioCodecPropertyInputBufferSize = 'i'<<24 | 'n'<<16 | 'i'<<8 | 't' // 'init' KAudioCodecPropertyMagicCookie KAudioCodecPropertyInputBufferSize = 'k'<<24 | 'u'<<16 | 'k'<<8 | 'i' // 'kuki' KAudioCodecPropertyMaximumPacketByteSize KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'b' // 'pakb' KAudioCodecPropertyPacketFrameSize KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'f' // 'pakf' KAudioCodecPropertyPacketSizeLimitForVBR KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'l' // 'pakl' KAudioCodecPropertyPaddedZeros KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'a'<<16 | 'd'<<8 | '0' // 'pad0' KAudioCodecPropertyPrimeInfo KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'r'<<16 | 'i'<<8 | 'm' // 'prim' KAudioCodecPropertyPrimeMethod KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'r'<<16 | 'm'<<8 | 'm' // 'prmm' KAudioCodecPropertyProgramTargetLevel KAudioCodecPropertyInputBufferSize = 'p'<<24 | 'p'<<16 | 't'<<8 | 'l' // 'pptl' KAudioCodecPropertyProgramTargetLevelConstant KAudioCodecPropertyInputBufferSize = 'p'<<24 | 't'<<16 | 'l'<<8 | 'c' // 'ptlc' KAudioCodecPropertyQualitySetting KAudioCodecPropertyInputBufferSize = 's'<<24 | 'r'<<16 | 'c'<<8 | 'q' // 'srcq' KAudioCodecPropertyRecommendedBitRateRange KAudioCodecPropertyInputBufferSize = 'b'<<24 | 'r'<<16 | 't'<<8 | 'r' // 'brtr' KAudioCodecPropertySettings KAudioCodecPropertyInputBufferSize = 'a'<<24 | 'c'<<16 | 's'<<8 | ' ' // 'acs ' KAudioCodecPropertySoundQualityForVBR KAudioCodecPropertyInputBufferSize = 'v'<<24 | 'b'<<16 | 'r'<<8 | 'q' // 'vbrq' KAudioCodecPropertyUsedInputBufferSize KAudioCodecPropertyInputBufferSize = 'u'<<24 | 'b'<<16 | 'u'<<8 | 'f' // 'ubuf' )
func (KAudioCodecPropertyInputBufferSize) String ¶
func (e KAudioCodecPropertyInputBufferSize) String() string
type KAudioCodecPropertyNameCFString ¶
type KAudioCodecPropertyNameCFString uint32
const ( KAudioCodecPropertyFormatCFString KAudioCodecPropertyNameCFString = 'l'<<24 | 'f'<<16 | 'o'<<8 | 'r' // 'lfor' KAudioCodecPropertyManufacturerCFString KAudioCodecPropertyNameCFString = 'l'<<24 | 'm'<<16 | 'a'<<8 | 'k' // 'lmak' KAudioCodecPropertyNameCFStringValue KAudioCodecPropertyNameCFString = 'l'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'lnam' )
func (KAudioCodecPropertyNameCFString) String ¶
func (e KAudioCodecPropertyNameCFString) String() string
type KAudioCodecPropertyRequiresPacketDescription ¶
type KAudioCodecPropertyRequiresPacketDescription uint32
const ( KAudioCodecBitRateFormatValue KAudioCodecPropertyRequiresPacketDescription = 'a'<<24 | 'c'<<16 | 'b'<<8 | 'f' // 'acbf' KAudioCodecDoesSampleRateConversion KAudioCodecPropertyRequiresPacketDescription = 'l'<<24 | 'm'<<16 | 'r'<<8 | 'c' // 'lmrc' KAudioCodecExtendFrequencies KAudioCodecPropertyRequiresPacketDescription = 'a'<<24 | 'c'<<16 | 'e'<<8 | 'f' // 'acef' KAudioCodecInputFormatsForOutputFormat KAudioCodecPropertyRequiresPacketDescription = 'i'<<24 | 'f'<<16 | '4'<<8 | 'o' // 'if4o' KAudioCodecOutputFormatsForInputFormat KAudioCodecPropertyRequiresPacketDescription = 'o'<<24 | 'f'<<16 | '4'<<8 | 'i' // 'of4i' KAudioCodecOutputPrecedenceValue KAudioCodecPropertyRequiresPacketDescription = 'o'<<24 | 'p'<<16 | 'p'<<8 | 'r' // 'oppr' KAudioCodecPropertyAvailableBitRates KAudioCodecPropertyRequiresPacketDescription = 'b'<<24 | 'r'<<16 | 't'<<8 | '#' // 'brt#' KAudioCodecPropertyAvailableInputChannelLayouts KAudioCodecPropertyRequiresPacketDescription = 'a'<<24 | 'i'<<16 | 'c'<<8 | 'l' // 'aicl' KAudioCodecPropertyAvailableOutputChannelLayouts KAudioCodecPropertyRequiresPacketDescription = 'a'<<24 | 'o'<<16 | 'c'<<8 | 'l' // 'aocl' KAudioCodecPropertyInputChannelLayout KAudioCodecPropertyRequiresPacketDescription = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl ' KAudioCodecPropertyOutputChannelLayout KAudioCodecPropertyRequiresPacketDescription = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl ' KAudioCodecPropertyRequiresPacketDescriptionValue KAudioCodecPropertyRequiresPacketDescription = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'd' // 'pakd' KAudioCodecPropertyZeroFramesPadded KAudioCodecPropertyRequiresPacketDescription = 'p'<<24 | 'a'<<16 | 'd'<<8 | '0' // 'pad0' KAudioCodecUseRecommendedSampleRate KAudioCodecPropertyRequiresPacketDescription = 'u'<<24 | 'r'<<16 | 's'<<8 | 'r' // 'ursr' )
func (KAudioCodecPropertyRequiresPacketDescription) String ¶
func (e KAudioCodecPropertyRequiresPacketDescription) String() string
type KAudioCodecPropertySupportedInputFormats ¶
type KAudioCodecPropertySupportedInputFormats uint32
const ( KAudioCodecPropertyAvailableBitRateRange KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'b'<<16 | 'r'<<8 | 't' // 'abrt' KAudioCodecPropertyAvailableInputChannelLayoutTags KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'i'<<16 | 'c'<<8 | 'l' // 'aicl' KAudioCodecPropertyAvailableInputSampleRates KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'i'<<16 | 's'<<8 | 'r' // 'aisr' KAudioCodecPropertyAvailableNumberChannels KAudioCodecPropertySupportedInputFormats = 'c'<<24 | 'm'<<16 | 'n'<<8 | 'c' // 'cmnc' KAudioCodecPropertyAvailableOutputChannelLayoutTags KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'o'<<16 | 'c'<<8 | 'l' // 'aocl' KAudioCodecPropertyAvailableOutputSampleRates KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'o'<<16 | 's'<<8 | 'r' // 'aosr' KAudioCodecPropertyDoesSampleRateConversion KAudioCodecPropertySupportedInputFormats = 'l'<<24 | 'm'<<16 | 'r'<<8 | 'c' // 'lmrc' KAudioCodecPropertyFormatInfo KAudioCodecPropertySupportedInputFormats = 'a'<<24 | 'c'<<16 | 'f'<<8 | 'i' // 'acfi' KAudioCodecPropertyInputFormatsForOutputFormat KAudioCodecPropertySupportedInputFormats = 'i'<<24 | 'f'<<16 | '4'<<8 | 'o' // 'if4o' KAudioCodecPropertyMinimumNumberInputPackets KAudioCodecPropertySupportedInputFormats = 'm'<<24 | 'n'<<16 | 'i'<<8 | 'p' // 'mnip' KAudioCodecPropertyMinimumNumberOutputPackets KAudioCodecPropertySupportedInputFormats = 'm'<<24 | 'n'<<16 | 'o'<<8 | 'p' // 'mnop' KAudioCodecPropertyOutputFormatsForInputFormat KAudioCodecPropertySupportedInputFormats = 'o'<<24 | 'f'<<16 | '4'<<8 | 'i' // 'of4i' KAudioCodecPropertySupportedInputFormatsValue KAudioCodecPropertySupportedInputFormats = 'i'<<24 | 'f'<<16 | 'm'<<8 | '#' // 'ifm#' KAudioCodecPropertySupportedOutputFormats KAudioCodecPropertySupportedInputFormats = 'o'<<24 | 'f'<<16 | 'm'<<8 | '#' // 'ofm#' )
func (KAudioCodecPropertySupportedInputFormats) String ¶
func (e KAudioCodecPropertySupportedInputFormats) String() string
type KAudioCodecQuality ¶
type KAudioCodecQuality uint32
const ( KAudioCodecQuality_High KAudioCodecQuality = 0x60 KAudioCodecQuality_Low KAudioCodecQuality = 0x20 KAudioCodecQuality_Max KAudioCodecQuality = 0x7f KAudioCodecQuality_Medium KAudioCodecQuality = 0x40 KAudioCodecQuality_Min KAudioCodecQuality = 0 )
func (KAudioCodecQuality) String ¶
func (e KAudioCodecQuality) String() string
type KAudioComponentErr ¶
type KAudioComponentErr int32
const ( KAudioComponentErr_DuplicateDescription KAudioComponentErr = -66752 KAudioComponentErr_InitializationTimedOut KAudioComponentErr = -66747 KAudioComponentErr_InvalidFormat KAudioComponentErr = -66746 KAudioComponentErr_NotPermitted KAudioComponentErr = -66748 KAudioComponentErr_TooManyInstances KAudioComponentErr = -66750 KAudioComponentErr_UnsupportedType KAudioComponentErr = -66751 )
func (KAudioComponentErr) String ¶
func (e KAudioComponentErr) String() string
type KAudioConverterProperty ¶
type KAudioConverterProperty uint32
const ( KAudioConverterPropertyDitherBitDepth KAudioConverterProperty = 'd'<<24 | 'b'<<16 | 'i'<<8 | 't' // 'dbit' KAudioConverterPropertyDithering KAudioConverterProperty = 'd'<<24 | 'i'<<16 | 't'<<8 | 'h' // 'dith' )
func (KAudioConverterProperty) String ¶
func (e KAudioConverterProperty) String() string
type KAudioConverterPropertyMaximumInputBufferSize ¶
type KAudioConverterPropertyMaximumInputBufferSize uint32
const ( // KAudioConverterPropertyMaximumInputBufferSizeValue: Deprecated. KAudioConverterPropertyMaximumInputBufferSizeValue KAudioConverterPropertyMaximumInputBufferSize = 'x'<<24 | 'i'<<16 | 'b'<<8 | 's' // 'xibs' // KAudioConverterSampleRateConverterAlgorithm: A value that indicates the sample rate conversion algorithm. KAudioConverterSampleRateConverterAlgorithm KAudioConverterPropertyMaximumInputBufferSize = 's'<<24 | 'r'<<16 | 'c'<<8 | 'i' // 'srci' )
func (KAudioConverterPropertyMaximumInputBufferSize) String ¶
func (e KAudioConverterPropertyMaximumInputBufferSize) String() string
type KAudioConverterPropertyMinimumInputBufferSize ¶
type KAudioConverterPropertyMinimumInputBufferSize uint32
const ( // KAudioConverterApplicableEncodeBitRates: An array of [AudioValueRange] structures that describes applicable bit rates based on current settings. KAudioConverterApplicableEncodeBitRates KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'e'<<16 | 'b'<<8 | 'r' // 'aebr' // KAudioConverterApplicableEncodeSampleRates: An array of [AudioValueRange] structures that describes applicable sample rates based on current settings. KAudioConverterApplicableEncodeSampleRates KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'e'<<16 | 's'<<8 | 'r' // 'aesr' // KAudioConverterAvailableEncodeBitRates: An array of [AudioValueRange] structures that describes the available bit rates based on the input format. KAudioConverterAvailableEncodeBitRates KAudioConverterPropertyMinimumInputBufferSize = 'v'<<24 | 'e'<<16 | 'b'<<8 | 'r' // 'vebr' // KAudioConverterAvailableEncodeChannelLayoutTags: An array of [AudioChannelLayoutTag] values for the format and number of channels specified in the encoder’s input format. KAudioConverterAvailableEncodeChannelLayoutTags KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'e'<<16 | 'c'<<8 | 'l' // 'aecl' // KAudioConverterAvailableEncodeSampleRates: An array of [AudioValueRange] structures that describes the available sample rates based on the input format. KAudioConverterAvailableEncodeSampleRates KAudioConverterPropertyMinimumInputBufferSize = 'v'<<24 | 'e'<<16 | 's'<<8 | 'r' // 'vesr' // KAudioConverterChannelMap: An array of [SInt32] values that specify an input-to-output channel mapping. KAudioConverterChannelMap KAudioConverterPropertyMinimumInputBufferSize = 'c'<<24 | 'h'<<16 | 'm'<<8 | 'p' // 'chmp' // KAudioConverterCodecQuality: The rendering quality of a codec. KAudioConverterCodecQuality KAudioConverterPropertyMinimumInputBufferSize = 'c'<<24 | 'd'<<16 | 'q'<<8 | 'u' // 'cdqu' // KAudioConverterCompressionMagicCookie: A `void*` value that points to memory set up by the caller. KAudioConverterCompressionMagicCookie KAudioConverterPropertyMinimumInputBufferSize = 'c'<<24 | 'm'<<16 | 'g'<<8 | 'c' // 'cmgc' // KAudioConverterCurrentInputStreamDescription: The current, completely specified input [AudioStreamBasicDescription] structure. KAudioConverterCurrentInputStreamDescription KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'c'<<16 | 'i'<<8 | 'd' // 'acid' // KAudioConverterCurrentOutputStreamDescription: The current, completely specified output [AudioStreamBasicDescription] structure. KAudioConverterCurrentOutputStreamDescription KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'c'<<16 | 'o'<<8 | 'd' // 'acod' // KAudioConverterDecompressionMagicCookie: A `void*` value that points to memory set up by the caller. KAudioConverterDecompressionMagicCookie KAudioConverterPropertyMinimumInputBufferSize = 'd'<<24 | 'm'<<16 | 'g'<<8 | 'c' // 'dmgc' // KAudioConverterEncodeAdjustableSampleRate: A [Float64] value that specifies an output sample rate. KAudioConverterEncodeAdjustableSampleRate KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'j'<<16 | 's'<<8 | 'r' // 'ajsr' // KAudioConverterEncodeBitRate: A [UInt32] value containing the number of bits per second to aim for when encoding data. KAudioConverterEncodeBitRate KAudioConverterPropertyMinimumInputBufferSize = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat' // KAudioConverterInputChannelLayout: An [AudioChannelLayout] structure that specifies an audio converter’s input channel layout. KAudioConverterInputChannelLayout KAudioConverterPropertyMinimumInputBufferSize = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl ' // KAudioConverterOutputChannelLayout: An [AudioChannelLayout] structure that specifies an audio converter’s output channel layout. KAudioConverterOutputChannelLayout KAudioConverterPropertyMinimumInputBufferSize = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl ' // KAudioConverterPrimeInfo: An AudioConverterPrimeInfo structure. KAudioConverterPrimeInfo KAudioConverterPropertyMinimumInputBufferSize = 'p'<<24 | 'r'<<16 | 'i'<<8 | 'm' // 'prim' // KAudioConverterPrimeMethod: The priming method, usually for sample-rate conversion. KAudioConverterPrimeMethod KAudioConverterPropertyMinimumInputBufferSize = 'p'<<24 | 'r'<<16 | 'm'<<8 | 'm' // 'prmm' // KAudioConverterPropertyBitDepthHint: A [UInt32] value that designates the source bit depth to preserve. KAudioConverterPropertyBitDepthHint KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'c'<<16 | 'b'<<8 | 'd' // 'acbd' // KAudioConverterPropertyCalculateInputBufferSize: A [UInt32] value that on input holds a size, in bytes, that is desired for the output data. KAudioConverterPropertyCalculateInputBufferSize KAudioConverterPropertyMinimumInputBufferSize = 'c'<<24 | 'i'<<16 | 'b'<<8 | 's' // 'cibs' // KAudioConverterPropertyCalculateOutputBufferSize: A [UInt32] value that on input holds a size, in bytes, that is desired for the input data. KAudioConverterPropertyCalculateOutputBufferSize KAudioConverterPropertyMinimumInputBufferSize = 'c'<<24 | 'o'<<16 | 'b'<<8 | 's' // 'cobs' KAudioConverterPropertyChannelMixMap KAudioConverterPropertyMinimumInputBufferSize = 'm'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'mmap' // KAudioConverterPropertyFormatList: An array of [AudioFormatListItem] structures that describes the set of data formats produced by the encoder end of an audio converter. KAudioConverterPropertyFormatList KAudioConverterPropertyMinimumInputBufferSize = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst' // KAudioConverterPropertyInputCodecParameters: The value of this property varies from format to format and is considered private to the format. KAudioConverterPropertyInputCodecParameters KAudioConverterPropertyMinimumInputBufferSize = 'i'<<24 | 'c'<<16 | 'd'<<8 | 'p' // 'icdp' // KAudioConverterPropertyMaximumInputPacketSize: A [UInt32] value that indicates the size, in bytes, of the largest single packet of data in the input format. KAudioConverterPropertyMaximumInputPacketSize KAudioConverterPropertyMinimumInputBufferSize = 'x'<<24 | 'i'<<16 | 'p'<<8 | 's' // 'xips' // KAudioConverterPropertyMaximumOutputPacketSize: A [UInt32] value that indicates the size, in bytes, of the largest single packet of data in the output format. KAudioConverterPropertyMaximumOutputPacketSize KAudioConverterPropertyMinimumInputBufferSize = 'x'<<24 | 'o'<<16 | 'p'<<8 | 's' // 'xops' // KAudioConverterPropertyMinimumInputBufferSizeValue: A [UInt32] value that indicates the size, in bytes, of the smallest buffer of input data that can be supplied via the audio converter input callback or as the input to the AudioConverterConvertBuffer(_:_:_:_:_:) function. KAudioConverterPropertyMinimumInputBufferSizeValue KAudioConverterPropertyMinimumInputBufferSize = 'm'<<24 | 'i'<<16 | 'b'<<8 | 's' // 'mibs' // KAudioConverterPropertyMinimumOutputBufferSize: A [UInt32] value that indicates the size, in bytes, of the smallest buffer of output data that can be supplied to AudioConverterFillComplexBuffer or as the output to AudioConverterConvertBuffer KAudioConverterPropertyMinimumOutputBufferSize KAudioConverterPropertyMinimumInputBufferSize = 'm'<<24 | 'o'<<16 | 'b'<<8 | 's' // 'mobs' // KAudioConverterPropertyOutputCodecParameters: The value of this property varies from format to format and is considered private to the format. KAudioConverterPropertyOutputCodecParameters KAudioConverterPropertyMinimumInputBufferSize = 'o'<<24 | 'c'<<16 | 'd'<<8 | 'p' // 'ocdp' KAudioConverterPropertyPerformDownmix KAudioConverterPropertyMinimumInputBufferSize = 'd'<<24 | 'm'<<16 | 'i'<<8 | 'x' // 'dmix' // KAudioConverterPropertySettings: An array (of type [CFArray]) of property settings for converters. KAudioConverterPropertySettings KAudioConverterPropertyMinimumInputBufferSize = 'a'<<24 | 'c'<<16 | 'p'<<8 | 's' // 'acps' // KAudioConverterSampleRateConverterComplexityValue: The sample rate conversion algorithm. KAudioConverterSampleRateConverterComplexityValue KAudioConverterPropertyMinimumInputBufferSize = 's'<<24 | 'r'<<16 | 'c'<<8 | 'a' // 'srca' // KAudioConverterSampleRateConverterInitialPhase: A [Float64] value equal to `0.0`. KAudioConverterSampleRateConverterInitialPhase KAudioConverterPropertyMinimumInputBufferSize = 's'<<24 | 'r'<<16 | 'c'<<8 | 'p' // 'srcp' // KAudioConverterSampleRateConverterQuality: The rendering quality of the sample rate converter. KAudioConverterSampleRateConverterQuality KAudioConverterPropertyMinimumInputBufferSize = 's'<<24 | 'r'<<16 | 'c'<<8 | 'q' // 'srcq' )
func (KAudioConverterPropertyMinimumInputBufferSize) String ¶
func (e KAudioConverterPropertyMinimumInputBufferSize) String() string
type KAudioConverterQuality ¶
type KAudioConverterQuality uint32
const ( // KAudioConverterQuality_High: Specifies high sample rate conversion quality. KAudioConverterQuality_High KAudioConverterQuality = 0x60 // KAudioConverterQuality_Low: Specifies low sample rate conversion quality. KAudioConverterQuality_Low KAudioConverterQuality = 0x20 // KAudioConverterQuality_Max: Specifies maximum sample-rate conversion quality. KAudioConverterQuality_Max KAudioConverterQuality = 0x7f // KAudioConverterQuality_Medium: Specifies medium sample rate conversion quality. KAudioConverterQuality_Medium KAudioConverterQuality = 0x40 // KAudioConverterQuality_Min: Specifies minimum sample rate conversion quality. KAudioConverterQuality_Min KAudioConverterQuality = 0 )
func (KAudioConverterQuality) String ¶
func (e KAudioConverterQuality) String() string
type KAudioConverterSampleRateConverterComplexity ¶
type KAudioConverterSampleRateConverterComplexity uint32
const ( // KAudioConverterSampleRateConverterComplexity_Linear: Specifies linear interpolation for sample rate conversion. KAudioConverterSampleRateConverterComplexity_Linear KAudioConverterSampleRateConverterComplexity = 'l'<<24 | 'i'<<16 | 'n'<<8 | 'e' // 'line' // KAudioConverterSampleRateConverterComplexity_Mastering: Specifies a mastering-quality sample rate conversion algorithm. KAudioConverterSampleRateConverterComplexity_Mastering KAudioConverterSampleRateConverterComplexity = 'b'<<24 | 'a'<<16 | 't'<<8 | 's' // 'bats' KAudioConverterSampleRateConverterComplexity_MinimumPhase KAudioConverterSampleRateConverterComplexity = 'm'<<24 | 'i'<<16 | 'n'<<8 | 'p' // 'minp' // KAudioConverterSampleRateConverterComplexity_Normal: Specifies the normal-complexity sample rate conversion algorithm. KAudioConverterSampleRateConverterComplexity_Normal KAudioConverterSampleRateConverterComplexity = 'n'<<24 | 'o'<<16 | 'r'<<8 | 'm' // 'norm' )
func (KAudioConverterSampleRateConverterComplexity) String ¶
func (e KAudioConverterSampleRateConverterComplexity) String() string
type KAudioDecoderComponentType ¶
type KAudioDecoderComponentType uint32
const ( // KAudioDecoderComponentTypeValue: A codec that translates data in some other format into linear PCM. KAudioDecoderComponentTypeValue KAudioDecoderComponentType = 'a'<<24 | 'd'<<16 | 'e'<<8 | 'c' // 'adec' // KAudioEncoderComponentType: A codec that translates linear PCM data into some other format KAudioEncoderComponentType KAudioDecoderComponentType = 'a'<<24 | 'e'<<16 | 'n'<<8 | 'c' // 'aenc' KAudioUnityCodecComponentType KAudioDecoderComponentType = 'a'<<24 | 'c'<<16 | 'd'<<8 | 'c' // 'acdc' )
func (KAudioDecoderComponentType) String ¶
func (e KAudioDecoderComponentType) String() string
type KAudioFileAIFFType ¶
type KAudioFileAIFFType uint32
const ( // KAudioFile3GP2Type: A 3GPP2 file, suitable for video content on CDMA mobile phones. KAudioFile3GP2Type KAudioFileAIFFType = '3'<<24 | 'g'<<16 | 'p'<<8 | '2' // '3gp2' // KAudioFile3GPType: A 3GPP file, suitable for video content on GSM mobile phones. KAudioFile3GPType KAudioFileAIFFType = '3'<<24 | 'g'<<16 | 'p'<<8 | 'p' // '3gpp' // KAudioFileAAC_ADTSType: An Advanced Audio Coding (AAC) Audio Data Transport Stream (ADTS) file. KAudioFileAAC_ADTSType KAudioFileAIFFType = 'a'<<24 | 'd'<<16 | 't'<<8 | 's' // 'adts' // KAudioFileAC3Type: An AC-3 file. KAudioFileAC3Type KAudioFileAIFFType = 'a'<<24 | 'c'<<16 | '-'<<8 | '3' // 'ac-3' // KAudioFileAIFCType: An Audio Interchange File Format Compressed (AIFF-C) file. KAudioFileAIFCType KAudioFileAIFFType = 'A'<<24 | 'I'<<16 | 'F'<<8 | 'C' // 'AIFC' // KAudioFileAIFFTypeValue: An Audio Interchange File Format (AIFF) file. KAudioFileAIFFTypeValue KAudioFileAIFFType = 'A'<<24 | 'I'<<16 | 'F'<<8 | 'F' // 'AIFF' // KAudioFileAMRType: An AMR (Adaptive Multi-Rate) file suitable for compressed speech. KAudioFileAMRType KAudioFileAIFFType = 'a'<<24 | 'm'<<16 | 'r'<<8 | 'f' // 'amrf' KAudioFileBW64Type KAudioFileAIFFType = 'B'<<24 | 'W'<<16 | '6'<<8 | '4' // 'BW64' // KAudioFileCAFType: A Core Audio File Format file. KAudioFileCAFType KAudioFileAIFFType = 'c'<<24 | 'a'<<16 | 'f'<<8 | 'f' // 'caff' KAudioFileFLACType KAudioFileAIFFType = 'f'<<24 | 'l'<<16 | 'a'<<8 | 'c' // 'flac' KAudioFileLATMInLOASType KAudioFileAIFFType = 'l'<<24 | 'o'<<16 | 'a'<<8 | 's' // 'loas' // KAudioFileM4AType: An M4A file. KAudioFileM4AType KAudioFileAIFFType = 'm'<<24 | '4'<<16 | 'a'<<8 | 'f' // 'm4af' KAudioFileM4BType KAudioFileAIFFType = 'm'<<24 | '4'<<16 | 'b'<<8 | 'f' // 'm4bf' // KAudioFileMP1Type: An MPEG Audio Layer 1 (`XCUIElementTypeMp1`) file. KAudioFileMP1Type KAudioFileAIFFType = 'M'<<24 | 'P'<<16 | 'G'<<8 | '1' // 'MPG1' // KAudioFileMP2Type: An MPEG Audio Layer 2 (`XCUIElementTypeMp2`) file. KAudioFileMP2Type KAudioFileAIFFType = 'M'<<24 | 'P'<<16 | 'G'<<8 | '2' // 'MPG2' // KAudioFileMP3Type: An MPEG Audio Layer 3 (`XCUIElementTypeMp3`) file. KAudioFileMP3Type KAudioFileAIFFType = 'M'<<24 | 'P'<<16 | 'G'<<8 | '3' // 'MPG3' // KAudioFileMPEG4Type: An MPEG 4 file. KAudioFileMPEG4Type KAudioFileAIFFType = 'm'<<24 | 'p'<<16 | '4'<<8 | 'f' // 'mp4f' // KAudioFileNextType: A NeXT or Sun Microsystems file. KAudioFileNextType KAudioFileAIFFType = 'N'<<24 | 'e'<<16 | 'X'<<8 | 'T' // 'NeXT' KAudioFileRF64Type KAudioFileAIFFType = 'R'<<24 | 'F'<<16 | '6'<<8 | '4' // 'RF64' // KAudioFileSoundDesigner2Type: A Sound Designer II file. KAudioFileSoundDesigner2Type KAudioFileAIFFType = 'S'<<24 | 'd'<<16 | '2'<<8 | 'f' // 'Sd2f' // KAudioFileWAVEType: A Microsoft WAVE file. KAudioFileWAVEType KAudioFileAIFFType = 'W'<<24 | 'A'<<16 | 'V'<<8 | 'E' // 'WAVE' KAudioFileWave64Type KAudioFileAIFFType = 'W'<<24 | '6'<<16 | '4'<<8 | 'f' // 'W64f' )
func (KAudioFileAIFFType) String ¶
func (e KAudioFileAIFFType) String() string
type KAudioFileComponent ¶
type KAudioFileComponent uint32
const ( KAudioFileComponent_AvailableFormatIDs KAudioFileComponent = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'd' // 'fmid' KAudioFileComponent_AvailableStreamDescriptionsForFormat KAudioFileComponent = 's'<<24 | 'd'<<16 | 'i'<<8 | 'd' // 'sdid' KAudioFileComponent_CanRead KAudioFileComponent = 'c'<<24 | 'n'<<16 | 'r'<<8 | 'd' // 'cnrd' KAudioFileComponent_CanWrite KAudioFileComponent = 'c'<<24 | 'n'<<16 | 'w'<<8 | 'r' // 'cnwr' KAudioFileComponent_ExtensionsForType KAudioFileComponent = 'f'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'fext' KAudioFileComponent_FastDispatchTable KAudioFileComponent = 'f'<<24 | 'd'<<16 | 'f'<<8 | 't' // 'fdft' KAudioFileComponent_FileTypeName KAudioFileComponent = 'f'<<24 | 't'<<16 | 'n'<<8 | 'm' // 'ftnm' KAudioFileComponent_HFSTypeCodesForType KAudioFileComponent = 'f'<<24 | 'h'<<16 | 'f'<<8 | 's' // 'fhfs' KAudioFileComponent_MIMETypesForType KAudioFileComponent = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'm' // 'fmim' KAudioFileComponent_UTIsForType KAudioFileComponent = 'f'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'futi' )
func (KAudioFileComponent) String ¶
func (e KAudioFileComponent) String() string
type KAudioFileCreateSelect ¶
type KAudioFileCreateSelect uint32
const ( KAudioFileCloseSelect KAudioFileCreateSelect = 0x6 KAudioFileCountUserDataSelect KAudioFileCreateSelect = 0x14 KAudioFileCreateSelectValue KAudioFileCreateSelect = 0x1 KAudioFileCreateURLSelect KAudioFileCreateSelect = 0x19 KAudioFileDataIsThisFormatSelect KAudioFileCreateSelect = 0x11 KAudioFileExtensionIsThisFormatSelect KAudioFileCreateSelect = 0xf KAudioFileFileDataIsThisFormatSelect KAudioFileCreateSelect = 0x1b KAudioFileFileIsThisFormatSelect KAudioFileCreateSelect = 0x10 KAudioFileGetGlobalInfoSelect KAudioFileCreateSelect = 0x13 KAudioFileGetGlobalInfoSizeSelect KAudioFileCreateSelect = 0x12 KAudioFileGetPropertyInfoSelect KAudioFileCreateSelect = 0xc KAudioFileGetPropertySelect KAudioFileCreateSelect = 0xd KAudioFileGetUserDataAtOffsetSelect KAudioFileCreateSelect = 0x1e KAudioFileGetUserDataSelect KAudioFileCreateSelect = 0x16 KAudioFileGetUserDataSize64Select KAudioFileCreateSelect = 0x1d KAudioFileGetUserDataSizeSelect KAudioFileCreateSelect = 0x15 KAudioFileInitializeSelect KAudioFileCreateSelect = 0x3 KAudioFileInitializeWithCallbacksSelect KAudioFileCreateSelect = 0x5 KAudioFileOpenSelect KAudioFileCreateSelect = 0x2 KAudioFileOpenURLSelect KAudioFileCreateSelect = 0x1a KAudioFileOpenWithCallbacksSelect KAudioFileCreateSelect = 0x4 KAudioFileOptimizeSelect KAudioFileCreateSelect = 0x7 KAudioFileReadBytesSelect KAudioFileCreateSelect = 0x8 KAudioFileReadPacketDataSelect KAudioFileCreateSelect = 0x1c KAudioFileReadPacketsSelect KAudioFileCreateSelect = 0xa KAudioFileRemoveUserDataSelect KAudioFileCreateSelect = 0x18 KAudioFileSetPropertySelect KAudioFileCreateSelect = 0xe KAudioFileSetUserDataSelect KAudioFileCreateSelect = 0x17 KAudioFileWriteBytesSelect KAudioFileCreateSelect = 0x9 KAudioFileWritePacketsSelect KAudioFileCreateSelect = 0xb )
func (KAudioFileCreateSelect) String ¶
func (e KAudioFileCreateSelect) String() string
type KAudioFileGlobalInfo ¶
type KAudioFileGlobalInfo uint32
const ( // KAudioFileGlobalInfo_AllExtensions: A [CFArray] of [CFStrings] containing all recognized file extensions. KAudioFileGlobalInfo_AllExtensions KAudioFileGlobalInfo = 'a'<<24 | 'l'<<16 | 'x'<<8 | 't' // 'alxt' // KAudioFileGlobalInfo_AllHFSTypeCodes: An array of HFS type codes containing all recognized HFS type codes. KAudioFileGlobalInfo_AllHFSTypeCodes KAudioFileGlobalInfo = 'a'<<24 | 'h'<<16 | 'f'<<8 | 's' // 'ahfs' // KAudioFileGlobalInfo_AllMIMETypes: A [CFArray] of CF strings of all MIME types are recognized by Audio File Services. KAudioFileGlobalInfo_AllMIMETypes KAudioFileGlobalInfo = 'a'<<24 | 'm'<<16 | 'i'<<8 | 'm' // 'amim' // KAudioFileGlobalInfo_AllUTIs: A [CFArray] of [CFString] of all UTIs (Universal Type Identifiers) recognized by Audio File Services. KAudioFileGlobalInfo_AllUTIs KAudioFileGlobalInfo = 'a'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'auti' // KAudioFileGlobalInfo_AvailableFormatIDs: An array of format IDs for formats that can be read. KAudioFileGlobalInfo_AvailableFormatIDs KAudioFileGlobalInfo = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'd' // 'fmid' // KAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat: An array of audio stream basic description structures, which contain all the formats for a particular file type and format ID. KAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat KAudioFileGlobalInfo = 's'<<24 | 'd'<<16 | 'i'<<8 | 'd' // 'sdid' // KAudioFileGlobalInfo_ExtensionsForType: A [CFArray] of CF strings containing the recognized file extensions for a specified type. KAudioFileGlobalInfo_ExtensionsForType KAudioFileGlobalInfo = 'f'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'fext' // KAudioFileGlobalInfo_FileTypeName: The name for the file type. KAudioFileGlobalInfo_FileTypeName KAudioFileGlobalInfo = 'f'<<24 | 't'<<16 | 'n'<<8 | 'm' // 'ftnm' // KAudioFileGlobalInfo_HFSTypeCodesForType: An array of HFS type codes corresponding to a specified file type. KAudioFileGlobalInfo_HFSTypeCodesForType KAudioFileGlobalInfo = 'f'<<24 | 'h'<<16 | 'f'<<8 | 's' // 'fhfs' // KAudioFileGlobalInfo_MIMETypesForType: A [CFArray] of [CFString] of all MIME types recognized by a specified file type. KAudioFileGlobalInfo_MIMETypesForType KAudioFileGlobalInfo = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'm' // 'fmim' // KAudioFileGlobalInfo_ReadableTypes: An array of [UInt32] values containing the file types (such as AIFF, WAVE, and so forth) that can be opened for reading. KAudioFileGlobalInfo_ReadableTypes KAudioFileGlobalInfo = 'a'<<24 | 'f'<<16 | 'r'<<8 | 'f' // 'afrf' // KAudioFileGlobalInfo_TypesForExtension: An array of all audio file type IDs that support a specified filename extension. KAudioFileGlobalInfo_TypesForExtension KAudioFileGlobalInfo = 't'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'text' // KAudioFileGlobalInfo_TypesForHFSTypeCode: An array of all audio file type IDs that support a specified [HFSTypeCode]. KAudioFileGlobalInfo_TypesForHFSTypeCode KAudioFileGlobalInfo = 't'<<24 | 'h'<<16 | 'f'<<8 | 's' // 'thfs' // KAudioFileGlobalInfo_TypesForMIMEType: An array of all audio file type IDs that support a specified MIME type. KAudioFileGlobalInfo_TypesForMIMEType KAudioFileGlobalInfo = 't'<<24 | 'm'<<16 | 'i'<<8 | 'm' // 'tmim' // KAudioFileGlobalInfo_TypesForUTI: An array of all audio file type IDs that support a specified UTI. KAudioFileGlobalInfo_TypesForUTI KAudioFileGlobalInfo = 't'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'tuti' // KAudioFileGlobalInfo_UTIsForType: A [CFArray] of [CFString] of all Universal Type Identifiers recognized by a specified file type. KAudioFileGlobalInfo_UTIsForType KAudioFileGlobalInfo = 'f'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'futi' // KAudioFileGlobalInfo_WritableTypes: An array of [UInt32] values containing the file types (such as AIFF, WAVE, and so forth) that can be opened for writing. KAudioFileGlobalInfo_WritableTypes KAudioFileGlobalInfo = 'a'<<24 | 'f'<<16 | 'w'<<8 | 'f' // 'afwf' )
func (KAudioFileGlobalInfo) String ¶
func (e KAudioFileGlobalInfo) String() string
type KAudioFileLoopDirection ¶
type KAudioFileLoopDirection uint32
const ( // KAudioFileLoopDirection_Backward: Play the segment backward. KAudioFileLoopDirection_Backward KAudioFileLoopDirection = 3 // KAudioFileLoopDirection_Forward: Play the segment forward. KAudioFileLoopDirection_Forward KAudioFileLoopDirection = 1 // KAudioFileLoopDirection_ForwardAndBackward: Play the segment forward and backward. KAudioFileLoopDirection_ForwardAndBackward KAudioFileLoopDirection = 2 // KAudioFileLoopDirection_NoLooping: The segment is not looped. KAudioFileLoopDirection_NoLooping KAudioFileLoopDirection = 0 )
func (KAudioFileLoopDirection) String ¶
func (e KAudioFileLoopDirection) String() string
type KAudioFileProperty ¶
type KAudioFileProperty uint32
const ( // KAudioFilePropertyAlbumArtwork: An object containing the image data for the album artwork associated with an audio file. KAudioFilePropertyAlbumArtwork KAudioFileProperty = 'a'<<24 | 'a'<<16 | 'r'<<8 | 't' // 'aart' // KAudioFilePropertyAudioDataByteCount: Indicates the number of bytes of audio data in the designated file. KAudioFilePropertyAudioDataByteCount KAudioFileProperty = 'b'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'bcnt' // KAudioFilePropertyAudioDataPacketCount: Indicates the number of packets of audio data in the designated file. KAudioFilePropertyAudioDataPacketCount KAudioFileProperty = 'p'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'pcnt' KAudioFilePropertyAudioTrackCount KAudioFileProperty = 'a'<<24 | 't'<<16 | 'c'<<8 | 't' // 'atct' // KAudioFilePropertyBitRate: The actual bit rate (number of audio data bits in the file divided by the duration of the file) for some file types, and the nominal bit rate (which bit rate the encoder was set to) for others. KAudioFilePropertyBitRate KAudioFileProperty = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat' // KAudioFilePropertyByteToPacket: Passes an audio byte packet translation structure with the `mByte` field filled out and returns the `mPacket` and `mByteOffsetInPacket` fields. KAudioFilePropertyByteToPacket KAudioFileProperty = 'b'<<24 | 'y'<<16 | 'p'<<8 | 'k' // 'bypk' // KAudioFilePropertyChannelLayout: An audio channel layout structure. KAudioFilePropertyChannelLayout KAudioFileProperty = 'c'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'cmap' // KAudioFilePropertyChunkIDs: An array of four-character codes for each kind of chunk in the file. KAudioFilePropertyChunkIDs KAudioFileProperty = 'c'<<24 | 'h'<<16 | 'i'<<8 | 'd' // 'chid' // KAudioFilePropertyDataFormat: An audio stream basic description containing the format of the audio data. KAudioFilePropertyDataFormat KAudioFileProperty = 'd'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'dfmt' // KAudioFilePropertyDataFormatName: This constant is deprecated in macOS 10.5 and later. KAudioFilePropertyDataFormatName KAudioFileProperty = 'f'<<24 | 'n'<<16 | 'm'<<8 | 'e' // 'fnme' // KAudioFilePropertyDataOffset: Indicates the byte offset in the file of the designated audio data. KAudioFilePropertyDataOffset KAudioFileProperty = 'd'<<24 | 'o'<<16 | 'f'<<8 | 'f' // 'doff' // KAudioFilePropertyDeferSizeUpdates: The default value (`0`) always updates header. KAudioFilePropertyDeferSizeUpdates KAudioFileProperty = 'd'<<24 | 's'<<16 | 'z'<<8 | 'u' // 'dszu' // KAudioFilePropertyEstimatedDuration: An estimated duration in seconds. KAudioFilePropertyEstimatedDuration KAudioFileProperty = 'e'<<24 | 'd'<<16 | 'u'<<8 | 'r' // 'edur' // KAudioFilePropertyFileFormat: The format of the audio data file. KAudioFilePropertyFileFormat KAudioFileProperty = 'f'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ffmt' // KAudioFilePropertyFormatList: To support formats such as AAC SBR in which an encoded data stream can be decoded to multiple destination formats, this property’s value is an array of audio format list item values (declared in `AudioFormat.H()`) of those formats. KAudioFilePropertyFormatList KAudioFileProperty = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst' // KAudioFilePropertyFrameToPacket: Passes an audio frame packet translation structure with the `mFrame` field filled out and returns the `mPacket` and `mFrameOffsetInPacket` fields. KAudioFilePropertyFrameToPacket KAudioFileProperty = 'f'<<24 | 'r'<<16 | 'p'<<8 | 'k' // 'frpk' // KAudioFilePropertyID3Tag: A `void*` value pointing to memory set up by your application to contain a fully formatted ID3 tag. KAudioFilePropertyID3Tag KAudioFileProperty = 'i'<<24 | 'd'<<16 | '3'<<8 | 't' // 'id3t' KAudioFilePropertyID3TagOffset KAudioFileProperty = 'i'<<24 | 'd'<<16 | '3'<<8 | 'o' // 'id3o' // KAudioFilePropertyInfoDictionary: A CF Dictionary with information about the data in the file. KAudioFilePropertyInfoDictionary KAudioFileProperty = 'i'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'info' // KAudioFilePropertyIsOptimized: Indicates whether a designated audio file has been optimized, that is, ready to start having sound data written to it. KAudioFilePropertyIsOptimized KAudioFileProperty = 'o'<<24 | 'p'<<16 | 't'<<8 | 'm' // 'optm' // KAudioFilePropertyMagicCookieData: A pointer to memory set up by the caller. KAudioFilePropertyMagicCookieData KAudioFileProperty = 'm'<<24 | 'g'<<16 | 'i'<<8 | 'c' // 'mgic' // KAudioFilePropertyMarkerList: A list of audio file markers defined in the file. KAudioFilePropertyMarkerList KAudioFileProperty = 'm'<<24 | 'k'<<16 | 'l'<<8 | 's' // 'mkls' // KAudioFilePropertyMaximumPacketSize: Indicates the maximum size of a packet for the data in the designated file. KAudioFilePropertyMaximumPacketSize KAudioFileProperty = 'p'<<24 | 's'<<16 | 'z'<<8 | 'e' // 'psze' KAudioFilePropertyNextIndependentPacket KAudioFileProperty = 'n'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'nind' KAudioFilePropertyPacketRangeByteCountUpperBound KAudioFileProperty = 'p'<<24 | 'r'<<16 | 'u'<<8 | 'b' // 'prub' // KAudioFilePropertyPacketSizeUpperBound: The theoretical maximum packet size in the file. KAudioFilePropertyPacketSizeUpperBound KAudioFileProperty = 'p'<<24 | 'k'<<16 | 'u'<<8 | 'b' // 'pkub' // KAudioFilePropertyPacketTableInfo: Gets or sets an audio file packet table information structure for its supporting file types. KAudioFilePropertyPacketTableInfo KAudioFileProperty = 'p'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'pnfo' // KAudioFilePropertyPacketToByte: Passes an audio byte packet translation structure with the `mPacket` field filled out and returns the `mByte` field. KAudioFilePropertyPacketToByte KAudioFileProperty = 'p'<<24 | 'k'<<16 | 'b'<<8 | 'y' // 'pkby' KAudioFilePropertyPacketToDependencyInfo KAudioFileProperty = 'p'<<24 | 'k'<<16 | 'd'<<8 | 'p' // 'pkdp' // KAudioFilePropertyPacketToFrame: Passes an audio frame packet translation structure with the `mPacket` field filled out and returns the `mFrame` field. KAudioFilePropertyPacketToFrame KAudioFileProperty = 'p'<<24 | 'k'<<16 | 'f'<<8 | 'r' // 'pkfr' KAudioFilePropertyPacketToRollDistance KAudioFileProperty = 'p'<<24 | 'k'<<16 | 'r'<<8 | 'l' // 'pkrl' KAudioFilePropertyPreviousIndependentPacket KAudioFileProperty = 'p'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'pind' // KAudioFilePropertyRegionList: The list of audio file region values defined in the file. KAudioFilePropertyRegionList KAudioFileProperty = 'r'<<24 | 'g'<<16 | 'l'<<8 | 's' // 'rgls' // KAudioFilePropertyReserveDuration: The duration in seconds of the data expected to be written. KAudioFilePropertyReserveDuration KAudioFileProperty = 'r'<<24 | 's'<<16 | 'r'<<8 | 'v' // 'rsrv' KAudioFilePropertyRestrictsRandomAccess KAudioFileProperty = 'r'<<24 | 'r'<<16 | 'a'<<8 | 'p' // 'rrap' // KAudioFilePropertySourceBitDepth: For compressed data, this property’s value is the bit depth of the source, uncompressed audio stream as an [SInt32] value, if known. KAudioFilePropertySourceBitDepth KAudioFileProperty = 's'<<24 | 'b'<<16 | 't'<<8 | 'd' // 'sbtd' KAudioFilePropertyUseAudioTrack KAudioFileProperty = 'u'<<24 | 'a'<<16 | 't'<<8 | 'k' // 'uatk' )
func (KAudioFileProperty) String ¶
func (e KAudioFileProperty) String() string
type KAudioFileStreamError ¶
type KAudioFileStreamError int32
const ( // KAudioFileStreamError_BadPropertySize: The size of the buffer you provided for property data was not correct. KAudioFileStreamError_BadPropertySize KAudioFileStreamError = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' KAudioFileStreamError_DataUnavailable KAudioFileStreamError = 'm'<<24 | 'o'<<16 | 'r'<<8 | 'e' // 'more' // KAudioFileStreamError_DiscontinuityCantRecover: A discontinuity has occurred in the audio data, and Audio File Stream Services cannot recover. KAudioFileStreamError_DiscontinuityCantRecover KAudioFileStreamError = 'd'<<24 | 's'<<16 | 'c'<<8 | '!' // 'dsc!' // KAudioFileStreamError_IllegalOperation: An illegal operation was attempted. KAudioFileStreamError_IllegalOperation KAudioFileStreamError = 'n'<<24 | 'o'<<16 | 'p'<<8 | 'e' // 'nope' // KAudioFileStreamError_InvalidFile: The file is malformed, not a valid instance of an audio file of its type, or not recognized as an audio file. KAudioFileStreamError_InvalidFile KAudioFileStreamError = 'd'<<24 | 't'<<16 | 'a'<<8 | '?' // 'dta?' // KAudioFileStreamError_InvalidPacketOffset: A packet offset was less than `0`, or past the end of the file, or a corrupt packet size was read when building the packet table. KAudioFileStreamError_InvalidPacketOffset KAudioFileStreamError = 'p'<<24 | 'c'<<16 | 'k'<<8 | '?' // 'pck?' // KAudioFileStreamError_NotOptimized: It is not possible to produce output packets because the streamed audio file’s packet table or other defining information is not present or appears after the audio data. KAudioFileStreamError_NotOptimized KAudioFileStreamError = 'o'<<24 | 'p'<<16 | 't'<<8 | 'm' // 'optm' // KAudioFileStreamError_UnspecifiedError: An unspecified error has occurred. KAudioFileStreamError_UnspecifiedError KAudioFileStreamError = 'w'<<24 | 'h'<<16 | 't'<<8 | '?' // 'wht?' // KAudioFileStreamError_UnsupportedDataFormat: The data format is not supported by the specified file type. KAudioFileStreamError_UnsupportedDataFormat KAudioFileStreamError = 'f'<<24 | 'm'<<16 | 't'<<8 | '?' // 'fmt?' // KAudioFileStreamError_UnsupportedFileType: The specified file type is not supported. KAudioFileStreamError_UnsupportedFileType KAudioFileStreamError = 't'<<24 | 'y'<<16 | 'p'<<8 | '?' // 'typ?' // KAudioFileStreamError_UnsupportedProperty: The property is not supported. KAudioFileStreamError_UnsupportedProperty KAudioFileStreamError = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?' // KAudioFileStreamError_ValueUnknown: The property value is not present in this file before the audio data. KAudioFileStreamError_ValueUnknown KAudioFileStreamError = 'u'<<24 | 'n'<<16 | 'k'<<8 | '?' // 'unk?' )
func (KAudioFileStreamError) String ¶
func (e KAudioFileStreamError) String() string
type KAudioFileStreamProperty ¶
type KAudioFileStreamProperty uint32
const ( // KAudioFileStreamProperty_AudioDataByteCount: A [UInt64] value indicating the number of bytes of audio data in the streamed file. KAudioFileStreamProperty_AudioDataByteCount KAudioFileStreamProperty = 'b'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'bcnt' // KAudioFileStreamProperty_AudioDataPacketCount: A [UInt64] value indicating the number of packets of audio data in the streamed file. KAudioFileStreamProperty_AudioDataPacketCount KAudioFileStreamProperty = 'p'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'pcnt' // KAudioFileStreamProperty_AverageBytesPerPacket: A [Float64] value indicating the average bytes per packet. KAudioFileStreamProperty_AverageBytesPerPacket KAudioFileStreamProperty = 'a'<<24 | 'b'<<16 | 'p'<<8 | 'p' // 'abpp' // KAudioFileStreamProperty_BitRate: A [UInt32] value indicating the bit rate of a stream in bits per second. KAudioFileStreamProperty_BitRate KAudioFileStreamProperty = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat' // KAudioFileStreamProperty_ByteToPacket: Obtains the packet number corresponding to a byte number. KAudioFileStreamProperty_ByteToPacket KAudioFileStreamProperty = 'b'<<24 | 'y'<<16 | 'p'<<8 | 'k' // 'bypk' // KAudioFileStreamProperty_ChannelLayout: An [AudioChannelLayout] structure. KAudioFileStreamProperty_ChannelLayout KAudioFileStreamProperty = 'c'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'cmap' // KAudioFileStreamProperty_DataFormat: An [AudioStreamBasicDescription] structure describing the format of the audio data in the stream. KAudioFileStreamProperty_DataFormat KAudioFileStreamProperty = 'd'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'dfmt' // KAudioFileStreamProperty_DataOffset: An [SInt64] value indicating the byte offset in the streamed file at which the audio data starts. KAudioFileStreamProperty_DataOffset KAudioFileStreamProperty = 'd'<<24 | 'o'<<16 | 'f'<<8 | 'f' // 'doff' // KAudioFileStreamProperty_FileFormat: A four-character code that identifies the audio data format. KAudioFileStreamProperty_FileFormat KAudioFileStreamProperty = 'f'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ffmt' // KAudioFileStreamProperty_FormatList: To support formats such as AAC with SBR where an encoded data stream can be decoded to multiple destination formats, this property returns an array of [AudioFormatListItem] structures (declared in `AudioFormat.H()`)—one for each of the destination formats. KAudioFileStreamProperty_FormatList KAudioFileStreamProperty = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst' // KAudioFileStreamProperty_FrameToPacket: Obtains the packet number corresponding to a frame number. KAudioFileStreamProperty_FrameToPacket KAudioFileStreamProperty = 'f'<<24 | 'r'<<16 | 'p'<<8 | 'k' // 'frpk' KAudioFileStreamProperty_InfoDictionary KAudioFileStreamProperty = 'i'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'info' // KAudioFileStreamProperty_MagicCookieData: A pointer (`void *`) to a magic cookie. KAudioFileStreamProperty_MagicCookieData KAudioFileStreamProperty = 'm'<<24 | 'g'<<16 | 'i'<<8 | 'c' // 'mgic' // KAudioFileStreamProperty_MaximumPacketSize: A [UInt32] value indicating the maximum packet size of the data in the streamed file. KAudioFileStreamProperty_MaximumPacketSize KAudioFileStreamProperty = 'p'<<24 | 's'<<16 | 'z'<<8 | 'e' // 'psze' KAudioFileStreamProperty_NextIndependentPacket KAudioFileStreamProperty = 'n'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'nind' // KAudioFileStreamProperty_PacketSizeUpperBound: A [UInt32] value indicating the theoretical maximum packet size in the streamed file. KAudioFileStreamProperty_PacketSizeUpperBound KAudioFileStreamProperty = 'p'<<24 | 'k'<<16 | 'u'<<8 | 'b' // 'pkub' // KAudioFileStreamProperty_PacketTableInfo: An [AudioFilePacketTableInfo] structure. KAudioFileStreamProperty_PacketTableInfo KAudioFileStreamProperty = 'p'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'pnfo' // KAudioFileStreamProperty_PacketToByte: Obtains the byte number corresponding to a packet number. KAudioFileStreamProperty_PacketToByte KAudioFileStreamProperty = 'p'<<24 | 'k'<<16 | 'b'<<8 | 'y' // 'pkby' KAudioFileStreamProperty_PacketToDependencyInfo KAudioFileStreamProperty = 'p'<<24 | 'k'<<16 | 'd'<<8 | 'p' // 'pkdp' // KAudioFileStreamProperty_PacketToFrame: Obtains the frame number corresponding to a packet number. KAudioFileStreamProperty_PacketToFrame KAudioFileStreamProperty = 'p'<<24 | 'k'<<16 | 'f'<<8 | 'r' // 'pkfr' KAudioFileStreamProperty_PacketToRollDistance KAudioFileStreamProperty = 'p'<<24 | 'k'<<16 | 'r'<<8 | 'l' // 'pkrl' KAudioFileStreamProperty_PreviousIndependentPacket KAudioFileStreamProperty = 'p'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'pind' // KAudioFileStreamProperty_ReadyToProducePackets: # Discussion KAudioFileStreamProperty_ReadyToProducePackets KAudioFileStreamProperty = 'r'<<24 | 'e'<<16 | 'd'<<8 | 'y' // 'redy' KAudioFileStreamProperty_RestrictsRandomAccess KAudioFileStreamProperty = 'r'<<24 | 'r'<<16 | 'a'<<8 | 'p' // 'rrap' )
func (KAudioFileStreamProperty) String ¶
func (e KAudioFileStreamProperty) String() string
type KAudioFileUnspecifiedError ¶
type KAudioFileUnspecifiedError int32
const ( // KAudioFileBadPropertySizeError: The size of the property data was not correct. KAudioFileBadPropertySizeError KAudioFileUnspecifiedError = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' // KAudioFileDoesNotAllow64BitDataSizeError: The file offset was too large for the file type. KAudioFileDoesNotAllow64BitDataSizeError KAudioFileUnspecifiedError = 'o'<<24 | 'f'<<16 | 'f'<<8 | '?' // 'off?' // KAudioFileEndOfFileError: End of file. KAudioFileEndOfFileError KAudioFileUnspecifiedError = -39 // KAudioFileFileNotFoundError: File not found. KAudioFileFileNotFoundError KAudioFileUnspecifiedError = -43 // KAudioFileInvalidChunkError: Either the chunk does not exist in the file or it is not supported by the file. KAudioFileInvalidChunkError KAudioFileUnspecifiedError = 'c'<<24 | 'h'<<16 | 'k'<<8 | '?' // 'chk?' // KAudioFileInvalidFileError: The file is malformed, or otherwise not a valid instance of an audio file of its type. KAudioFileInvalidFileError KAudioFileUnspecifiedError = 'd'<<24 | 't'<<16 | 'a'<<8 | '?' // 'dta?' KAudioFileInvalidPacketDependencyError KAudioFileUnspecifiedError = 'd'<<24 | 'e'<<16 | 'p'<<8 | '?' // 'dep?' // KAudioFileInvalidPacketOffsetError: A packet offset was past the end of the file, or not at the end of the file when a VBR format was written, or a corrupt packet size was read when the packet table was built. KAudioFileInvalidPacketOffsetError KAudioFileUnspecifiedError = 'p'<<24 | 'c'<<16 | 'k'<<8 | '?' // 'pck?' // KAudioFileNotOpenError: The file is closed. KAudioFileNotOpenError KAudioFileUnspecifiedError = -38 // KAudioFileNotOptimizedError: The chunks following the audio data chunk are preventing the extension of the audio data chunk. KAudioFileNotOptimizedError KAudioFileUnspecifiedError = 'o'<<24 | 'p'<<16 | 't'<<8 | 'm' // 'optm' // KAudioFileOperationNotSupportedError: The operation cannot be performed. KAudioFileOperationNotSupportedError KAudioFileUnspecifiedError = 0x6f703f3f // KAudioFilePermissionsError: The operation violated the file permissions. KAudioFilePermissionsError KAudioFileUnspecifiedError = 'p'<<24 | 'r'<<16 | 'm'<<8 | '?' // 'prm?' // KAudioFilePositionError: Invalid file position. KAudioFilePositionError KAudioFileUnspecifiedError = -40 // KAudioFileUnspecifiedErrorValue: An unspecified error has occurred. KAudioFileUnspecifiedErrorValue KAudioFileUnspecifiedError = 'w'<<24 | 'h'<<16 | 't'<<8 | '?' // 'wht?' // KAudioFileUnsupportedDataFormatError: The data format is not supported by this file type. KAudioFileUnsupportedDataFormatError KAudioFileUnspecifiedError = 'f'<<24 | 'm'<<16 | 't'<<8 | '?' // 'fmt?' // KAudioFileUnsupportedFileTypeError: The file type is not supported. KAudioFileUnsupportedFileTypeError KAudioFileUnspecifiedError = 't'<<24 | 'y'<<16 | 'p'<<8 | '?' // 'typ?' // KAudioFileUnsupportedPropertyError: The property is not supported. KAudioFileUnsupportedPropertyError KAudioFileUnspecifiedError = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?' )
func (KAudioFileUnspecifiedError) String ¶
func (e KAudioFileUnspecifiedError) String() string
type KAudioFormat ¶
type KAudioFormat int32
const ( KAudioFormatBadPropertySizeError KAudioFormat = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' KAudioFormatBadSpecifierSizeError KAudioFormat = '!'<<24 | 's'<<16 | 'p'<<8 | 'c' // '!spc' // KAudioFormatUnknownFormatError: The specified data format is not a known format. KAudioFormatUnknownFormatError KAudioFormat = '!'<<24 | 'f'<<16 | 'm'<<8 | 't' // '!fmt' // KAudioFormatUnspecifiedError: An unspecified error. KAudioFormatUnspecifiedError KAudioFormat = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what' // KAudioFormatUnsupportedDataFormatError: The playback data format is unsupported (declared in `AudioFormat.H()`). KAudioFormatUnsupportedDataFormatError KAudioFormat = 'f'<<24 | 'm'<<16 | 't'<<8 | '?' // 'fmt?' // KAudioFormatUnsupportedPropertyError: The specified property is not supported. KAudioFormatUnsupportedPropertyError KAudioFormat = 'p'<<24 | 'r'<<16 | 'o'<<8 | 'p' // 'prop' )
func (KAudioFormat) String ¶
func (e KAudioFormat) String() string
type KAudioFormatProperty ¶
type KAudioFormatProperty uint32
const ( // KAudioFormatProperty_ASBDFromESDS: An [AudioStreamBasicDescription] structure for a given elementary stream descriptor (ESDS). KAudioFormatProperty_ASBDFromESDS KAudioFormatProperty = 'e'<<24 | 's'<<16 | 's'<<8 | 'd' // 'essd' // KAudioFormatProperty_ASBDFromMPEGPacket: An [AudioStreamBasicDescription] structure for a given MPEG Packet. KAudioFormatProperty_ASBDFromMPEGPacket KAudioFormatProperty = 'a'<<24 | 'd'<<16 | 'm'<<8 | 'p' // 'admp' KAudioFormatProperty_AreChannelLayoutsEquivalent KAudioFormatProperty = 'c'<<24 | 'h'<<16 | 'e'<<8 | 'q' // 'cheq' KAudioFormatProperty_AvailableDecodeNumberChannels KAudioFormatProperty = 'a'<<24 | 'd'<<16 | 'n'<<8 | 'c' // 'adnc' // KAudioFormatProperty_AvailableEncodeBitRates: An array of [AudioValueRange] structures describing all available bit rates. KAudioFormatProperty_AvailableEncodeBitRates KAudioFormatProperty = 'a'<<24 | 'e'<<16 | 'b'<<8 | 'r' // 'aebr' // KAudioFormatProperty_AvailableEncodeChannelLayoutTags: An array of [AudioChannelLayoutTag] values for the format and number of channels specified. KAudioFormatProperty_AvailableEncodeChannelLayoutTags KAudioFormatProperty = 'a'<<24 | 'e'<<16 | 'c'<<8 | 'l' // 'aecl' // KAudioFormatProperty_AvailableEncodeNumberChannels: An array of [UInt32] values indicating the number of channels that can be encoded. KAudioFormatProperty_AvailableEncodeNumberChannels KAudioFormatProperty = 'a'<<24 | 'v'<<16 | 'n'<<8 | 'c' // 'avnc' // KAudioFormatProperty_AvailableEncodeSampleRates: An array of [AudioValueRange] structures. KAudioFormatProperty_AvailableEncodeSampleRates KAudioFormatProperty = 'a'<<24 | 'e'<<16 | 's'<<8 | 'r' // 'aesr' // KAudioFormatProperty_BalanceFade: An array of coefficients, each a [Float32] value, for applying left/right audio balance and front/back audio fade. KAudioFormatProperty_BalanceFade KAudioFormatProperty = 'b'<<24 | 'a'<<16 | 'l'<<8 | 'f' // 'balf' // KAudioFormatProperty_BitmapForLayoutTag: A bitmap for an [AudioChannelLayoutTag] value. KAudioFormatProperty_BitmapForLayoutTag KAudioFormatProperty = 'b'<<24 | 'm'<<16 | 't'<<8 | 'g' // 'bmtg' // KAudioFormatProperty_ChannelLayoutForBitmap: The channel descriptions for a standard channel layout, KAudioFormatProperty_ChannelLayoutForBitmap KAudioFormatProperty = 'c'<<24 | 'm'<<16 | 'p'<<8 | 'b' // 'cmpb' // KAudioFormatProperty_ChannelLayoutForTag: The channel descriptions for a standard channel layout. KAudioFormatProperty_ChannelLayoutForTag KAudioFormatProperty = 'c'<<24 | 'm'<<16 | 'p'<<8 | 'l' // 'cmpl' // KAudioFormatProperty_ChannelLayoutFromESDS: An [AudioChannelLayout] structure for a given elementary stream descriptor (ESDS). KAudioFormatProperty_ChannelLayoutFromESDS KAudioFormatProperty = 'e'<<24 | 's'<<16 | 'c'<<8 | 'l' // 'escl' KAudioFormatProperty_ChannelLayoutHash KAudioFormatProperty = 'c'<<24 | 'h'<<16 | 'h'<<8 | 'a' // 'chha' // KAudioFormatProperty_ChannelLayoutName: The a name for a particular channel layout. KAudioFormatProperty_ChannelLayoutName KAudioFormatProperty = 'l'<<24 | 'o'<<16 | 'n'<<8 | 'm' // 'lonm' // KAudioFormatProperty_ChannelLayoutSimpleName: A simplified name for channel layout. KAudioFormatProperty_ChannelLayoutSimpleName KAudioFormatProperty = 'l'<<24 | 's'<<16 | 'n'<<8 | 'm' // 'lsnm' // KAudioFormatProperty_ChannelMap: An array of [SInt32] values for reordering input channels. KAudioFormatProperty_ChannelMap KAudioFormatProperty = 'c'<<24 | 'h'<<16 | 'm'<<8 | 'p' // 'chmp' // KAudioFormatProperty_ChannelName: The name for a particular channel. KAudioFormatProperty_ChannelName KAudioFormatProperty = 'c'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'cnam' // KAudioFormatProperty_ChannelShortName: An abbreviated name for a particular channel. KAudioFormatProperty_ChannelShortName KAudioFormatProperty = 'c'<<24 | 's'<<16 | 'n'<<8 | 'm' // 'csnm' // KAudioFormatProperty_DecodeFormatIDs: An array of [UInt32] values representing format identifiers for formats that are valid input formats for a converter. KAudioFormatProperty_DecodeFormatIDs KAudioFormatProperty = 'a'<<24 | 'c'<<16 | 'i'<<8 | 'f' // 'acif' // KAudioFormatProperty_Decoders: An array of [AudioClassDescription] structures for all installed decoders for the specified audio format. KAudioFormatProperty_Decoders KAudioFormatProperty = 'a'<<24 | 'v'<<16 | 'd'<<8 | 'e' // 'avde' // KAudioFormatProperty_EncodeFormatIDs: An array of [UInt32] values representing format identifiers for formats that are valid output formats for a converter. KAudioFormatProperty_EncodeFormatIDs KAudioFormatProperty = 'a'<<24 | 'c'<<16 | 'o'<<8 | 'f' // 'acof' // KAudioFormatProperty_Encoders: An array of [AudioClassDescription] structures for all installed encoders for the specified audio format. KAudioFormatProperty_Encoders KAudioFormatProperty = 'a'<<24 | 'v'<<16 | 'e'<<8 | 'n' // 'aven' // KAudioFormatProperty_FirstPlayableFormatFromList: The index of the first [AudioFormatListItem] that represents an audio format. KAudioFormatProperty_FirstPlayableFormatFromList KAudioFormatProperty = 'f'<<24 | 'p'<<16 | 'f'<<8 | 'l' // 'fpfl' KAudioFormatProperty_FormatEmploysDependentPackets KAudioFormatProperty = 'f'<<24 | 'd'<<16 | 'e'<<8 | 'p' // 'fdep' // KAudioFormatProperty_FormatInfo: General information about a format. KAudioFormatProperty_FormatInfo KAudioFormatProperty = 'f'<<24 | 'm'<<16 | 't'<<8 | 'i' // 'fmti' KAudioFormatProperty_FormatIsEncrypted KAudioFormatProperty = 'c'<<24 | 'r'<<16 | 'y'<<8 | 'p' // 'cryp' // KAudioFormatProperty_FormatIsExternallyFramed: Indicates whether or not a format requires external framing information. KAudioFormatProperty_FormatIsExternallyFramed KAudioFormatProperty = 'f'<<24 | 'e'<<16 | 'x'<<8 | 'f' // 'fexf' // KAudioFormatProperty_FormatIsVBR: Indicates whether or not a format has a variable number of bytes-per-packet. KAudioFormatProperty_FormatIsVBR KAudioFormatProperty = 'f'<<24 | 'v'<<16 | 'b'<<8 | 'r' // 'fvbr' // KAudioFormatProperty_FormatList: A list of structures describing the audio formats. KAudioFormatProperty_FormatList KAudioFormatProperty = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst' // KAudioFormatProperty_FormatName: A name for a given format. KAudioFormatProperty_FormatName KAudioFormatProperty = 'f'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'fnam' // KAudioFormatProperty_ID3TagSize: A [UInt32] value indicating the ID3 tag size. KAudioFormatProperty_ID3TagSize KAudioFormatProperty = 'i'<<24 | 'd'<<16 | '3'<<8 | 's' // 'id3s' // KAudioFormatProperty_ID3TagToDictionary: A [CFDictionary] object containing key/value pairs for the frames in the ID3 tag. KAudioFormatProperty_ID3TagToDictionary KAudioFormatProperty = 'i'<<24 | 'd'<<16 | '3'<<8 | 'd' // 'id3d' // KAudioFormatProperty_MatrixMixMap: A matrix of scaling coefficients for converting audio from one channel map to another in a standard way, if one is known. KAudioFormatProperty_MatrixMixMap KAudioFormatProperty = 'm'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'mmap' // KAudioFormatProperty_NumberOfChannelsForLayout: The number of valid channels. KAudioFormatProperty_NumberOfChannelsForLayout KAudioFormatProperty = 'n'<<24 | 'c'<<16 | 'h'<<8 | 'm' // 'nchm' // KAudioFormatProperty_OutputFormatList: A list of structures describing the audio formats. KAudioFormatProperty_OutputFormatList KAudioFormatProperty = 'o'<<24 | 'f'<<16 | 'l'<<8 | 's' // 'ofls' // KAudioFormatProperty_PanningMatrix: An array of [Float32] values, each representing the audio level of one channel. KAudioFormatProperty_PanningMatrix KAudioFormatProperty = 'p'<<24 | 'a'<<16 | 'n'<<8 | 'm' // 'panm' // KAudioFormatProperty_TagForChannelLayout: An [AudioChannelLayoutTag] value for a layout. KAudioFormatProperty_TagForChannelLayout KAudioFormatProperty = 'c'<<24 | 'm'<<16 | 'p'<<8 | 't' // 'cmpt' // KAudioFormatProperty_TagsForNumberOfChannels: An array of AudioChannelLayoutTag values for the number of channels specified. KAudioFormatProperty_TagsForNumberOfChannels KAudioFormatProperty = 't'<<24 | 'a'<<16 | 'g'<<8 | 'c' // 'tagc' // KAudioFormatProperty_ValidateChannelLayout: The validity of an audio channel layout structure. KAudioFormatProperty_ValidateChannelLayout KAudioFormatProperty = 'v'<<24 | 'a'<<16 | 'c'<<8 | 'l' // 'vacl' )
func (KAudioFormatProperty) String ¶
func (e KAudioFormatProperty) String() string
type KAudioHardwareService ¶
type KAudioHardwareService uint32
const ( KAudioHardwareServiceDeviceProperty_VirtualMainBalance KAudioHardwareService = 'v'<<24 | 'm'<<16 | 'b'<<8 | 'c' // 'vmbc' KAudioHardwareServiceDeviceProperty_VirtualMainVolume KAudioHardwareService = 'v'<<24 | 'm'<<16 | 'v'<<8 | 'c' // 'vmvc' // KAudioHardwareServiceProperty_ServiceRestarted: Used, with a HAL audio object property listener callback, as a flag that indicates a hardware service restart. KAudioHardwareServiceProperty_ServiceRestarted KAudioHardwareService = 's'<<24 | 'r'<<16 | 's'<<8 | 't' // 'srst' // Deprecated. KAudioHardwareServiceDeviceProperty_VirtualMasterBalance KAudioHardwareService = 'v'<<24 | 'm'<<16 | 'b'<<8 | 'c' // 'vmbc' // Deprecated. KAudioHardwareServiceDeviceProperty_VirtualMasterVolume KAudioHardwareService = 'v'<<24 | 'm'<<16 | 'v'<<8 | 'c' // 'vmvc' )
func (KAudioHardwareService) String ¶
func (e KAudioHardwareService) String() string
type KAudioOutputUnit ¶
type KAudioOutputUnit uint32
const ( // KAudioOutputUnitRange: The start of the numerical range for I/O audio unit function selectors. KAudioOutputUnitRange KAudioOutputUnit = 0x200 // KAudioOutputUnitStartSelect: Used by the system to start an I/O audio unit when you call the AudioOutputUnitStart(_:) function. KAudioOutputUnitStartSelect KAudioOutputUnit = 0x201 // KAudioOutputUnitStopSelect: Used by the system to stop an I/O audio unit when you call the AudioOutputUnitStop(_:) function. KAudioOutputUnitStopSelect KAudioOutputUnit = 0x202 )
func (KAudioOutputUnit) String ¶
func (e KAudioOutputUnit) String() string
type KAudioQueue ¶
type KAudioQueue uint32
const ( // KAudioQueueDeviceProperty_NumberChannels: Value is a read-only [UInt32] value representing the number of channels in the audio hardware device associated with an audio queue. KAudioQueueDeviceProperty_NumberChannels KAudioQueue = 'a'<<24 | 'q'<<16 | 'd'<<8 | 'c' // 'aqdc' // KAudioQueueDeviceProperty_SampleRate: Value is a read-only [Float64] value representing the sampling rate of the audio hardware device associated with an audio queue. KAudioQueueDeviceProperty_SampleRate KAudioQueue = 'a'<<24 | 'q'<<16 | 's'<<8 | 'r' // 'aqsr' // KAudioQueueProperty_ChannelLayout: Describes an audio queue channel layout. KAudioQueueProperty_ChannelLayout KAudioQueue = 'a'<<24 | 'q'<<16 | 'c'<<8 | 'l' // 'aqcl' // KAudioQueueProperty_ConverterError: Value is a read-only [UInt32] value that indicates the most recent error (if any) encountered by the audio queue’s internal encoding/decoding process. KAudioQueueProperty_ConverterError KAudioQueue = 'q'<<24 | 'c'<<16 | 'v'<<8 | 'e' // 'qcve' // KAudioQueueProperty_CurrentDevice: The unique identifier (UID) of the audio hardware device. KAudioQueueProperty_CurrentDevice KAudioQueue = 'a'<<24 | 'q'<<16 | 'c'<<8 | 'd' // 'aqcd' // KAudioQueueProperty_CurrentLevelMeter: A read-only array of level meter status structures. KAudioQueueProperty_CurrentLevelMeter KAudioQueue = 'a'<<24 | 'q'<<16 | 'm'<<8 | 'v' // 'aqmv' // KAudioQueueProperty_CurrentLevelMeterDB: Value is a read-only array of AudioQueueLevelMeterState structures, one array element per audio channel. KAudioQueueProperty_CurrentLevelMeterDB KAudioQueue = 'a'<<24 | 'q'<<16 | 'm'<<8 | 'd' // 'aqmd' // KAudioQueueProperty_DecodeBufferSizeFrames: Value is a read/write [UInt32] value that is the size of the buffer into which a playback (output) audio queue decodes buffers. KAudioQueueProperty_DecodeBufferSizeFrames KAudioQueue = 'd'<<24 | 'c'<<16 | 'b'<<8 | 'f' // 'dcbf' // KAudioQueueProperty_EnableLevelMetering: Value is a read/write [UInt32] value that indicates whether audio level metering is enabled for an audio queue. KAudioQueueProperty_EnableLevelMetering KAudioQueue = 'a'<<24 | 'q'<<16 | 'm'<<8 | 'e' // 'aqme' KAudioQueueProperty_EnableTimePitch KAudioQueue = 'q'<<24 | '_'<<16 | 't'<<8 | 'p' // 'q_tp' KAudioQueueProperty_IntendedSpatialExperience KAudioQueue = 'i'<<24 | 's'<<16 | 'e'<<8 | 'o' // 'iseo' // KAudioQueueProperty_IsRunning: Value is a read-only [UInt32] value indicating whether or not the audio queue is running. KAudioQueueProperty_IsRunning KAudioQueue = 'a'<<24 | 'q'<<16 | 'r'<<8 | 'n' // 'aqrn' // KAudioQueueProperty_MagicCookie: Value is a read/write void pointer to a block of memory, which you set up, containing an audio format magic cookie. KAudioQueueProperty_MagicCookie KAudioQueue = 'a'<<24 | 'q'<<16 | 'm'<<8 | 'c' // 'aqmc' // KAudioQueueProperty_MaximumOutputPacketSize: Value is a read-only[UInt32] value that is the size, in bytes, of the largest single packet of data in the output format. KAudioQueueProperty_MaximumOutputPacketSize KAudioQueue = 'x'<<24 | 'o'<<16 | 'p'<<8 | 's' // 'xops' // KAudioQueueProperty_StreamDescription: An audio queue’s data format. KAudioQueueProperty_StreamDescription KAudioQueue = 'a'<<24 | 'q'<<16 | 'f'<<8 | 't' // 'aqft' KAudioQueueProperty_TimePitchAlgorithm KAudioQueue = 'q'<<24 | 't'<<16 | 'p'<<8 | 'a' // 'qtpa' KAudioQueueProperty_TimePitchBypass KAudioQueue = 'q'<<24 | 't'<<16 | 'p'<<8 | 'b' // 'qtpb' )
func (KAudioQueue) String ¶
func (e KAudioQueue) String() string
type KAudioQueueErr ¶
type KAudioQueueErr int32
const ( // KAudioQueueErr_BufferEmpty: The audio queue buffer is empty (that is, the `mAudioDataByteSize` field = `0`). KAudioQueueErr_BufferEmpty KAudioQueueErr = -66686 KAudioQueueErr_BufferEnqueuedTwice KAudioQueueErr = -66666 // KAudioQueueErr_BufferInQueue: The audio queue buffer cannot be disposed of when it is enqueued. KAudioQueueErr_BufferInQueue KAudioQueueErr = -66679 // KAudioQueueErr_CannotStart: The audio queue has encountered a problem and cannot start. KAudioQueueErr_CannotStart KAudioQueueErr = -66681 KAudioQueueErr_CannotStartYet KAudioQueueErr = -66665 // KAudioQueueErr_CodecNotFound: The requested codec was not found. KAudioQueueErr_CodecNotFound KAudioQueueErr = -66673 // KAudioQueueErr_DisposalPending: The function cannot act on the audio queue because it is being asynchronously disposed of. KAudioQueueErr_DisposalPending KAudioQueueErr = -66685 // KAudioQueueErr_EnqueueDuringReset: During a call to the AudioQueueReset(_:), AudioQueueStop(_:_:), or AudioQueueDispose(_:_:) functions, the system does not allow you to enqueue buffers. KAudioQueueErr_EnqueueDuringReset KAudioQueueErr = -66632 // KAudioQueueErr_InvalidBuffer: The specified audio queue buffer does not belong to the specified audio queue. KAudioQueueErr_InvalidBuffer KAudioQueueErr = -66687 // KAudioQueueErr_InvalidCodecAccess: The codec could not be accessed. KAudioQueueErr_InvalidCodecAccess KAudioQueueErr = -66672 // KAudioQueueErr_InvalidDevice: The specified audio hardware device could not be located. KAudioQueueErr_InvalidDevice KAudioQueueErr = -66680 // KAudioQueueErr_InvalidOfflineMode: The operation requires the audio queue to be in offline mode but it isn’t, or vice versa. KAudioQueueErr_InvalidOfflineMode KAudioQueueErr = -66626 // KAudioQueueErr_InvalidParameter: The specified parameter ID is invalid. KAudioQueueErr_InvalidParameter KAudioQueueErr = -66682 // KAudioQueueErr_InvalidProperty: The specified property ID is invalid. KAudioQueueErr_InvalidProperty KAudioQueueErr = -66684 // KAudioQueueErr_InvalidPropertySize: The size of the specified property is invalid. KAudioQueueErr_InvalidPropertySize KAudioQueueErr = -66683 // KAudioQueueErr_InvalidPropertyValue: The property value used is not valid. KAudioQueueErr_InvalidPropertyValue KAudioQueueErr = -66675 // KAudioQueueErr_InvalidQueueType: The queue is an input queue but the function can only operate on an output queue, or vice versa. KAudioQueueErr_InvalidQueueType KAudioQueueErr = -66677 // KAudioQueueErr_InvalidRunState: The queue is running but the function can only operate on the queue when it is stopped, or vice versa. KAudioQueueErr_InvalidRunState KAudioQueueErr = -66678 KAudioQueueErr_InvalidTapContext KAudioQueueErr = -66669 KAudioQueueErr_InvalidTapType KAudioQueueErr = -66667 // KAudioQueueErr_Permissions: You do not have the required permissions to call the function. KAudioQueueErr_Permissions KAudioQueueErr = -66676 // KAudioQueueErr_PrimeTimedOut: During a call to the AudioQueuePrime(_:_:_:) function, the audio queue’s audio converter failed to convert the requested number of sample frames. KAudioQueueErr_PrimeTimedOut KAudioQueueErr = -66674 // KAudioQueueErr_QueueInvalidated: In iOS, the audio server has exited, causing the audio queue to become invalid. KAudioQueueErr_QueueInvalidated KAudioQueueErr = -66671 // KAudioQueueErr_RecordUnderrun: During recording, data was lost because there was no enqueued buffer to store it in. KAudioQueueErr_RecordUnderrun KAudioQueueErr = -66668 KAudioQueueErr_TooManyTaps KAudioQueueErr = -66670 )
func (KAudioQueueErr) String ¶
func (e KAudioQueueErr) String() string
type KAudioQueueParam ¶
type KAudioQueueParam uint32
const ( // KAudioQueueParam_Pan: The stereo panning position of a source. KAudioQueueParam_Pan KAudioQueueParam = 13 // KAudioQueueParam_Pitch: The number of cents to pitch-shift the audio queue’s playback, in the range `-2400` through `2400` cents (where 1200 cents corresponds to one musical octave.) KAudioQueueParam_Pitch KAudioQueueParam = 3 // KAudioQueueParam_PlayRate: The playback rate for the audio queue, in the range `0.5` through `2.0`. KAudioQueueParam_PlayRate KAudioQueueParam = 2 // KAudioQueueParam_Volume: The playback volume for the audio queue, ranging from `0.0` through `1.0` on a linear scale. KAudioQueueParam_Volume KAudioQueueParam = 1 // KAudioQueueParam_VolumeRampTime: The number of seconds over which a volume change is ramped. KAudioQueueParam_VolumeRampTime KAudioQueueParam = 4 )
func (KAudioQueueParam) String ¶
func (e KAudioQueueParam) String() string
type KAudioQueueProperty ¶
type KAudioQueueProperty uint32
const (
KAudioQueueProperty_ChannelAssignments KAudioQueueProperty = 'a'<<24 | 'q'<<16 | 'c'<<8 | 'a' // 'aqca'
)
func (KAudioQueueProperty) String ¶
func (e KAudioQueueProperty) String() string
type KAudioQueueTimePitchAlgorithm ¶
type KAudioQueueTimePitchAlgorithm uint32
const ( KAudioQueueTimePitchAlgorithm_Spectral KAudioQueueTimePitchAlgorithm = 's'<<24 | 'p'<<16 | 'e'<<8 | 'c' // 'spec' KAudioQueueTimePitchAlgorithm_TimeDomain KAudioQueueTimePitchAlgorithm = 't'<<24 | 'i'<<16 | 'd'<<8 | 'o' // 'tido' KAudioQueueTimePitchAlgorithm_Varispeed KAudioQueueTimePitchAlgorithm = 'v'<<24 | 's'<<16 | 'p'<<8 | 'd' // 'vspd' )
func (KAudioQueueTimePitchAlgorithm) String ¶
func (e KAudioQueueTimePitchAlgorithm) String() string
type KAudioServices ¶
type KAudioServices int32
const ( // KAudioServicesBadPropertySizeError: The size of the property data was not correct. KAudioServicesBadPropertySizeError KAudioServices = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' // KAudioServicesBadSpecifierSizeError: The size of the specifier data was not correct. KAudioServicesBadSpecifierSizeError KAudioServices = '!'<<24 | 's'<<16 | 'p'<<8 | 'c' // '!spc' // KAudioServicesNoError: No error has occurred. KAudioServicesNoError KAudioServices = 0 // KAudioServicesSystemSoundClientTimedOutError: System sound client message timed out. KAudioServicesSystemSoundClientTimedOutError KAudioServices = -1501 KAudioServicesSystemSoundExceededMaximumDurationError KAudioServices = -1502 // KAudioServicesSystemSoundUnspecifiedError: An unspecified error has occurred. KAudioServicesSystemSoundUnspecifiedError KAudioServices = -1500 // KAudioServicesUnsupportedPropertyError: The property is not supported. KAudioServicesUnsupportedPropertyError KAudioServices = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?' )
func (KAudioServices) String ¶
func (e KAudioServices) String() string
type KAudioServicesProperty ¶
type KAudioServicesProperty uint32
const ( // KAudioServicesPropertyCompletePlaybackIfAppDies: A [UInt32] value, where `1` means that the audio file specified by a system sound passed in the `inSpecifier` parameter should finish playing even if the client application terminates. KAudioServicesPropertyCompletePlaybackIfAppDies KAudioServicesProperty = 'i'<<24 | 'f'<<16 | 'd'<<8 | 'i' // 'ifdi' // KAudioServicesPropertyIsUISound: A [UInt32] value, where `1` means that, for the audio file specified by a system sound passed in the `inSpecifier` parameter, the System Sound server respects the user setting in the Sound Effects preference and is silent when the user turns off sound effects. KAudioServicesPropertyIsUISound KAudioServicesProperty = 'i'<<24 | 's'<<16 | 'u'<<8 | 'i' // 'isui' )
func (KAudioServicesProperty) String ¶
func (e KAudioServicesProperty) String() string
type KAudioSession ¶
type KAudioSession uint32
const ( // KAudioSessionBeginInterruption: Your app’s audio session has just been interrupted, such as by a phone call. KAudioSessionBeginInterruption KAudioSession = 1 // KAudioSessionEndInterruption: The interruption to your app’s audio session has just ended. KAudioSessionEndInterruption KAudioSession = 0 )
func (KAudioSession) String ¶
func (e KAudioSession) String() string
type KAudioSessionMode ¶
type KAudioSessionMode uint32
const ( // KAudioSessionMode_Default: The default mode; used unless you set a mode with the AudioSessionSetProperty(_:_:_:) function. KAudioSessionMode_Default KAudioSessionMode = 'd'<<24 | 'f'<<16 | 'l'<<8 | 't' // 'dflt' KAudioSessionMode_GameChat KAudioSessionMode = 'g'<<24 | 'm'<<16 | 'c'<<8 | 't' // 'gmct' // KAudioSessionMode_Measurement: Specify this mode if your app is performing measurement of incoming audio. KAudioSessionMode_Measurement KAudioSessionMode = 'm'<<24 | 's'<<16 | 'm'<<8 | 't' // 'msmt' // KAudioSessionMode_VideoRecording: Specify this mode if your app is recording a movie. KAudioSessionMode_VideoRecording KAudioSessionMode = 'v'<<24 | 'r'<<16 | 'c'<<8 | 'd' // 'vrcd' // KAudioSessionMode_VoiceChat: Specify this mode if your app is performing two-way voice communication, such as using Voice over Internet Protocol (VoIP). KAudioSessionMode_VoiceChat KAudioSessionMode = 'v'<<24 | 'c'<<16 | 'c'<<8 | 't' // 'vcct' )
func (KAudioSessionMode) String ¶
func (e KAudioSessionMode) String() string
type KAudioSessionNoError ¶
type KAudioSessionNoError uint32
const ( // KAudioServicesNoHardwareError: The audio operation failed because the device has no audio input available. KAudioServicesNoHardwareError KAudioSessionNoError = 'n'<<24 | 'o'<<16 | 'h'<<8 | 'w' // 'nohw' // KAudioSessionAlreadyInitialized: The [AudioSessionInitialize] function was called more than once during the lifetime of your application. KAudioSessionAlreadyInitialized KAudioSessionNoError = 'i'<<24 | 'n'<<16 | 'i'<<8 | 't' // 'init' // KAudioSessionBadPropertySizeError: The size of the audio session property data was not correct. KAudioSessionBadPropertySizeError KAudioSessionNoError = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' // KAudioSessionIncompatibleCategory: The specified audio session category cannot be used for the attempted audio operation. KAudioSessionIncompatibleCategory KAudioSessionNoError = '!'<<24 | 'c'<<16 | 'a'<<8 | 't' // '!cat' // KAudioSessionInitializationError: There was an error during audio session initialization. KAudioSessionInitializationError KAudioSessionNoError = 'i'<<24 | 'n'<<16 | 'i'<<8 | '?' // 'ini?' // KAudioSessionNoCategorySet: The audio operation failed because it requires the audio session to have an explicitly-set category, but none was set. KAudioSessionNoCategorySet KAudioSessionNoError = '?'<<24 | 'c'<<16 | 'a'<<8 | 't' // '?cat' // KAudioSessionNoErrorValue: No error has occurred. KAudioSessionNoErrorValue KAudioSessionNoError = 0 // KAudioSessionNotActiveError: The audio operation failed because your application’s audio session was not active. KAudioSessionNotActiveError KAudioSessionNoError = '!'<<24 | 'a'<<16 | 'c'<<8 | 't' // '!act' // KAudioSessionNotInitialized: An Audio Session function was called without first initializing the session. KAudioSessionNotInitialized KAudioSessionNoError = '!'<<24 | 'i'<<16 | 'n'<<8 | 'i' // '!ini' // KAudioSessionUnspecifiedError: An unspecified audio session error has occurred. KAudioSessionUnspecifiedError KAudioSessionNoError = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what' // KAudioSessionUnsupportedPropertyError: The audio session property is not supported. KAudioSessionUnsupportedPropertyError KAudioSessionNoError = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?' )
func (KAudioSessionNoError) String ¶
func (e KAudioSessionNoError) String() string
type KAudioSessionOverrideAudioRoute ¶
type KAudioSessionOverrideAudioRoute uint32
const ( // KAudioSessionOverrideAudioRoute_None: Specifies, for the kAudioSessionCategory_PlayAndRecord category, that output audio should go to the receiver. KAudioSessionOverrideAudioRoute_None KAudioSessionOverrideAudioRoute = 0 // KAudioSessionOverrideAudioRoute_Speaker: Specifies, for the kAudioSessionCategory_PlayAndRecord category, that output audio should go to the speaker, not the receiver. KAudioSessionOverrideAudioRoute_Speaker KAudioSessionOverrideAudioRoute = 's'<<24 | 'p'<<16 | 'k'<<8 | 'r' // 'spkr' )
func (KAudioSessionOverrideAudioRoute) String ¶
func (e KAudioSessionOverrideAudioRoute) String() string
type KAudioSessionProperty ¶
type KAudioSessionProperty uint32
const ( // KAudioSessionProperty_AudioCategory: The category for the audio session. KAudioSessionProperty_AudioCategory KAudioSessionProperty = 'a'<<24 | 'c'<<16 | 'a'<<8 | 't' // 'acat' // KAudioSessionProperty_AudioInputAvailable: Indicates if audio input is available (a nonzero value) or not (a value of 0). KAudioSessionProperty_AudioInputAvailable KAudioSessionProperty = 'a'<<24 | 'i'<<16 | 'a'<<8 | 'v' // 'aiav' // KAudioSessionProperty_AudioRouteChange: The reason the audio route changed. KAudioSessionProperty_AudioRouteChange KAudioSessionProperty = 'r'<<24 | 'o'<<16 | 'c'<<8 | 'h' // 'roch' // KAudioSessionProperty_AudioRouteDescription: Information about an audio route. KAudioSessionProperty_AudioRouteDescription KAudioSessionProperty = 'c'<<24 | 'r'<<16 | 'a'<<8 | 'r' // 'crar' // KAudioSessionProperty_CurrentHardwareIOBufferDuration: Indicates the current hardware IO buffer duration, in seconds, as a read-only [Float32] value. KAudioSessionProperty_CurrentHardwareIOBufferDuration KAudioSessionProperty = 'c'<<24 | 'h'<<16 | 'b'<<8 | 'd' // 'chbd' // KAudioSessionProperty_CurrentHardwareInputLatency: Indicates the current hardware input latency, in seconds, as a read-only [Float32] value. KAudioSessionProperty_CurrentHardwareInputLatency KAudioSessionProperty = 'c'<<24 | 'i'<<16 | 'l'<<8 | 't' // 'cilt' // KAudioSessionProperty_CurrentHardwareInputNumberChannels: Indicates the current number of audio hardware input channels. KAudioSessionProperty_CurrentHardwareInputNumberChannels KAudioSessionProperty = 'c'<<24 | 'h'<<16 | 'i'<<8 | 'c' // 'chic' // KAudioSessionProperty_CurrentHardwareOutputLatency: Indicates the current hardware output latency, in seconds, as a read-only [Float32] value. KAudioSessionProperty_CurrentHardwareOutputLatency KAudioSessionProperty = 'c'<<24 | 'o'<<16 | 'l'<<8 | 't' // 'colt' // KAudioSessionProperty_CurrentHardwareOutputNumberChannels: Indicates the current number of audio hardware output channels. KAudioSessionProperty_CurrentHardwareOutputNumberChannels KAudioSessionProperty = 'c'<<24 | 'h'<<16 | 'o'<<8 | 'c' // 'choc' // KAudioSessionProperty_CurrentHardwareOutputVolume: Indicates the current audio output volume as [Float32] value between 0.0 and 1.0. KAudioSessionProperty_CurrentHardwareOutputVolume KAudioSessionProperty = 'c'<<24 | 'h'<<16 | 'o'<<8 | 'v' // 'chov' // KAudioSessionProperty_CurrentHardwareSampleRate: Indicates the current hardware sample rate. KAudioSessionProperty_CurrentHardwareSampleRate KAudioSessionProperty = 'c'<<24 | 'h'<<16 | 's'<<8 | 'r' // 'chsr' // KAudioSessionProperty_InputGainAvailable: A read-only [UInt32] value that indicates whether or not audio input gain adjustment is available, where a nonzero value means adjustment is available. KAudioSessionProperty_InputGainAvailable KAudioSessionProperty = 'i'<<24 | 'g'<<16 | 'a'<<8 | 'v' // 'igav' // KAudioSessionProperty_InputGainScalar: A read/write [Float32] value that indicates the audio input gain setting for the active input source. KAudioSessionProperty_InputGainScalar KAudioSessionProperty = 'i'<<24 | 'g'<<16 | 's'<<8 | 'c' // 'igsc' // KAudioSessionProperty_InputSource: The audio input source. KAudioSessionProperty_InputSource KAudioSessionProperty = 'i'<<24 | 's'<<16 | 'r'<<8 | 'c' // 'isrc' // KAudioSessionProperty_InputSources: Details on the available audio input sources. KAudioSessionProperty_InputSources KAudioSessionProperty = 's'<<24 | 'r'<<16 | 'c'<<8 | 's' // 'srcs' // KAudioSessionProperty_InterruptionType: Indicates the type of an end-interruption event. KAudioSessionProperty_InterruptionType KAudioSessionProperty = 't'<<24 | 'y'<<16 | 'p'<<8 | 'e' // 'type' // KAudioSessionProperty_Mode: A read/write [UIInt32] value that specifies the audio session mode. KAudioSessionProperty_Mode KAudioSessionProperty = 'm'<<24 | 'o'<<16 | 'd'<<8 | 'e' // 'mode' // KAudioSessionProperty_OtherAudioIsPlaying: Indicates whether or not another app (typically, the iPod app) is currently playing audio. KAudioSessionProperty_OtherAudioIsPlaying KAudioSessionProperty = 'o'<<24 | 't'<<16 | 'h'<<8 | 'r' // 'othr' // KAudioSessionProperty_OtherMixableAudioShouldDuck: For audio session categories that allow audio mixing with other apps, specifies whether other audio should be reduced in level when your app produces sound. KAudioSessionProperty_OtherMixableAudioShouldDuck KAudioSessionProperty = 'd'<<24 | 'u'<<16 | 'c'<<8 | 'k' // 'duck' // KAudioSessionProperty_OutputDestination: The audio output destination. KAudioSessionProperty_OutputDestination KAudioSessionProperty = 'o'<<24 | 'd'<<16 | 's'<<8 | 't' // 'odst' // KAudioSessionProperty_OutputDestinations: Details on the available audio output destinations. KAudioSessionProperty_OutputDestinations KAudioSessionProperty = 'd'<<24 | 's'<<16 | 't'<<8 | 's' // 'dsts' // KAudioSessionProperty_OverrideAudioRoute: Specifies whether or not to override the audio session category’s typical audio route. KAudioSessionProperty_OverrideAudioRoute KAudioSessionProperty = 'o'<<24 | 'v'<<16 | 'r'<<8 | 'd' // 'ovrd' // KAudioSessionProperty_OverrideCategoryDefaultToSpeaker: Specifies whether or not to route audio to the speaker (instead of to the receiver) when no other audio route, such as a headset, is connected. KAudioSessionProperty_OverrideCategoryDefaultToSpeaker KAudioSessionProperty = 'c'<<24 | 's'<<16 | 'p'<<8 | 'k' // 'cspk' // KAudioSessionProperty_OverrideCategoryEnableBluetoothInput: Allows a paired Bluetooth device to appear as an available audio input route. KAudioSessionProperty_OverrideCategoryEnableBluetoothInput KAudioSessionProperty = 'c'<<24 | 'b'<<16 | 'l'<<8 | 'u' // 'cblu' // KAudioSessionProperty_OverrideCategoryMixWithOthers: Changes the mixing behavior of the kAudioSessionCategory_MediaPlayback and kAudioSessionCategory_PlayAndRecord audio session categories. KAudioSessionProperty_OverrideCategoryMixWithOthers KAudioSessionProperty = 'c'<<24 | 'm'<<16 | 'i'<<8 | 'x' // 'cmix' // KAudioSessionProperty_PreferredHardwareIOBufferDuration: Your preferred hardware I/O buffer duration in seconds. KAudioSessionProperty_PreferredHardwareIOBufferDuration KAudioSessionProperty = 'i'<<24 | 'o'<<16 | 'b'<<8 | 'd' // 'iobd' // KAudioSessionProperty_PreferredHardwareSampleRate: Your preferred hardware sample rate for the audio session. KAudioSessionProperty_PreferredHardwareSampleRate KAudioSessionProperty = 'h'<<24 | 'w'<<16 | 's'<<8 | 'r' // 'hwsr' // KAudioSessionProperty_ServerDied: Indicates if the audio server has died (indicated by a nonzero [UInt32] value) or is still running (a value of 0). KAudioSessionProperty_ServerDied KAudioSessionProperty = 'd'<<24 | 'i'<<16 | 'e'<<8 | 'd' // 'died' )
func (KAudioSessionProperty) String ¶
func (e KAudioSessionProperty) String() string
type KAudioSessionRouteChangeReason ¶
type KAudioSessionRouteChangeReason uint32
const ( // KAudioSessionRouteChangeReason_CategoryChange: The audio session category has changed. KAudioSessionRouteChangeReason_CategoryChange KAudioSessionRouteChangeReason = 3 // KAudioSessionRouteChangeReason_NewDeviceAvailable: A new audio hardware device became available; for example, a headset was plugged in. KAudioSessionRouteChangeReason_NewDeviceAvailable KAudioSessionRouteChangeReason = 1 // KAudioSessionRouteChangeReason_NoSuitableRouteForCategory: There is no audio hardware route for the audio session category. KAudioSessionRouteChangeReason_NoSuitableRouteForCategory KAudioSessionRouteChangeReason = 7 KAudioSessionRouteChangeReason_OldDeviceUnavailable KAudioSessionRouteChangeReason = 2 // KAudioSessionRouteChangeReason_Override: The audio route has been overridden. KAudioSessionRouteChangeReason_Override KAudioSessionRouteChangeReason = 4 KAudioSessionRouteChangeReason_RouteConfigurationChange KAudioSessionRouteChangeReason = 8 // KAudioSessionRouteChangeReason_Unknown: The audio route changed but the reason is not known. KAudioSessionRouteChangeReason_Unknown KAudioSessionRouteChangeReason = 0 // KAudioSessionRouteChangeReason_WakeFromSleep: The device woke from sleep. KAudioSessionRouteChangeReason_WakeFromSleep KAudioSessionRouteChangeReason = 6 )
func (KAudioSessionRouteChangeReason) String ¶
func (e KAudioSessionRouteChangeReason) String() string
type KAudioToolbox ¶
type KAudioToolbox int32
const ( KAudioToolboxErr_CannotDoInCurrentContext KAudioToolbox = -10863 KAudioToolboxErr_EndOfTrack KAudioToolbox = -10857 KAudioToolboxErr_IllegalTrackDestination KAudioToolbox = -10855 KAudioToolboxErr_InvalidEventType KAudioToolbox = -10853 KAudioToolboxErr_InvalidPlayerState KAudioToolbox = -10852 KAudioToolboxErr_InvalidSequenceType KAudioToolbox = -10846 KAudioToolboxErr_NoSequence KAudioToolbox = -10854 KAudioToolboxErr_StartOfTrack KAudioToolbox = -10856 KAudioToolboxErr_TrackIndexError KAudioToolbox = -10859 KAudioToolboxErr_TrackNotFound KAudioToolbox = -10858 KAudioToolboxError_NoTrackDestination KAudioToolbox = -66720 )
func (KAudioToolbox) String ¶
func (e KAudioToolbox) String() string
type KAudioUnit ¶
type KAudioUnit uint32
const ( // KAudioUnitAddPropertyListenerSelect: Used by the system to register a property listener callback function for an audio unit when you call the AudioUnitAddPropertyListener(_:_:_:_:) function. KAudioUnitAddPropertyListenerSelect KAudioUnit = 0xa KAudioUnitAddRenderNotifySelect KAudioUnit = 0xf KAudioUnitComplexRenderSelect KAudioUnit = 0x13 // KAudioUnitGetParameterSelect: Used by the system to get the current value of an audio unit parameter when you call the AudioUnitGetParameter(_:_:_:_:_:) function. KAudioUnitGetParameterSelect KAudioUnit = 0x6 // KAudioUnitGetPropertyInfoSelect: Used by the system to get property information from an audio unit when you call the AudioUnitGetPropertyInfo(_:_:_:_:_:_:) function. KAudioUnitGetPropertyInfoSelect KAudioUnit = 0x3 KAudioUnitGetPropertySelect KAudioUnit = 0x4 KAudioUnitInitializeSelect KAudioUnit = 0x1 KAudioUnitProcessMultipleSelect KAudioUnit = 0x15 KAudioUnitProcessSelect KAudioUnit = 0x14 KAudioUnitRange KAudioUnit = 0 // KAudioUnitRemovePropertyListenerSelect: Used by the system to unregister a property listener callback function from an audio unit when you call the [AudioUnitRemovePropertyListener] function. KAudioUnitRemovePropertyListenerSelect KAudioUnit = 0xb KAudioUnitRemovePropertyListenerWithUserDataSelect KAudioUnit = 0x12 KAudioUnitRemoveRenderNotifySelect KAudioUnit = 0x10 // KAudioUnitRenderSelect: Used by the system to invoke audio rendering by an audio unit when you call the AudioUnitRender(_:_:_:_:_:_:) function. KAudioUnitRenderSelect KAudioUnit = 0xe // KAudioUnitResetSelect: Used by the system to reset an audio unit when you call the AudioUnitReset(_:_:_:) function. KAudioUnitResetSelect KAudioUnit = 0x9 // KAudioUnitScheduleParametersSelect: Used by the system to schedule an audio unit parameter value change when you call the AudioUnitScheduleParameters(_:_:_:) function. KAudioUnitScheduleParametersSelect KAudioUnit = 0x11 // KAudioUnitSetParameterSelect: Used by the system to set the value of an audio unit parameter when you call the AudioUnitSetParameter(_:_:_:_:_:_:) function. KAudioUnitSetParameterSelect KAudioUnit = 0x7 KAudioUnitSetPropertySelect KAudioUnit = 0x5 // KAudioUnitUninitializeSelect: Used by the system to uninitialize an audio unit when you call the AudioUnitUninitialize(_:) function. KAudioUnitUninitializeSelect KAudioUnit = 0x2 )
func (KAudioUnit) String ¶
func (e KAudioUnit) String() string
type KAudioUnitCarbonView ¶
type KAudioUnitCarbonView uint
const ( KAudioUnitCarbonViewCreateSelect KAudioUnitCarbonView = 0 KAudioUnitCarbonViewRange KAudioUnitCarbonView = 0 KAudioUnitCarbonViewSetEventListenerSelect KAudioUnitCarbonView = 0 )
func (KAudioUnitCarbonView) String ¶
func (e KAudioUnitCarbonView) String() string
type KAudioUnitCarbonViewComponentType ¶
type KAudioUnitCarbonViewComponentType uint
const ( KAUCarbonViewSubType_Generic KAudioUnitCarbonViewComponentType = 0 KAudioUnitCarbonViewComponentTypeValue KAudioUnitCarbonViewComponentType = 0 )
func (KAudioUnitCarbonViewComponentType) String ¶
func (e KAudioUnitCarbonViewComponentType) String() string
type KAudioUnitErr ¶
type KAudioUnitErr int32
const ( KAudioUnitErr_IllegalInstrument KAudioUnitErr = -10873 KAudioUnitErr_InstrumentTypeNotFound KAudioUnitErr = -10872 )
func (KAudioUnitErr) String ¶
func (e KAudioUnitErr) String() string
type KAudioUnitMigrateProperty ¶
type KAudioUnitMigrateProperty uint32
const ( KAudioUnitMigrateProperty_FromPlugin KAudioUnitMigrateProperty = 4000 KAudioUnitMigrateProperty_OldAutomation KAudioUnitMigrateProperty = 4001 )
func (KAudioUnitMigrateProperty) String ¶
func (e KAudioUnitMigrateProperty) String() string
type KAudioUnitOfflineProperty ¶
type KAudioUnitOfflineProperty uint32
const ( KAudioUnitOfflineProperty_InputSize KAudioUnitOfflineProperty = 3020 KAudioUnitOfflineProperty_OutputSize KAudioUnitOfflineProperty = 3021 KAudioUnitOfflineProperty_PreflightName KAudioUnitOfflineProperty = 3024 KAudioUnitOfflineProperty_PreflightRequirements KAudioUnitOfflineProperty = 3023 KAudioUnitOfflineProperty_StartOffset KAudioUnitOfflineProperty = 3022 )
func (KAudioUnitOfflineProperty) String ¶
func (e KAudioUnitOfflineProperty) String() string
type KAudioUnitSRCAlgorithm ¶
type KAudioUnitSRCAlgorithm uint32
const ( KAudioUnitSRCAlgorithm_MediumQuality KAudioUnitSRCAlgorithm = 'c'<<24 | 's'<<16 | 'r'<<8 | 'c' // 'csrc' KAudioUnitSRCAlgorithm_Polyphase KAudioUnitSRCAlgorithm = 'p'<<24 | 'o'<<16 | 'l'<<8 | 'y' // 'poly' )
func (KAudioUnitSRCAlgorithm) String ¶
func (e KAudioUnitSRCAlgorithm) String() string
type KAudioUnitSampleRateConverterComplexity ¶
type KAudioUnitSampleRateConverterComplexity uint32
const ( // KAudioUnitSampleRateConverterComplexity_Linear: Basic sample rate conversion using linear interpolation. KAudioUnitSampleRateConverterComplexity_Linear KAudioUnitSampleRateConverterComplexity = 'l'<<24 | 'i'<<16 | 'n'<<8 | 'e' // 'line' // KAudioUnitSampleRateConverterComplexity_Mastering: Mastering quality sample rate conversion. KAudioUnitSampleRateConverterComplexity_Mastering KAudioUnitSampleRateConverterComplexity = 'b'<<24 | 'a'<<16 | 't'<<8 | 's' // 'bats' KAudioUnitSampleRateConverterComplexity_Normal KAudioUnitSampleRateConverterComplexity = 'n'<<24 | 'o'<<16 | 'r'<<8 | 'm' // 'norm' )
func (KAudioUnitSampleRateConverterComplexity) String ¶
func (e KAudioUnitSampleRateConverterComplexity) String() string
type KAudioUnitScope ¶
type KAudioUnitScope uint32
const ( KAudioUnitScope_Global KAudioUnitScope = 0 // KAudioUnitScope_Group: In macOS, a context specific to the control scope of audio unit parameters. KAudioUnitScope_Group KAudioUnitScope = 3 // KAudioUnitScope_Input: The context for audio data coming into an audio unit. KAudioUnitScope_Input KAudioUnitScope = 1 KAudioUnitScope_Layer KAudioUnitScope = 6 KAudioUnitScope_LayerItem KAudioUnitScope = 7 // KAudioUnitScope_Note: In macOS, a scope for changes to an individual musical note. KAudioUnitScope_Note KAudioUnitScope = 5 // KAudioUnitScope_Output: The context for audio data leaving an audio unit. KAudioUnitScope_Output KAudioUnitScope = 2 KAudioUnitScope_Part KAudioUnitScope = 4 )
func (KAudioUnitScope) String ¶
func (e KAudioUnitScope) String() string
type KAudioUnitType ¶
type KAudioUnitType uint32
const ( KAudioUnitType_Effect KAudioUnitType = 'a'<<24 | 'u'<<16 | 'f'<<8 | 'x' // 'aufx' KAudioUnitType_FormatConverter KAudioUnitType = 'a'<<24 | 'u'<<16 | 'f'<<8 | 'c' // 'aufc' // KAudioUnitType_Generator: A generator unit provides audio output but has no audio input. KAudioUnitType_Generator KAudioUnitType = 'a'<<24 | 'u'<<16 | 'g'<<8 | 'n' // 'augn' KAudioUnitType_MIDIProcessor KAudioUnitType = 'a'<<24 | 'u'<<16 | 'm'<<8 | 'i' // 'aumi' // KAudioUnitType_Mixer: A mixer unit takes a number of input channels and mixes them to provide one or more output channels. KAudioUnitType_Mixer KAudioUnitType = 'a'<<24 | 'u'<<16 | 'm'<<8 | 'x' // 'aumx' // KAudioUnitType_MusicDevice: An instrument unit can be used as a software musical instrument, such as a sampler or synthesizer. KAudioUnitType_MusicDevice KAudioUnitType = 'a'<<24 | 'u'<<16 | 'm'<<8 | 'u' // 'aumu' // KAudioUnitType_MusicEffect: An effect unit that can respond to MIDI control messages, typically through a mapping of MIDI messages to parameters of the audio unit’s DSP algorithm. KAudioUnitType_MusicEffect KAudioUnitType = 'a'<<24 | 'u'<<16 | 'm'<<8 | 'f' // 'aumf' // KAudioUnitType_OfflineEffect: An offline effect unit provides digital signal processing of a sort that cannot proceed in realtime. KAudioUnitType_OfflineEffect KAudioUnitType = 'a'<<24 | 'u'<<16 | 'o'<<8 | 'l' // 'auol' // KAudioUnitType_Output: An output unit provides input, output, or both input and output simultaneously. KAudioUnitType_Output KAudioUnitType = 'a'<<24 | 'u'<<16 | 'o'<<8 | 'u' // 'auou' KAudioUnitType_Panner KAudioUnitType = 'a'<<24 | 'u'<<16 | 'p'<<8 | 'n' // 'aupn' KAudioUnitType_SpeechSynthesizer KAudioUnitType = 'a'<<24 | 'u'<<16 | 's'<<8 | 'p' // 'ausp' )
func (KAudioUnitType) String ¶
func (e KAudioUnitType) String() string
type KBandpassParam ¶
type KBandpassParam uint32
const ( KBandpassParam_Bandwidth KBandpassParam = 1 KBandpassParam_CenterFrequency KBandpassParam = 0 )
func (KBandpassParam) String ¶
func (e KBandpassParam) String() string
type KCAClock ¶
type KCAClock int32
const ( KCAClock_CannotSetTimeError KCAClock = -66805 KCAClock_InvalidPlayRateError KCAClock = -66806 KCAClock_InvalidPropertySizeError KCAClock = -66815 KCAClock_InvalidSMPTEFormatError KCAClock = -66809 KCAClock_InvalidSMPTEOffsetError KCAClock = -66808 KCAClock_InvalidSyncModeError KCAClock = -66813 KCAClock_InvalidSyncSourceError KCAClock = -66812 KCAClock_InvalidTimeFormatError KCAClock = -66814 KCAClock_InvalidTimebaseError KCAClock = -66811 KCAClock_InvalidTimebaseSourceError KCAClock = -66810 KCAClock_InvalidUnitError KCAClock = -66807 KCAClock_UnknownPropertyError KCAClock = -66816 )
type KCAF ¶
type KCAF uint32
const ( KCAF_AudioDataChunkID KCAF = 'd'<<24 | 'a'<<16 | 't'<<8 | 'a' // 'data' KCAF_ChannelLayoutChunkID KCAF = 'c'<<24 | 'h'<<16 | 'a'<<8 | 'n' // 'chan' KCAF_EditCommentsChunkID KCAF = 'e'<<24 | 'd'<<16 | 'c'<<8 | 't' // 'edct' KCAF_FillerChunkID KCAF = 'f'<<24 | 'r'<<16 | 'e'<<8 | 'e' // 'free' KCAF_FormatListID KCAF = 'l'<<24 | 'd'<<16 | 's'<<8 | 'c' // 'ldsc' KCAF_InfoStringsChunkID KCAF = 'i'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'info' KCAF_InstrumentChunkID KCAF = 'i'<<24 | 'n'<<16 | 's'<<8 | 't' // 'inst' KCAF_MIDIChunkID KCAF = 'm'<<24 | 'i'<<16 | 'd'<<8 | 'i' // 'midi' KCAF_MagicCookieID KCAF = 'k'<<24 | 'u'<<16 | 'k'<<8 | 'i' // 'kuki' KCAF_MarkerChunkID KCAF = 'm'<<24 | 'a'<<16 | 'r'<<8 | 'k' // 'mark' KCAF_OverviewChunkID KCAF = 'o'<<24 | 'v'<<16 | 'v'<<8 | 'w' // 'ovvw' KCAF_PacketTableChunkID KCAF = 'p'<<24 | 'a'<<16 | 'k'<<8 | 't' // 'pakt' KCAF_PeakChunkID KCAF = 'p'<<24 | 'e'<<16 | 'a'<<8 | 'k' // 'peak' KCAF_RegionChunkID KCAF = 'r'<<24 | 'e'<<16 | 'g'<<8 | 'n' // 'regn' KCAF_StreamDescriptionChunkID KCAF = 'd'<<24 | 'e'<<16 | 's'<<8 | 'c' // 'desc' KCAF_StringsChunkID KCAF = 's'<<24 | 't'<<16 | 'r'<<8 | 'g' // 'strg' KCAF_UMIDChunkID KCAF = 'u'<<24 | 'm'<<16 | 'i'<<8 | 'd' // 'umid' KCAF_UUIDChunkID KCAF = 'u'<<24 | 'u'<<16 | 'i'<<8 | 'd' // 'uuid' KCAF_iXMLChunkID KCAF = 'i'<<24 | 'X'<<16 | 'M'<<8 | 'L' // 'iXML' )
type KCAFMarkerType ¶
type KCAFMarkerType uint32
const ( KCAFMarkerType_EditDestinationBegin KCAFMarkerType = 'd'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'dbeg' KCAFMarkerType_EditDestinationEnd KCAFMarkerType = 'd'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'dend' KCAFMarkerType_EditSourceBegin KCAFMarkerType = 'c'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'cbeg' KCAFMarkerType_EditSourceEnd KCAFMarkerType = 'c'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'cend' KCAFMarkerType_Generic KCAFMarkerType = 0 KCAFMarkerType_Index KCAFMarkerType = 'i'<<24 | 'n'<<16 | 'd'<<8 | 'x' // 'indx' KCAFMarkerType_KeySignature KCAFMarkerType = 'k'<<24 | 's'<<16 | 'i'<<8 | 'g' // 'ksig' KCAFMarkerType_ProgramEnd KCAFMarkerType = 'p'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'pend' KCAFMarkerType_ProgramStart KCAFMarkerType = 'p'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'pbeg' KCAFMarkerType_RegionEnd KCAFMarkerType = 'r'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'rend' KCAFMarkerType_RegionStart KCAFMarkerType = 'r'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'rbeg' KCAFMarkerType_RegionSyncPoint KCAFMarkerType = 'r'<<24 | 's'<<16 | 'y'<<8 | 'c' // 'rsyc' KCAFMarkerType_ReleaseLoopEnd KCAFMarkerType = 'r'<<24 | 'l'<<16 | 'e'<<8 | 'n' // 'rlen' KCAFMarkerType_ReleaseLoopStart KCAFMarkerType = 'r'<<24 | 'l'<<16 | 'b'<<8 | 'g' // 'rlbg' KCAFMarkerType_SavedPlayPosition KCAFMarkerType = 's'<<24 | 'p'<<16 | 'l'<<8 | 'y' // 'sply' KCAFMarkerType_SelectionEnd KCAFMarkerType = 's'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'send' KCAFMarkerType_SelectionStart KCAFMarkerType = 's'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'sbeg' KCAFMarkerType_SustainLoopEnd KCAFMarkerType = 's'<<24 | 'l'<<16 | 'e'<<8 | 'n' // 'slen' KCAFMarkerType_SustainLoopStart KCAFMarkerType = 's'<<24 | 'l'<<16 | 'b'<<8 | 'g' // 'slbg' KCAFMarkerType_Tempo KCAFMarkerType = 't'<<24 | 'm'<<16 | 'p'<<8 | 'o' // 'tmpo' KCAFMarkerType_TimeSignature KCAFMarkerType = 't'<<24 | 's'<<16 | 'i'<<8 | 'g' // 'tsig' KCAFMarkerType_TrackEnd KCAFMarkerType = 't'<<24 | 'e'<<16 | 'n'<<8 | 'd' // 'tend' KCAFMarkerType_TrackStart KCAFMarkerType = 't'<<24 | 'b'<<16 | 'e'<<8 | 'g' // 'tbeg' )
func (KCAFMarkerType) String ¶
func (e KCAFMarkerType) String() string
type KConverterPrimeMethod ¶
type KConverterPrimeMethod uint32
const ( // KConverterPrimeMethod_None: Acts in “latency” mode. KConverterPrimeMethod_None KConverterPrimeMethod = 2 // KConverterPrimeMethod_Normal: Prime with `trailing` frames only, for zero latency. KConverterPrimeMethod_Normal KConverterPrimeMethod = 1 // KConverterPrimeMethod_Pre: Prime with `leading` + `trailing` input frames. KConverterPrimeMethod_Pre KConverterPrimeMethod = 0 )
func (KConverterPrimeMethod) String ¶
func (e KConverterPrimeMethod) String() string
type KDelayParam ¶
type KDelayParam uint32
const ( KDelayParam_DelayTime KDelayParam = 1 KDelayParam_Feedback KDelayParam = 2 KDelayParam_LopassCutoff KDelayParam = 3 KDelayParam_WetDryMix KDelayParam = 0 )
func (KDelayParam) String ¶
func (e KDelayParam) String() string
type KDistortionParam ¶
type KDistortionParam uint32
const ( KDistortionParam_CubicTerm KDistortionParam = 8 KDistortionParam_Decay KDistortionParam = 1 KDistortionParam_Decimation KDistortionParam = 3 KDistortionParam_DecimationMix KDistortionParam = 5 KDistortionParam_Delay KDistortionParam = 0 KDistortionParam_DelayMix KDistortionParam = 2 KDistortionParam_FinalMix KDistortionParam = 15 KDistortionParam_LinearTerm KDistortionParam = 6 KDistortionParam_PolynomialMix KDistortionParam = 9 KDistortionParam_RingModBalance KDistortionParam = 12 KDistortionParam_RingModFreq1 KDistortionParam = 10 KDistortionParam_RingModFreq2 KDistortionParam = 11 KDistortionParam_RingModMix KDistortionParam = 13 KDistortionParam_Rounding KDistortionParam = 4 KDistortionParam_SoftClipGain KDistortionParam = 14 KDistortionParam_SquaredTerm KDistortionParam = 7 )
func (KDistortionParam) String ¶
func (e KDistortionParam) String() string
type KDitherAlgorithm ¶
type KDitherAlgorithm uint32
const ( KDitherAlgorithm_NoiseShaping KDitherAlgorithm = 2 KDitherAlgorithm_TPDF KDitherAlgorithm = 1 )
func (KDitherAlgorithm) String ¶
func (e KDitherAlgorithm) String() string
type KDynamicRangeCompressionProfile ¶
type KDynamicRangeCompressionProfile uint32
const ( KDynamicRangeCompressionProfile_GeneralCompression KDynamicRangeCompressionProfile = 6 KDynamicRangeCompressionProfile_LateNight KDynamicRangeCompressionProfile = 1 KDynamicRangeCompressionProfile_LimitedPlaybackRange KDynamicRangeCompressionProfile = 3 KDynamicRangeCompressionProfile_NoisyEnvironment KDynamicRangeCompressionProfile = 2 KDynamicRangeCompressionProfile_None KDynamicRangeCompressionProfile = 0 )
func (KDynamicRangeCompressionProfile) String ¶
func (e KDynamicRangeCompressionProfile) String() string
type KDynamicRangeControlMode ¶
type KDynamicRangeControlMode uint32
const ( KDynamicRangeControlMode_Heavy KDynamicRangeControlMode = 2 KDynamicRangeControlMode_Light KDynamicRangeControlMode = 1 KDynamicRangeControlMode_None KDynamicRangeControlMode = 0 )
func (KDynamicRangeControlMode) String ¶
func (e KDynamicRangeControlMode) String() string
type KDynamicsProcessorParam ¶
type KDynamicsProcessorParam uint32
const ( KDynamicsProcessorParam_AttackTime KDynamicsProcessorParam = 4 KDynamicsProcessorParam_CompressionAmount KDynamicsProcessorParam = 1000 KDynamicsProcessorParam_ExpansionRatio KDynamicsProcessorParam = 2 KDynamicsProcessorParam_ExpansionThreshold KDynamicsProcessorParam = 3 KDynamicsProcessorParam_HeadRoom KDynamicsProcessorParam = 1 KDynamicsProcessorParam_InputAmplitude KDynamicsProcessorParam = 2000 KDynamicsProcessorParam_OutputAmplitude KDynamicsProcessorParam = 3000 KDynamicsProcessorParam_OverallGain KDynamicsProcessorParam = 6 KDynamicsProcessorParam_ReleaseTime KDynamicsProcessorParam = 5 KDynamicsProcessorParam_Threshold KDynamicsProcessorParam = 0 // Deprecated: use KDynamicsProcessorParam_OverallGain. KDynamicsProcessorParam_MasterGain KDynamicsProcessorParam = 6 )
func (KDynamicsProcessorParam) String ¶
func (e KDynamicsProcessorParam) String() string
type KExtAudioFileError ¶
type KExtAudioFileError int32
const ( // KExtAudioFileError_AsyncWriteBufferOverflow: An asynchronous write operation could not be completed in time. KExtAudioFileError_AsyncWriteBufferOverflow KExtAudioFileError = -66570 KExtAudioFileError_AsyncWriteTooLarge KExtAudioFileError = -66569 // KExtAudioFileError_InvalidChannelMap: The number of channels does not match the specified format. KExtAudioFileError_InvalidChannelMap KExtAudioFileError = -66564 KExtAudioFileError_InvalidDataFormat KExtAudioFileError = -66566 KExtAudioFileError_InvalidOperationOrder KExtAudioFileError = -66565 KExtAudioFileError_InvalidProperty KExtAudioFileError = -66561 KExtAudioFileError_InvalidPropertySize KExtAudioFileError = -66562 // KExtAudioFileError_InvalidSeek: An attempt to write, or an offset, is out of bounds. KExtAudioFileError_InvalidSeek KExtAudioFileError = -66568 KExtAudioFileError_MaxPacketSizeUnknown KExtAudioFileError = -66567 KExtAudioFileError_NonPCMClientFormat KExtAudioFileError = -66563 )
func (KExtAudioFileError) String ¶
func (e KExtAudioFileError) String() string
type KExtAudioFilePacketTableInfoOverride ¶
type KExtAudioFilePacketTableInfoOverride int32
const ( KExtAudioFilePacketTableInfoOverride_UseFileValue KExtAudioFilePacketTableInfoOverride = -1 KExtAudioFilePacketTableInfoOverride_UseFileValueIfValid KExtAudioFilePacketTableInfoOverride = -2 )
func (KExtAudioFilePacketTableInfoOverride) String ¶
func (e KExtAudioFilePacketTableInfoOverride) String() string
type KExtAudioFileProperty ¶
type KExtAudioFileProperty uint32
const ( // KExtAudioFileProperty_AudioConverter: The audio converter object associated with the extended audio file object, if a converter is associated. KExtAudioFileProperty_AudioConverter KExtAudioFileProperty = 'a'<<24 | 'c'<<16 | 'n'<<8 | 'v' // 'acnv' // KExtAudioFileProperty_AudioFile: The audio file object associated with the extended audio file object. KExtAudioFileProperty_AudioFile KExtAudioFileProperty = 'a'<<24 | 'f'<<16 | 'i'<<8 | 'l' // 'afil' // KExtAudioFileProperty_ClientChannelLayout: The audio channel layout for your application. KExtAudioFileProperty_ClientChannelLayout KExtAudioFileProperty = 'c'<<24 | 'c'<<16 | 'l'<<8 | 'o' // 'cclo' // KExtAudioFileProperty_ClientDataFormat: The audio stream format for your application. KExtAudioFileProperty_ClientDataFormat KExtAudioFileProperty = 'c'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'cfmt' // KExtAudioFileProperty_ClientMaxPacketSize: Your application audio data format’s maximum packet size, in bytes. KExtAudioFileProperty_ClientMaxPacketSize KExtAudioFileProperty = 'c'<<24 | 'm'<<16 | 'p'<<8 | 's' // 'cmps' // KExtAudioFileProperty_CodecManufacturer: The manufacturer of the codec to be used by the extended audio file object. KExtAudioFileProperty_CodecManufacturer KExtAudioFileProperty = 'c'<<24 | 'm'<<16 | 'a'<<8 | 'n' // 'cman' // KExtAudioFileProperty_ConverterConfig: The configuration of the extended audio file object’s associated audio converter, as specified by the `kAudioConverterPropertySettings` property. KExtAudioFileProperty_ConverterConfig KExtAudioFileProperty = 'a'<<24 | 'c'<<16 | 'c'<<8 | 'f' // 'accf' // KExtAudioFileProperty_FileChannelLayout: A file’s channel layout. KExtAudioFileProperty_FileChannelLayout KExtAudioFileProperty = 'f'<<24 | 'c'<<16 | 'l'<<8 | 'o' // 'fclo' // KExtAudioFileProperty_FileDataFormat: A file’s data format. KExtAudioFileProperty_FileDataFormat KExtAudioFileProperty = 'f'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ffmt' // KExtAudioFileProperty_FileLengthFrames: The associated audio file’s length in sample frames. KExtAudioFileProperty_FileLengthFrames KExtAudioFileProperty = '#'<<24 | 'f'<<16 | 'r'<<8 | 'm' // '#frm' // KExtAudioFileProperty_FileMaxPacketSize: The file data format’s maximum packet size, in bytes. KExtAudioFileProperty_FileMaxPacketSize KExtAudioFileProperty = 'f'<<24 | 'm'<<16 | 'p'<<8 | 's' // 'fmps' // KExtAudioFileProperty_IOBuffer: An audio data buffer. KExtAudioFileProperty_IOBuffer KExtAudioFileProperty = 'i'<<24 | 'o'<<16 | 'b'<<8 | 'f' // 'iobf' // KExtAudioFileProperty_IOBufferSizeBytes: The size of the buffer that the extended audio file object’s associated audio converter uses to read or write the associated audio file. KExtAudioFileProperty_IOBufferSizeBytes KExtAudioFileProperty = 'i'<<24 | 'o'<<16 | 'b'<<8 | 's' // 'iobs' // KExtAudioFileProperty_PacketTable: This property can be used to override the priming and remainder information in an audio file, and also to retrieve the current priming and remainder frames information for an extended audio file object. KExtAudioFileProperty_PacketTable KExtAudioFileProperty = 'x'<<24 | 'p'<<16 | 't'<<8 | 'i' // 'xpti' )
func (KExtAudioFileProperty) String ¶
func (e KExtAudioFileProperty) String() string
type KHighShelfParam ¶
type KHighShelfParam uint32
const ( KHighShelfParam_CutOffFrequency KHighShelfParam = 0 KHighShelfParam_Gain KHighShelfParam = 1 )
func (KHighShelfParam) String ¶
func (e KHighShelfParam) String() string
type KHipassParam ¶
type KHipassParam uint32
const ( KHipassParam_CutoffFrequency KHipassParam = 0 KHipassParam_Resonance KHipassParam = 1 )
func (KHipassParam) String ¶
func (e KHipassParam) String() string
type KInstrumentType ¶
type KInstrumentType uint32
const ( KInstrumentType_AUPreset KInstrumentType = 2 KInstrumentType_Audiofile KInstrumentType = 3 KInstrumentType_DLSPreset KInstrumentType = 1 KInstrumentType_EXS24 KInstrumentType = 4 KInstrumentType_SF2Preset KInstrumentType = 1 )
func (KInstrumentType) String ¶
func (e KInstrumentType) String() string
type KLimiterParam ¶
type KLimiterParam uint32
const ( KLimiterParam_AttackTime KLimiterParam = 0 KLimiterParam_DecayTime KLimiterParam = 1 KLimiterParam_PreGain KLimiterParam = 2 )
func (KLimiterParam) String ¶
func (e KLimiterParam) String() string
type KLowPassParam ¶
type KLowPassParam uint32
const ( KLowPassParam_CutoffFrequency KLowPassParam = 0 KLowPassParam_Resonance KLowPassParam = 1 )
func (KLowPassParam) String ¶
func (e KLowPassParam) String() string
type KMatrixMixerParam ¶
type KMatrixMixerParam uint32
const ( KMatrixMixerParam_Enable KMatrixMixerParam = 1 KMatrixMixerParam_PostAveragePower KMatrixMixerParam = 3000 KMatrixMixerParam_PostAveragePowerLinear KMatrixMixerParam = 7000 KMatrixMixerParam_PostPeakHoldLevel KMatrixMixerParam = 4000 KMatrixMixerParam_PostPeakHoldLevelLinear KMatrixMixerParam = 8000 KMatrixMixerParam_PreAveragePower KMatrixMixerParam = 1000 KMatrixMixerParam_PreAveragePowerLinear KMatrixMixerParam = 5000 KMatrixMixerParam_PrePeakHoldLevel KMatrixMixerParam = 2000 KMatrixMixerParam_PrePeakHoldLevelLinear KMatrixMixerParam = 6000 KMatrixMixerParam_Volume KMatrixMixerParam = 0 )
func (KMatrixMixerParam) String ¶
func (e KMatrixMixerParam) String() string
type KMultiChannelMixerParam ¶
type KMultiChannelMixerParam uint32
const ( // KMultiChannelMixerParam_Enable: Enables a channel. KMultiChannelMixerParam_Enable KMultiChannelMixerParam = 1 // KMultiChannelMixerParam_Pan: The panning value for the mixer. KMultiChannelMixerParam_Pan KMultiChannelMixerParam = 2 // KMultiChannelMixerParam_PostAveragePower: The average power level of the channel, after the mixer, in decibels. KMultiChannelMixerParam_PostAveragePower KMultiChannelMixerParam = 3000 // KMultiChannelMixerParam_PostPeakHoldLevel: The peak hold level of the channel, after the mixer, in decibels. KMultiChannelMixerParam_PostPeakHoldLevel KMultiChannelMixerParam = 4000 // KMultiChannelMixerParam_PreAveragePower: The average power level of the channel, prior to the mixer, in decibels. KMultiChannelMixerParam_PreAveragePower KMultiChannelMixerParam = 1000 // KMultiChannelMixerParam_PrePeakHoldLevel: The peak hold level of the channel, prior to the mixer, in decibels. KMultiChannelMixerParam_PrePeakHoldLevel KMultiChannelMixerParam = 2000 // KMultiChannelMixerParam_Volume: The linear gain of the channel. KMultiChannelMixerParam_Volume KMultiChannelMixerParam = 0 )
func (KMultiChannelMixerParam) String ¶
func (e KMultiChannelMixerParam) String() string
type KMultibandCompressorParam ¶
type KMultibandCompressorParam uint32
const ( KMultibandCompressorParam_AttackTime KMultibandCompressorParam = 13 KMultibandCompressorParam_CompressionAmount1 KMultibandCompressorParam = 1000 KMultibandCompressorParam_CompressionAmount2 KMultibandCompressorParam = 2000 KMultibandCompressorParam_CompressionAmount3 KMultibandCompressorParam = 3000 KMultibandCompressorParam_CompressionAmount4 KMultibandCompressorParam = 4000 KMultibandCompressorParam_Crossover1 KMultibandCompressorParam = 2 KMultibandCompressorParam_Crossover2 KMultibandCompressorParam = 3 KMultibandCompressorParam_Crossover3 KMultibandCompressorParam = 4 KMultibandCompressorParam_EQ1 KMultibandCompressorParam = 15 KMultibandCompressorParam_EQ2 KMultibandCompressorParam = 16 KMultibandCompressorParam_EQ3 KMultibandCompressorParam = 17 KMultibandCompressorParam_EQ4 KMultibandCompressorParam = 18 KMultibandCompressorParam_Headroom1 KMultibandCompressorParam = 9 KMultibandCompressorParam_Headroom2 KMultibandCompressorParam = 10 KMultibandCompressorParam_Headroom3 KMultibandCompressorParam = 11 KMultibandCompressorParam_Headroom4 KMultibandCompressorParam = 12 KMultibandCompressorParam_InputAmplitude1 KMultibandCompressorParam = 5000 KMultibandCompressorParam_InputAmplitude2 KMultibandCompressorParam = 6000 KMultibandCompressorParam_InputAmplitude3 KMultibandCompressorParam = 7000 KMultibandCompressorParam_InputAmplitude4 KMultibandCompressorParam = 8000 KMultibandCompressorParam_OutputAmplitude1 KMultibandCompressorParam = 9000 KMultibandCompressorParam_OutputAmplitude2 KMultibandCompressorParam = 10000 KMultibandCompressorParam_OutputAmplitude3 KMultibandCompressorParam = 11000 KMultibandCompressorParam_OutputAmplitude4 KMultibandCompressorParam = 12000 KMultibandCompressorParam_Postgain KMultibandCompressorParam = 1 KMultibandCompressorParam_Pregain KMultibandCompressorParam = 0 KMultibandCompressorParam_ReleaseTime KMultibandCompressorParam = 14 KMultibandCompressorParam_Threshold1 KMultibandCompressorParam = 5 KMultibandCompressorParam_Threshold2 KMultibandCompressorParam = 6 KMultibandCompressorParam_Threshold3 KMultibandCompressorParam = 7 KMultibandCompressorParam_Threshold4 KMultibandCompressorParam = 8 )
func (KMultibandCompressorParam) String ¶
func (e KMultibandCompressorParam) String() string
type KMultibandFilter ¶
type KMultibandFilter uint32
const ( KMultibandFilter_Bandwidth1 KMultibandFilter = 5 KMultibandFilter_Bandwidth2 KMultibandFilter = 8 KMultibandFilter_Bandwidth3 KMultibandFilter = 11 KMultibandFilter_CenterFreq1 KMultibandFilter = 3 KMultibandFilter_CenterFreq2 KMultibandFilter = 6 KMultibandFilter_CenterFreq3 KMultibandFilter = 9 KMultibandFilter_CenterGain1 KMultibandFilter = 4 KMultibandFilter_CenterGain2 KMultibandFilter = 7 KMultibandFilter_CenterGain3 KMultibandFilter = 10 KMultibandFilter_HighFilterType KMultibandFilter = 12 KMultibandFilter_HighFrequency KMultibandFilter = 13 KMultibandFilter_HighGain KMultibandFilter = 14 KMultibandFilter_LowFilterType KMultibandFilter = 0 KMultibandFilter_LowFrequency KMultibandFilter = 1 KMultibandFilter_LowGain KMultibandFilter = 2 )
func (KMultibandFilter) String ¶
func (e KMultibandFilter) String() string
type KMusicDevice ¶
type KMusicDevice uint32
const ( KMusicDeviceMIDIEventListSelect KMusicDevice = 0x107 KMusicDeviceMIDIEventSelect KMusicDevice = 0x101 KMusicDevicePrepareInstrumentSelect KMusicDevice = 0x103 KMusicDeviceRange KMusicDevice = 0x100 KMusicDeviceReleaseInstrumentSelect KMusicDevice = 0x104 KMusicDeviceStartNoteSelect KMusicDevice = 0x105 KMusicDeviceStopNoteSelect KMusicDevice = 0x106 KMusicDeviceSysExSelect KMusicDevice = 0x102 )
func (KMusicDevice) String ¶
func (e KMusicDevice) String() string
type KMusicDeviceParam ¶
type KMusicDeviceParam uint32
const ( KMusicDeviceParam_ReverbVolume KMusicDeviceParam = 2 KMusicDeviceParam_Tuning KMusicDeviceParam = 0 KMusicDeviceParam_Volume KMusicDeviceParam = 1 )
func (KMusicDeviceParam) String ¶
func (e KMusicDeviceParam) String() string
type KMusicDeviceSampleFrameMask ¶
type KMusicDeviceSampleFrameMask uint32
const ( KMusicDeviceSampleFrameMask_IsScheduled KMusicDeviceSampleFrameMask = 0x1000000 KMusicDeviceSampleFrameMask_SampleOffset KMusicDeviceSampleFrameMask = 0xffffff )
func (KMusicDeviceSampleFrameMask) String ¶
func (e KMusicDeviceSampleFrameMask) String() string
type KMusicEventType ¶
type KMusicEventType uint32
const ( // KMusicEventType_AUPreset: An event containing an audio unit user preset dictionary. KMusicEventType_AUPreset KMusicEventType = 10 // KMusicEventType_ExtendedNote: A non-MIDI music event with variable number of parameters. KMusicEventType_ExtendedNote KMusicEventType = 1 // KMusicEventType_ExtendedTempo: An event that signals a change in tempo, in beats-per-minute. KMusicEventType_ExtendedTempo KMusicEventType = 3 // KMusicEventType_MIDIChannelMessage: A MIDI channel message, other than note control. KMusicEventType_MIDIChannelMessage KMusicEventType = 7 // KMusicEventType_MIDINoteMessage: A MIDI note-on message, including duration. KMusicEventType_MIDINoteMessage KMusicEventType = 6 // KMusicEventType_MIDIRawData: MIDI system-exclusive data. KMusicEventType_MIDIRawData KMusicEventType = 8 // KMusicEventType_Meta: A standard MIDI file metaevent. KMusicEventType_Meta KMusicEventType = 5 // KMusicEventType_NULL: A null music event. KMusicEventType_NULL KMusicEventType = 0 // KMusicEventType_Parameter: An audio unit parameter event. KMusicEventType_Parameter KMusicEventType = 9 // KMusicEventType_User: User-defined data. KMusicEventType_User KMusicEventType = 4 )
func (KMusicEventType) String ¶
func (e KMusicEventType) String() string
type KMusicNoteEvent ¶
type KMusicNoteEvent uint32
const ( KMusicNoteEvent_Unused KMusicNoteEvent = 0xffffffff KMusicNoteEvent_UseGroupInstrument KMusicNoteEvent = 0xffffffff )
func (KMusicNoteEvent) String ¶
func (e KMusicNoteEvent) String() string
type KNewTimePitchParam ¶
type KNewTimePitchParam uint32
const ( KNewTimePitchParam_EnableSpectralCoherence KNewTimePitchParam = 6 KNewTimePitchParam_EnableTransientPreservation KNewTimePitchParam = 7 KNewTimePitchParam_Pitch KNewTimePitchParam = 1 KNewTimePitchParam_Rate KNewTimePitchParam = 0 KNewTimePitchParam_Smoothness KNewTimePitchParam = 4 // Deprecated: use KNewTimePitchParam_EnableSpectralCoherence. KNewTimePitchParam_EnablePeakLocking KNewTimePitchParam = 6 // Deprecated: use KNewTimePitchParam_Smoothness. KNewTimePitchParam_Overlap KNewTimePitchParam = 4 )
func (KNewTimePitchParam) String ¶
func (e KNewTimePitchParam) String() string
type KOfflinePreflight ¶
type KOfflinePreflight uint32
const ( KOfflinePreflight_NotRequired KOfflinePreflight = 0 KOfflinePreflight_Optional KOfflinePreflight = 1 KOfflinePreflight_Required KOfflinePreflight = 2 )
func (KOfflinePreflight) String ¶
func (e KOfflinePreflight) String() string
type KOtherPluginFormat ¶
type KOtherPluginFormat uint32
const ( KOtherPluginFormat_AU KOtherPluginFormat = 3 KOtherPluginFormat_Undefined KOtherPluginFormat = 0 KOtherPluginFormat_kMAS KOtherPluginFormat = 1 KOtherPluginFormat_kVST KOtherPluginFormat = 2 )
func (KOtherPluginFormat) String ¶
func (e KOtherPluginFormat) String() string
type KPannerParam ¶
type KPannerParam uint32
const ( KPannerParam_Azimuth KPannerParam = 1 KPannerParam_CoordScale KPannerParam = 4 KPannerParam_Distance KPannerParam = 3 KPannerParam_Elevation KPannerParam = 2 KPannerParam_Gain KPannerParam = 0 KPannerParam_RefDistance KPannerParam = 5 )
func (KPannerParam) String ¶
func (e KPannerParam) String() string
type KParametricEQParam ¶
type KParametricEQParam uint32
const ( KParametricEQParam_CenterFreq KParametricEQParam = 0 KParametricEQParam_Gain KParametricEQParam = 2 KParametricEQParam_Q KParametricEQParam = 1 )
func (KParametricEQParam) String ¶
func (e KParametricEQParam) String() string
type KProgramTargetLevel ¶
type KProgramTargetLevel uint32
const ( KProgramTargetLevel_Minus20dB KProgramTargetLevel = 3 KProgramTargetLevel_Minus23dB KProgramTargetLevel = 2 KProgramTargetLevel_Minus31dB KProgramTargetLevel = 1 KProgramTargetLevel_None KProgramTargetLevel = 0 )
func (KProgramTargetLevel) String ¶
func (e KProgramTargetLevel) String() string
type KRandomParam ¶
type KRandomParam uint32
const ( KRandomParam_BoundA KRandomParam = 0 KRandomParam_BoundB KRandomParam = 1 KRandomParam_Curve KRandomParam = 2 )
func (KRandomParam) String ¶
func (e KRandomParam) String() string
type KRenderQuality ¶
type KRenderQuality uint32
const ( KRenderQuality_High KRenderQuality = 96 KRenderQuality_Low KRenderQuality = 32 KRenderQuality_Max KRenderQuality = 127 KRenderQuality_Medium KRenderQuality = 64 KRenderQuality_Min KRenderQuality = 0 )
func (KRenderQuality) String ¶
func (e KRenderQuality) String() string
type KReverb2Param ¶
type KReverb2Param uint32
const ( KReverb2Param_DecayTimeAt0Hz KReverb2Param = 4 KReverb2Param_DecayTimeAtNyquist KReverb2Param = 5 KReverb2Param_DryWetMix KReverb2Param = 0 KReverb2Param_Gain KReverb2Param = 1 KReverb2Param_LegacyMode KReverb2Param = 0 KReverb2Param_MaxDelayTime KReverb2Param = 3 KReverb2Param_MinDelayTime KReverb2Param = 2 KReverb2Param_RandomizeReflections KReverb2Param = 6 )
func (KReverb2Param) String ¶
func (e KReverb2Param) String() string
type KReverbParam ¶
type KReverbParam uint32
const ( KReverbParam_DryWetMix KReverbParam = 0 KReverbParam_LargeBrightness KReverbParam = 10 KReverbParam_LargeDelay KReverbParam = 5 KReverbParam_LargeDelayRange KReverbParam = 8 KReverbParam_LargeDensity KReverbParam = 7 KReverbParam_LargeSize KReverbParam = 3 KReverbParam_ModulationDepth KReverbParam = 13 KReverbParam_ModulationRate KReverbParam = 12 KReverbParam_PreDelay KReverbParam = 4 KReverbParam_SmallBrightness KReverbParam = 9 KReverbParam_SmallDelayRange KReverbParam = 11 KReverbParam_SmallDensity KReverbParam = 6 KReverbParam_SmallLargeMix KReverbParam = 1 KReverbParam_SmallSize KReverbParam = 2 )
func (KReverbParam) String ¶
func (e KReverbParam) String() string
type KRogerBeepParam ¶
type KRogerBeepParam uint32
const ( KRogerBeepParam_InGateThreshold KRogerBeepParam = 0 KRogerBeepParam_InGateThresholdTime KRogerBeepParam = 1 KRogerBeepParam_OutGateThreshold KRogerBeepParam = 2 KRogerBeepParam_OutGateThresholdTime KRogerBeepParam = 3 KRogerBeepParam_RogerGain KRogerBeepParam = 6 KRogerBeepParam_RogerType KRogerBeepParam = 5 KRogerBeepParam_Sensitivity KRogerBeepParam = 4 )
func (KRogerBeepParam) String ¶
func (e KRogerBeepParam) String() string
type KRoundTripAACParam ¶
type KRoundTripAACParam uint32
const ( KRoundTripAACParam_BitRate KRoundTripAACParam = 1 KRoundTripAACParam_CompressedFormatSampleRate KRoundTripAACParam = 3 KRoundTripAACParam_EncodingStrategy KRoundTripAACParam = 1 KRoundTripAACParam_Format KRoundTripAACParam = 0 KRoundTripAACParam_Quality KRoundTripAACParam = 2 KRoundTripAACParam_RateOrQuality KRoundTripAACParam = 2 )
func (KRoundTripAACParam) String ¶
func (e KRoundTripAACParam) String() string
type KSequenceTrackProperty ¶
type KSequenceTrackProperty uint32
const ( // KSequenceTrackProperty_AutomatedParameters: Indicates whether or not a music track’s purpose is audio unit parameter automation. KSequenceTrackProperty_AutomatedParameters KSequenceTrackProperty = 4 // KSequenceTrackProperty_LoopInfo: Looping information for a music track. KSequenceTrackProperty_LoopInfo KSequenceTrackProperty = 0 // KSequenceTrackProperty_MuteStatus: The mute/unmute state of a music track. KSequenceTrackProperty_MuteStatus KSequenceTrackProperty = 2 // KSequenceTrackProperty_OffsetTime: A music track’s start time in terms of beat number. KSequenceTrackProperty_OffsetTime KSequenceTrackProperty = 1 // KSequenceTrackProperty_SoloStatus: The solo/unsolo state of a music track. KSequenceTrackProperty_SoloStatus KSequenceTrackProperty = 3 // KSequenceTrackProperty_TimeResolution: The time resolution for a sequence of music events. KSequenceTrackProperty_TimeResolution KSequenceTrackProperty = 6 // KSequenceTrackProperty_TrackLength: The time of the last music event in a music track, plus time required for note fade-outs and so on. KSequenceTrackProperty_TrackLength KSequenceTrackProperty = 5 )
func (KSequenceTrackProperty) String ¶
func (e KSequenceTrackProperty) String() string
type KSpatialMixerParam ¶
type KSpatialMixerParam uint32
const ( KSpatialMixerParam_Azimuth KSpatialMixerParam = 0 KSpatialMixerParam_Distance KSpatialMixerParam = 2 KSpatialMixerParam_Elevation KSpatialMixerParam = 1 KSpatialMixerParam_Enable KSpatialMixerParam = 5 KSpatialMixerParam_Gain KSpatialMixerParam = 3 KSpatialMixerParam_GlobalReverbGain KSpatialMixerParam = 9 KSpatialMixerParam_HeadPitch KSpatialMixerParam = 20 KSpatialMixerParam_HeadRoll KSpatialMixerParam = 21 KSpatialMixerParam_HeadYaw KSpatialMixerParam = 19 KSpatialMixerParam_MaxGain KSpatialMixerParam = 7 KSpatialMixerParam_MinGain KSpatialMixerParam = 6 KSpatialMixerParam_ObstructionAttenuation KSpatialMixerParam = 11 KSpatialMixerParam_OcclusionAttenuation KSpatialMixerParam = 10 KSpatialMixerParam_PlaybackRate KSpatialMixerParam = 4 KSpatialMixerParam_ReverbBlend KSpatialMixerParam = 8 )
func (KSpatialMixerParam) String ¶
func (e KSpatialMixerParam) String() string
type KSpeakerConfiguration ¶
type KSpeakerConfiguration uint32
const ( KSpeakerConfiguration_5_0 KSpeakerConfiguration = 3 KSpeakerConfiguration_5_1 KSpeakerConfiguration = 3 KSpeakerConfiguration_HeadPhones KSpeakerConfiguration = 0 KSpeakerConfiguration_Quad KSpeakerConfiguration = 2 KSpeakerConfiguration_Stereo KSpeakerConfiguration = 1 )
func (KSpeakerConfiguration) String ¶
func (e KSpeakerConfiguration) String() string
type KStereoMixerParam ¶
type KStereoMixerParam uint32
const ( KStereoMixerParam_Pan KStereoMixerParam = 1 KStereoMixerParam_PostAveragePower KStereoMixerParam = 3000 KStereoMixerParam_PostPeakHoldLevel KStereoMixerParam = 4000 KStereoMixerParam_PreAveragePower KStereoMixerParam = 1000 KStereoMixerParam_PrePeakHoldLevel KStereoMixerParam = 2000 KStereoMixerParam_Volume KStereoMixerParam = 0 )
func (KStereoMixerParam) String ¶
func (e KStereoMixerParam) String() string
type KTimePitchParam ¶
type KTimePitchParam uint32
const ( KTimePitchParam_EffectBlend KTimePitchParam = 2 KTimePitchParam_Pitch KTimePitchParam = 1 KTimePitchParam_Rate KTimePitchParam = 0 )
func (KTimePitchParam) String ¶
func (e KTimePitchParam) String() string
type KaudioconvertererrFormatnotsupported ¶
type KaudioconvertererrFormatnotsupported int32
const ( KAudioConverterErr_BadPropertySizeError KaudioconvertererrFormatnotsupported = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz' KAudioConverterErr_FormatNotSupported KaudioconvertererrFormatnotsupported = 'f'<<24 | 'm'<<16 | 't'<<8 | '?' // 'fmt?' KAudioConverterErr_InputSampleRateOutOfRange KaudioconvertererrFormatnotsupported = '!'<<24 | 'i'<<16 | 's'<<8 | 'r' // '!isr' KAudioConverterErr_InvalidInputSize KaudioconvertererrFormatnotsupported = 'i'<<24 | 'n'<<16 | 's'<<8 | 'z' // 'insz' // KAudioConverterErr_InvalidOutputSize: The byte size is not an integer multiple of the frame size. KAudioConverterErr_InvalidOutputSize KaudioconvertererrFormatnotsupported = 'o'<<24 | 't'<<16 | 's'<<8 | 'z' // 'otsz' KAudioConverterErr_OperationNotSupported KaudioconvertererrFormatnotsupported = 0x6f703f3f KAudioConverterErr_OutputSampleRateOutOfRange KaudioconvertererrFormatnotsupported = '!'<<24 | 'o'<<16 | 's'<<8 | 'r' // '!osr' KAudioConverterErr_PropertyNotSupported KaudioconvertererrFormatnotsupported = 'p'<<24 | 'r'<<16 | 'o'<<8 | 'p' // 'prop' KAudioConverterErr_RequiresPacketDescriptionsError KaudioconvertererrFormatnotsupported = '!'<<24 | 'p'<<16 | 'k'<<8 | 'd' // '!pkd' KAudioConverterErr_UnspecifiedError KaudioconvertererrFormatnotsupported = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what' )
func (KaudioconvertererrFormatnotsupported) String ¶
func (e KaudioconvertererrFormatnotsupported) String() string
type KaudiofilemarkertypeGeneric ¶
type KaudiofilemarkertypeGeneric uint32
const ( // KAudioFileMarkerType_Generic: A generic marker. KAudioFileMarkerType_Generic KaudiofilemarkertypeGeneric = 0 )
func (KaudiofilemarkertypeGeneric) String ¶
func (e KaudiofilemarkertypeGeneric) String() string
type KaudiooutputunitpropertyCurrentdevice ¶
type KaudiooutputunitpropertyCurrentdevice uint32
const ( KAudioOutputUnitProperty_ChannelMap KaudiooutputunitpropertyCurrentdevice = 2002 // KAudioOutputUnitProperty_CurrentDevice: A read/write audio device ID object, of type [AudioDeviceID], valid on the audio unit global scope. KAudioOutputUnitProperty_CurrentDevice KaudiooutputunitpropertyCurrentdevice = 2000 // KAudioOutputUnitProperty_EnableIO: Specifies whether audio I/O is enabled for an I/O unit bus-scope combination. KAudioOutputUnitProperty_EnableIO KaudiooutputunitpropertyCurrentdevice = 2003 KAudioOutputUnitProperty_HasIO KaudiooutputunitpropertyCurrentdevice = 2006 KAudioOutputUnitProperty_IntendedSpatialExperience KaudiooutputunitpropertyCurrentdevice = 2016 // KAudioOutputUnitProperty_IsRunning: Indicates whether an audio unit is running ([TRUE]) or not ([FALSE]). KAudioOutputUnitProperty_IsRunning KaudiooutputunitpropertyCurrentdevice = 2001 // KAudioOutputUnitProperty_OSWorkgroup: The workgroup associated with the audio device underlying this Audio Unit. KAudioOutputUnitProperty_OSWorkgroup KaudiooutputunitpropertyCurrentdevice = 2015 // KAudioOutputUnitProperty_SetInputCallback: A read/write [AURenderCallbackStruct] data structure valid on the audio unit global scope. KAudioOutputUnitProperty_SetInputCallback KaudiooutputunitpropertyCurrentdevice = 2005 // KAudioOutputUnitProperty_StartTime: A write-only [AudioOutputUnitStartAtTimeParams] data structure valid on the audio unit global scope. KAudioOutputUnitProperty_StartTime KaudiooutputunitpropertyCurrentdevice = 2004 // KAudioOutputUnitProperty_StartTimestampsAtZero: A read/write [UInt32] value valid on the audio unit global scope. KAudioOutputUnitProperty_StartTimestampsAtZero KaudiooutputunitpropertyCurrentdevice = 2007 )
func (KaudiooutputunitpropertyCurrentdevice) String ¶
func (e KaudiooutputunitpropertyCurrentdevice) String() string
type KaudiooutputunitpropertyMidicallbacks ¶
type KaudiooutputunitpropertyMidicallbacks uint32
const ( KAudioOutputUnitProperty_HostReceivesRemoteControlEvents KaudiooutputunitpropertyMidicallbacks = 2011 KAudioOutputUnitProperty_HostTransportState KaudiooutputunitpropertyMidicallbacks = 2013 KAudioOutputUnitProperty_MIDICallbacks KaudiooutputunitpropertyMidicallbacks = 2010 KAudioOutputUnitProperty_NodeComponentDescription KaudiooutputunitpropertyMidicallbacks = 2014 KAudioOutputUnitProperty_RemoteControlToHost KaudiooutputunitpropertyMidicallbacks = 2012 )
func (KaudiooutputunitpropertyMidicallbacks) String ¶
func (e KaudiooutputunitpropertyMidicallbacks) String() string
type KaudiosessioncategoryAmbientsound ¶
type KaudiosessioncategoryAmbientsound uint32
const ( // KAudioSessionCategory_AmbientSound: For an app in which sound playback is nonprimary—that is, your app can be used successfully with the sound turned off. KAudioSessionCategory_AmbientSound KaudiosessioncategoryAmbientsound = 'a'<<24 | 'm'<<16 | 'b'<<8 | 'i' // 'ambi' // KAudioSessionCategory_AudioProcessing: For using an audio hardware codec or signal processor while not playing or recording audio. KAudioSessionCategory_AudioProcessing KaudiosessioncategoryAmbientsound = 'p'<<24 | 'r'<<16 | 'o'<<8 | 'c' // 'proc' // KAudioSessionCategory_MediaPlayback: For playing recorded music or other sounds that are central to the successful use of your app. KAudioSessionCategory_MediaPlayback KaudiosessioncategoryAmbientsound = 'm'<<24 | 'e'<<16 | 'd'<<8 | 'i' // 'medi' // KAudioSessionCategory_PlayAndRecord: Allows recording (input) and playback (output) of audio, such as for a VOIP (voice over IP) app. KAudioSessionCategory_PlayAndRecord KaudiosessioncategoryAmbientsound = 'p'<<24 | 'l'<<16 | 'a'<<8 | 'r' // 'plar' // KAudioSessionCategory_RecordAudio: For recording audio; this category silences playback audio. KAudioSessionCategory_RecordAudio KaudiosessioncategoryAmbientsound = 'r'<<24 | 'e'<<16 | 'c'<<8 | 'a' // 'reca' // KAudioSessionCategory_SoloAmbientSound: The default category, used unless you set a category with the AudioSessionSetProperty(_:_:_:) function. KAudioSessionCategory_SoloAmbientSound KaudiosessioncategoryAmbientsound = 's'<<24 | 'o'<<16 | 'l'<<8 | 'o' // 'solo' )
func (KaudiosessioncategoryAmbientsound) String ¶
func (e KaudiosessioncategoryAmbientsound) String() string
type KaudiosessioncategoryUserinterfacesoundeffects ¶
type KaudiosessioncategoryUserinterfacesoundeffects uint32
const ( // KAudioSessionCategory_LiveAudio: For live performance of music, such as for an app that simulates a piano. KAudioSessionCategory_LiveAudio KaudiosessioncategoryUserinterfacesoundeffects = 'l'<<24 | 'i'<<16 | 'v'<<8 | 'e' // 'live' // KAudioSessionCategory_UserInterfaceSoundEffects: For sound effects such as touch feedback, explosions, and so on. KAudioSessionCategory_UserInterfaceSoundEffects KaudiosessioncategoryUserinterfacesoundeffects = 'u'<<24 | 'i'<<16 | 'f'<<8 | 'x' // 'uifx' )
func (KaudiosessioncategoryUserinterfacesoundeffects) String ¶
func (e KaudiosessioncategoryUserinterfacesoundeffects) String() string
type KaudiosessioninterruptiontypeShould ¶
type KaudiosessioninterruptiontypeShould uint32
const ( // KAudioSessionInterruptionType_ShouldNotResume: Indicates that the interruption that has just ended was one for which it is not appropriate to resume playback; for example, your app had been interrupted by iPod playback. KAudioSessionInterruptionType_ShouldNotResume KaudiosessioninterruptiontypeShould = '!'<<24 | 'r'<<16 | 's'<<8 | 'm' // '!rsm' // KAudioSessionInterruptionType_ShouldResume: Indicates that the interruption that has just ended was one for which it is appropriate to immediately resume playback; for example, an incoming phone call was rejected by the user. KAudioSessionInterruptionType_ShouldResume KaudiosessioninterruptiontypeShould = 'i'<<24 | 'r'<<16 | 's'<<8 | 'm' // 'irsm' )
func (KaudiosessioninterruptiontypeShould) String ¶
func (e KaudiosessioninterruptiontypeShould) String() string
type KaudiosessionpropertyAudioroute ¶
type KaudiosessionpropertyAudioroute uint32
const (
KAudioSessionProperty_AudioRoute KaudiosessionpropertyAudioroute = 'r'<<24 | 'o'<<16 | 'u'<<8 | 't' // 'rout'
)
func (KaudiosessionpropertyAudioroute) String ¶
func (e KaudiosessionpropertyAudioroute) String() string
type KaudiosessionsetactiveflagNotifyothersondeactivation ¶
type KaudiosessionsetactiveflagNotifyothersondeactivation uint32
const ( // KAudioSessionSetActiveFlag_NotifyOthersOnDeactivation: Indicates that when your audio session deactivates, other audio sessions that had been interrupted by your session can return to their active state. KAudioSessionSetActiveFlag_NotifyOthersOnDeactivation KaudiosessionsetactiveflagNotifyothersondeactivation = 1 )
func (KaudiosessionsetactiveflagNotifyothersondeactivation) String ¶
func (e KaudiosessionsetactiveflagNotifyothersondeactivation) String() string
type KaudiounitcarbonvieweventMouse ¶
type KaudiounitcarbonvieweventMouse uint
const ( KAudioUnitCarbonViewEvent_MouseDownInControl KaudiounitcarbonvieweventMouse = 0 KAudioUnitCarbonViewEvent_MouseUpInControl KaudiounitcarbonvieweventMouse = 0 )
func (KaudiounitcarbonvieweventMouse) String ¶
func (e KaudiounitcarbonvieweventMouse) String() string
type KaudiounitclumpidSystem ¶
type KaudiounitclumpidSystem uint32
const ( // KAudioUnitClumpID_System: Reserved for system use. KAudioUnitClumpID_System KaudiounitclumpidSystem = 0 )
func (KaudiounitclumpidSystem) String ¶
func (e KaudiounitclumpidSystem) String() string
type KaudiouniterrInvalidproperty ¶
type KaudiouniterrInvalidproperty int32
const ( KAudioComponentErr_InstanceInvalidated KaudiouniterrInvalidproperty = -66749 KAudioComponentErr_InstanceTimedOut KaudiouniterrInvalidproperty = -66754 KAudioUnitErr_CannotDoInCurrentContext KaudiouniterrInvalidproperty = -10863 KAudioUnitErr_ComponentManagerNotSupported KaudiouniterrInvalidproperty = -66740 KAudioUnitErr_ExtensionNotFound KaudiouniterrInvalidproperty = -66744 KAudioUnitErr_FailedInitialization KaudiouniterrInvalidproperty = -10875 KAudioUnitErr_FileNotSpecified KaudiouniterrInvalidproperty = -10869 KAudioUnitErr_FormatNotSupported KaudiouniterrInvalidproperty = -10868 KAudioUnitErr_Initialized KaudiouniterrInvalidproperty = -10849 KAudioUnitErr_InvalidElement KaudiouniterrInvalidproperty = -10877 KAudioUnitErr_InvalidFile KaudiouniterrInvalidproperty = -10871 KAudioUnitErr_InvalidFilePath KaudiouniterrInvalidproperty = -66742 KAudioUnitErr_InvalidOfflineRender KaudiouniterrInvalidproperty = -10848 KAudioUnitErr_InvalidParameter KaudiouniterrInvalidproperty = -10878 KAudioUnitErr_InvalidParameterValue KaudiouniterrInvalidproperty = -66743 KAudioUnitErr_InvalidProperty KaudiouniterrInvalidproperty = -10879 KAudioUnitErr_InvalidPropertyValue KaudiouniterrInvalidproperty = -10851 KAudioUnitErr_InvalidScope KaudiouniterrInvalidproperty = -10866 KAudioUnitErr_MIDIOutputBufferFull KaudiouniterrInvalidproperty = -66753 KAudioUnitErr_MissingKey KaudiouniterrInvalidproperty = -66741 KAudioUnitErr_MultipleVoiceProcessors KaudiouniterrInvalidproperty = -66635 KAudioUnitErr_NoConnection KaudiouniterrInvalidproperty = -10876 KAudioUnitErr_PropertyNotInUse KaudiouniterrInvalidproperty = -10850 KAudioUnitErr_PropertyNotWritable KaudiouniterrInvalidproperty = -10865 KAudioUnitErr_RenderTimeout KaudiouniterrInvalidproperty = -66745 KAudioUnitErr_TooManyFramesToProcess KaudiouniterrInvalidproperty = -10874 KAudioUnitErr_Uninitialized KaudiouniterrInvalidproperty = -10867 KAudioUnitErr_UnknownFileType KaudiouniterrInvalidproperty = -10870 )
func (KaudiouniterrInvalidproperty) String ¶
func (e KaudiouniterrInvalidproperty) String() string
type KaudiounitmanufacturerApple ¶
type KaudiounitmanufacturerApple uint32
const (
KAudioUnitManufacturer_Apple KaudiounitmanufacturerApple = 'a'<<24 | 'p'<<16 | 'p'<<8 | 'l' // 'appl'
)
func (KaudiounitmanufacturerApple) String ¶
func (e KaudiounitmanufacturerApple) String() string
type KaudiounitparameterflagGlobal ¶
type KaudiounitparameterflagGlobal uint32
const ( KAudioUnitParameterFlag_Global KaudiounitparameterflagGlobal = 1 KAudioUnitParameterFlag_Group KaudiounitparameterflagGlobal = 8 KAudioUnitParameterFlag_Input KaudiounitparameterflagGlobal = 2 KAudioUnitParameterFlag_Output KaudiounitparameterflagGlobal = 4 )
func (KaudiounitparameterflagGlobal) String ¶
func (e KaudiounitparameterflagGlobal) String() string
type KaudiounitparameterflagHasname ¶
type KaudiounitparameterflagHasname uint32
const (
KAudioUnitParameterFlag_HasName KaudiounitparameterflagHasname = 2097152
)
func (KaudiounitparameterflagHasname) String ¶
func (e KaudiounitparameterflagHasname) String() string
type KaudiounitparameternameFull ¶
type KaudiounitparameternameFull int32
const (
KAudioUnitParameterName_Full KaudiounitparameternameFull = -1
)
func (KaudiounitparameternameFull) String ¶
func (e KaudiounitparameternameFull) String() string
type Kaudiounitproperty3dmixerdistanceparams ¶
type Kaudiounitproperty3dmixerdistanceparams uint32
const ( KAudioUnitProperty_3DMixerAttenuationCurve Kaudiounitproperty3dmixerdistanceparams = 3013 KAudioUnitProperty_3DMixerDistanceAtten Kaudiounitproperty3dmixerdistanceparams = 3004 KAudioUnitProperty_3DMixerDistanceParams Kaudiounitproperty3dmixerdistanceparams = 3010 KAudioUnitProperty_3DMixerRenderingFlags Kaudiounitproperty3dmixerdistanceparams = 3003 KAudioUnitProperty_DopplerShift Kaudiounitproperty3dmixerdistanceparams = 3002 KAudioUnitProperty_ReverbPreset Kaudiounitproperty3dmixerdistanceparams = 3012 )
func (Kaudiounitproperty3dmixerdistanceparams) String ¶
func (e Kaudiounitproperty3dmixerdistanceparams) String() string
type KaudiounitpropertyAllparametermidimappings ¶
type KaudiounitpropertyAllparametermidimappings uint32
const ( KAudioUnitProperty_AddParameterMIDIMapping KaudiounitpropertyAllparametermidimappings = 42 KAudioUnitProperty_AllParameterMIDIMappings KaudiounitpropertyAllparametermidimappings = 41 KAudioUnitProperty_HotMapParameterMIDIMapping KaudiounitpropertyAllparametermidimappings = 44 KAudioUnitProperty_RemoveParameterMIDIMapping KaudiounitpropertyAllparametermidimappings = 43 )
func (KaudiounitpropertyAllparametermidimappings) String ¶
func (e KaudiounitpropertyAllparametermidimappings) String() string
type KaudiounitpropertyClassinfo ¶
type KaudiounitpropertyClassinfo uint32
const ( KAudioUnitProperty_AUHostIdentifier KaudiounitpropertyClassinfo = 46 // KAudioUnitProperty_AudioChannelLayout: A read/write [AudioChannelLayout] data structure valid on the audio unit input and output scopes. KAudioUnitProperty_AudioChannelLayout KaudiounitpropertyClassinfo = 19 KAudioUnitProperty_AudioUnitMIDIProtocol KaudiounitpropertyClassinfo = 64 // KAudioUnitProperty_BypassEffect: A read/write [UInt32] value, representing a Boolean value, valid on the audio unit global scope. KAudioUnitProperty_BypassEffect KaudiounitpropertyClassinfo = 21 // KAudioUnitProperty_CPULoad: A read-only [Float64] value valid on the audio unit global scope. KAudioUnitProperty_CPULoad KaudiounitpropertyClassinfo = 6 // KAudioUnitProperty_ClassInfo: Describes the state of an audio unit. KAudioUnitProperty_ClassInfo KaudiounitpropertyClassinfo = 0 // KAudioUnitProperty_ClassInfoFromDocument: A read/write CFDictionary object, valid on the audio unit global scope. KAudioUnitProperty_ClassInfoFromDocument KaudiounitpropertyClassinfo = 50 // KAudioUnitProperty_CocoaUI: A read-only [AudioUnitCocoaViewInfo] data structure valid on the audio unit global scope. KAudioUnitProperty_CocoaUI KaudiounitpropertyClassinfo = 31 KAudioUnitProperty_ContextName KaudiounitpropertyClassinfo = 25 KAudioUnitProperty_DependentParameters KaudiounitpropertyClassinfo = 45 // KAudioUnitProperty_ElementCount: A read/write [UInt32] value valid on any audio unit scope. KAudioUnitProperty_ElementCount KaudiounitpropertyClassinfo = 11 // KAudioUnitProperty_ElementName: The name of the specified element. KAudioUnitProperty_ElementName KaudiounitpropertyClassinfo = 30 // KAudioUnitProperty_FactoryPresets: So-called factory presets (as opposed to user-configured presets) are ones supplied with an audio unit by the manufacturer. KAudioUnitProperty_FactoryPresets KaudiounitpropertyClassinfo = 24 // KAudioUnitProperty_FastDispatch: A read-only `void *` value valid on the audio unit global scope. KAudioUnitProperty_FastDispatch KaudiounitpropertyClassinfo = 5 KAudioUnitProperty_FrequencyResponse KaudiounitpropertyClassinfo = 52 KAudioUnitProperty_GetUIComponentList KaudiounitpropertyClassinfo = 18 KAudioUnitProperty_HostCallbacks KaudiounitpropertyClassinfo = 27 KAudioUnitProperty_HostMIDIProtocol KaudiounitpropertyClassinfo = 65 KAudioUnitProperty_IconLocation KaudiounitpropertyClassinfo = 39 // KAudioUnitProperty_InPlaceProcessing: A read/write [UInt32] value, representing a Boolean value, valid on the audio unit global scope. KAudioUnitProperty_InPlaceProcessing KaudiounitpropertyClassinfo = 29 // KAudioUnitProperty_InputSamplesInOutput: A read/write AUInputSamplesInOutputCallbackStruct struct, valid on the audio unit global scope. KAudioUnitProperty_InputSamplesInOutput KaudiounitpropertyClassinfo = 49 // KAudioUnitProperty_LastRenderError: A read-only [OSStatus] value valid on the audio unit global scope. KAudioUnitProperty_LastRenderError KaudiounitpropertyClassinfo = 22 KAudioUnitProperty_LastRenderSampleTime KaudiounitpropertyClassinfo = 61 // KAudioUnitProperty_Latency: A read-only [Float64] value valid on the audio unit global scope. KAudioUnitProperty_Latency KaudiounitpropertyClassinfo = 12 KAudioUnitProperty_LoadedOutOfProcess KaudiounitpropertyClassinfo = 62 KAudioUnitProperty_MIDIOutputBufferSizeHint KaudiounitpropertyClassinfo = 66 // KAudioUnitProperty_MIDIOutputCallback: A write-only AUMIDIOutputCallbackStruct struct, valid on the audio unit global scope. KAudioUnitProperty_MIDIOutputCallback KaudiounitpropertyClassinfo = 48 // KAudioUnitProperty_MIDIOutputCallbackInfo: A read-only CFArray object valid on the audio unit global scope. KAudioUnitProperty_MIDIOutputCallbackInfo KaudiounitpropertyClassinfo = 47 KAudioUnitProperty_MIDIOutputEventListCallback KaudiounitpropertyClassinfo = 63 // KAudioUnitProperty_MakeConnection: A write-only AudioUnitConnection data structure valid on the audio unit input scope. KAudioUnitProperty_MakeConnection KaudiounitpropertyClassinfo = 1 // KAudioUnitProperty_MaximumFramesPerSlice: Specifies the maximum number of sample frames an audio unit is prepared to supply on one invocation of its AudioUnitRender(_:_:_:_:_:_:) function. KAudioUnitProperty_MaximumFramesPerSlice KaudiounitpropertyClassinfo = 14 KAudioUnitProperty_NickName KaudiounitpropertyClassinfo = 54 KAudioUnitProperty_OfflineRender KaudiounitpropertyClassinfo = 37 // KAudioUnitProperty_ParameterClumpName: A read-only [AudioUnitParameterNameInfo] struct, valid on any audio unit scope. KAudioUnitProperty_ParameterClumpName KaudiounitpropertyClassinfo = 35 // KAudioUnitProperty_ParameterHistoryInfo: For parameters that have the flag_PlotHistory flag set, getting this property fills out the AudioUnitParameterHistoryInfo struct containing the recommended update rate and history duration. KAudioUnitProperty_ParameterHistoryInfo KaudiounitpropertyClassinfo = 53 // KAudioUnitProperty_ParameterIDName: A shortened version of an audio unit parameter name, suitable for compact display situations. KAudioUnitProperty_ParameterIDName KaudiounitpropertyClassinfo = 34 KAudioUnitProperty_ParameterInfo KaudiounitpropertyClassinfo = 4 // KAudioUnitProperty_ParameterList: A list of read-only parameter ID values valid on any audio unit scope. KAudioUnitProperty_ParameterList KaudiounitpropertyClassinfo = 3 // KAudioUnitProperty_ParameterStringFromValue: A read-only AudioUnitParameterStringFromValue struct, valid on any audio unit scope. KAudioUnitProperty_ParameterStringFromValue KaudiounitpropertyClassinfo = 33 KAudioUnitProperty_ParameterValueFromString KaudiounitpropertyClassinfo = 38 // KAudioUnitProperty_ParameterValueStrings: An array of names for a named, indexed audio unit parameter. KAudioUnitProperty_ParameterValueStrings KaudiounitpropertyClassinfo = 16 KAudioUnitProperty_ParametersForOverview KaudiounitpropertyClassinfo = 57 // KAudioUnitProperty_PresentPreset: The active factory preset for an audio unit. KAudioUnitProperty_PresentPreset KaudiounitpropertyClassinfo = 36 KAudioUnitProperty_PresentationLatency KaudiounitpropertyClassinfo = 40 // KAudioUnitProperty_RenderContextObserver: The block that the system calls when the rendering context changes. KAudioUnitProperty_RenderContextObserver KaudiounitpropertyClassinfo = 60 // KAudioUnitProperty_RenderQuality: A read/write [UInt32] value valid on the audio unit global scope. KAudioUnitProperty_RenderQuality KaudiounitpropertyClassinfo = 26 KAudioUnitProperty_RequestViewController KaudiounitpropertyClassinfo = 56 KAudioUnitProperty_SampleRate KaudiounitpropertyClassinfo = 2 KAudioUnitProperty_SetExternalBuffer KaudiounitpropertyClassinfo = 15 KAudioUnitProperty_SetRenderCallback KaudiounitpropertyClassinfo = 23 // KAudioUnitProperty_ShouldAllocateBuffer: A read/write [UInt32] value valid on the audio unit input and output scopes, settable individually on each element. KAudioUnitProperty_ShouldAllocateBuffer KaudiounitpropertyClassinfo = 51 KAudioUnitProperty_StreamFormat KaudiounitpropertyClassinfo = 8 // KAudioUnitProperty_SupportedChannelLayoutTags: A read-only array on [AudioChannelLayoutTag] structures, valid on the audio unit input and output scopes. KAudioUnitProperty_SupportedChannelLayoutTags KaudiounitpropertyClassinfo = 32 // KAudioUnitProperty_SupportedNumChannels: A read-only array of channel information structures valid on the audio unit global scope. KAudioUnitProperty_SupportedNumChannels KaudiounitpropertyClassinfo = 13 KAudioUnitProperty_SupportsMPE KaudiounitpropertyClassinfo = 58 // KAudioUnitProperty_TailTime: A read-only [Float64] value valid on the audio unit global scope. KAudioUnitProperty_TailTime KaudiounitpropertyClassinfo = 20 )
func (KaudiounitpropertyClassinfo) String ¶
func (e KaudiounitpropertyClassinfo) String() string
type KaudiounitpropertyDeferredrenderer ¶
type KaudiounitpropertyDeferredrenderer uint32
const ( KAudioUnitProperty_DeferredRendererExtraLatency KaudiounitpropertyDeferredrenderer = 3321 KAudioUnitProperty_DeferredRendererPullSize KaudiounitpropertyDeferredrenderer = 3320 KAudioUnitProperty_DeferredRendererWaitFrames KaudiounitpropertyDeferredrenderer = 3322 )
func (KaudiounitpropertyDeferredrenderer) String ¶
func (e KaudiounitpropertyDeferredrenderer) String() string
type KaudiounitpropertyDistanceattenuationdata ¶
type KaudiounitpropertyDistanceattenuationdata uint32
const (
KAudioUnitProperty_DistanceAttenuationData KaudiounitpropertyDistanceattenuationdata = 3600
)
func (KaudiounitpropertyDistanceattenuationdata) String ¶
func (e KaudiounitpropertyDistanceattenuationdata) String() string
type KaudiounitpropertyMeteringmode ¶
type KaudiounitpropertyMeteringmode uint32
const ( KAudioUnitProperty_InputAnchorTimeStamp KaudiounitpropertyMeteringmode = 3016 // KAudioUnitProperty_MatrixDimensions: Indicates the total number of channels for input and output of a given matrix mixer. KAudioUnitProperty_MatrixDimensions KaudiounitpropertyMeteringmode = 3009 // KAudioUnitProperty_MatrixLevels: Describes the internal state of a matrix mixer. KAudioUnitProperty_MatrixLevels KaudiounitpropertyMeteringmode = 3006 // KAudioUnitProperty_MeterClipping: Indicates audio clipping that has occurred since this property was last accessed. KAudioUnitProperty_MeterClipping KaudiounitpropertyMeteringmode = 3011 // KAudioUnitProperty_MeteringMode: Specifies whether metering is enabled or disabled for a particular scope-element combination. KAudioUnitProperty_MeteringMode KaudiounitpropertyMeteringmode = 3007 )
func (KaudiounitpropertyMeteringmode) String ¶
func (e KaudiounitpropertyMeteringmode) String() string
type KaudiounitpropertyRemotecontroleventlistener ¶
type KaudiounitpropertyRemotecontroleventlistener uint32
const ( KAudioUnitProperty_IsInterAppConnected KaudiounitpropertyRemotecontroleventlistener = 101 KAudioUnitProperty_PeerURL KaudiounitpropertyRemotecontroleventlistener = 102 KAudioUnitProperty_RemoteControlEventListener KaudiounitpropertyRemotecontroleventlistener = 100 )
func (KaudiounitpropertyRemotecontroleventlistener) String ¶
func (e KaudiounitpropertyRemotecontroleventlistener) String() string
type KaudiounitpropertyReverbroomtype ¶
type KaudiounitpropertyReverbroomtype uint32
const ( KAudioUnitProperty_ReverbRoomType KaudiounitpropertyReverbroomtype = 10 KAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF KaudiounitpropertyReverbroomtype = 3116 KAudioUnitProperty_SpatialMixerAttenuationCurve KaudiounitpropertyReverbroomtype = 3013 KAudioUnitProperty_SpatialMixerDistanceParams KaudiounitpropertyReverbroomtype = 3010 KAudioUnitProperty_SpatialMixerEnableHeadTracking KaudiounitpropertyReverbroomtype = 3111 KAudioUnitProperty_SpatialMixerOutputType KaudiounitpropertyReverbroomtype = 3100 KAudioUnitProperty_SpatialMixerPersonalizedHRTFMode KaudiounitpropertyReverbroomtype = 3113 KAudioUnitProperty_SpatialMixerPointSourceInHeadMode KaudiounitpropertyReverbroomtype = 3103 KAudioUnitProperty_SpatialMixerRenderingFlags KaudiounitpropertyReverbroomtype = 3003 KAudioUnitProperty_SpatialMixerSourceMode KaudiounitpropertyReverbroomtype = 3005 KAudioUnitProperty_SpatializationAlgorithm KaudiounitpropertyReverbroomtype = 3000 KAudioUnitProperty_UsesInternalReverb KaudiounitpropertyReverbroomtype = 1005 )
func (KaudiounitpropertyReverbroomtype) String ¶
func (e KaudiounitpropertyReverbroomtype) String() string
type KaudiounitpropertySamplerateconvertercomplexity ¶
type KaudiounitpropertySamplerateconvertercomplexity uint32
const (
KAudioUnitProperty_SampleRateConverterComplexity KaudiounitpropertySamplerateconvertercomplexity = 3014
)
func (KaudiounitpropertySamplerateconvertercomplexity) String ¶
func (e KaudiounitpropertySamplerateconvertercomplexity) String() string
type KaudiounitpropertyScheduleaudioslice ¶
type KaudiounitpropertyScheduleaudioslice uint32
const ( KAudioUnitProperty_CurrentPlayTime KaudiounitpropertyScheduleaudioslice = 3302 KAudioUnitProperty_ScheduleAudioSlice KaudiounitpropertyScheduleaudioslice = 3300 KAudioUnitProperty_ScheduleStartTimeStamp KaudiounitpropertyScheduleaudioslice = 3301 )
func (KaudiounitpropertyScheduleaudioslice) String ¶
func (e KaudiounitpropertyScheduleaudioslice) String() string
type KaudiounitpropertyScheduledfile ¶
type KaudiounitpropertyScheduledfile uint32
const ( KAudioUnitProperty_ScheduledFileBufferSizeFrames KaudiounitpropertyScheduledfile = 3313 KAudioUnitProperty_ScheduledFileIDs KaudiounitpropertyScheduledfile = 3310 KAudioUnitProperty_ScheduledFileNumberBuffers KaudiounitpropertyScheduledfile = 3314 KAudioUnitProperty_ScheduledFilePrime KaudiounitpropertyScheduledfile = 3312 KAudioUnitProperty_ScheduledFileRegion KaudiounitpropertyScheduledfile = 3311 )
func (KaudiounitpropertyScheduledfile) String ¶
func (e KaudiounitpropertyScheduledfile) String() string
type KaudiounitpropertySpeakerconfiguration ¶
type KaudiounitpropertySpeakerconfiguration uint32
const (
KAudioUnitProperty_SpeakerConfiguration KaudiounitpropertySpeakerconfiguration = 3001
)
func (KaudiounitpropertySpeakerconfiguration) String ¶
func (e KaudiounitpropertySpeakerconfiguration) String() string
type KaudiounitpropertySrcalgorithm ¶
type KaudiounitpropertySrcalgorithm uint32
const ( KAudioOfflineUnitProperty_InputSize KaudiounitpropertySrcalgorithm = 3020 KAudioOfflineUnitProperty_OutputSize KaudiounitpropertySrcalgorithm = 3021 KAudioUnitProperty_BusCount KaudiounitpropertySrcalgorithm = 11 KAudioUnitProperty_CurrentPreset KaudiounitpropertySrcalgorithm = 28 KAudioUnitProperty_MIDIControlMapping KaudiounitpropertySrcalgorithm = 17 KAudioUnitProperty_ParameterValueName KaudiounitpropertySrcalgorithm = 33 KAudioUnitProperty_SRCAlgorithm KaudiounitpropertySrcalgorithm = 9 )
func (KaudiounitpropertySrcalgorithm) String ¶
func (e KaudiounitpropertySrcalgorithm) String() string
type KaudiounitsubtypeAuconverter ¶
type KaudiounitsubtypeAuconverter uint32
const ( KAudioUnitSubType_AUAudioMix KaudiounitsubtypeAuconverter = 'a'<<24 | 'm'<<16 | 'i'<<8 | 'x' // 'amix' KAudioUnitSubType_AUConverter KaudiounitsubtypeAuconverter = 'c'<<24 | 'o'<<16 | 'n'<<8 | 'v' // 'conv' KAudioUnitSubType_AUiPodTimeOther KaudiounitsubtypeAuconverter = 'i'<<24 | 'p'<<16 | 't'<<8 | 'o' // 'ipto' KAudioUnitSubType_DeferredRenderer KaudiounitsubtypeAuconverter = 'd'<<24 | 'e'<<16 | 'f'<<8 | 'r' // 'defr' KAudioUnitSubType_Merger KaudiounitsubtypeAuconverter = 'm'<<24 | 'e'<<16 | 'r'<<8 | 'g' // 'merg' KAudioUnitSubType_MultiSplitter KaudiounitsubtypeAuconverter = 'm'<<24 | 's'<<16 | 'p'<<8 | 'l' // 'mspl' KAudioUnitSubType_NewTimePitch KaudiounitsubtypeAuconverter = 'n'<<24 | 'u'<<16 | 't'<<8 | 'p' // 'nutp' KAudioUnitSubType_RoundTripAAC KaudiounitsubtypeAuconverter = 'r'<<24 | 'a'<<16 | 'a'<<8 | 'c' // 'raac' KAudioUnitSubType_Splitter KaudiounitsubtypeAuconverter = 's'<<24 | 'p'<<16 | 'l'<<8 | 't' // 'splt' // KAudioUnitSubType_Varispeed: An audio unit that can control playback rate. KAudioUnitSubType_Varispeed KaudiounitsubtypeAuconverter = 'v'<<24 | 'a'<<16 | 'r'<<8 | 'i' // 'vari' )
func (KaudiounitsubtypeAuconverter) String ¶
func (e KaudiounitsubtypeAuconverter) String() string
type KaudiounitsubtypeDlssynth ¶
type KaudiounitsubtypeDlssynth uint32
const ( // KAudioUnitSubType_DLSSynth: A multitimbral instrument unit that can use sample banks in either DLS or SoundFont formats. KAudioUnitSubType_DLSSynth KaudiounitsubtypeDlssynth = 'd'<<24 | 'l'<<16 | 's'<<8 | ' ' // 'dls ' KAudioUnitSubType_MIDISynth KaudiounitsubtypeDlssynth = 'm'<<24 | 's'<<16 | 'y'<<8 | 'n' // 'msyn' KAudioUnitSubType_Sampler KaudiounitsubtypeDlssynth = 's'<<24 | 'a'<<16 | 'm'<<8 | 'p' // 'samp' )
func (KaudiounitsubtypeDlssynth) String ¶
func (e KaudiounitsubtypeDlssynth) String() string
type KaudiounitsubtypeGenericoutput ¶
type KaudiounitsubtypeGenericoutput uint32
const ( KAudioUnitSubType_GenericOutput KaudiounitsubtypeGenericoutput = 'g'<<24 | 'e'<<16 | 'n'<<8 | 'r' // 'genr' // KAudioUnitSubType_VoiceProcessingIO: An audio unit that interfaces to the audio inputs and outputs of iOS devices and provides voice processing features. KAudioUnitSubType_VoiceProcessingIO KaudiounitsubtypeGenericoutput = 'v'<<24 | 'p'<<16 | 'i'<<8 | 'o' // 'vpio' )
func (KaudiounitsubtypeGenericoutput) String ¶
func (e KaudiounitsubtypeGenericoutput) String() string
type KaudiounitsubtypeGraphiceq ¶
type KaudiounitsubtypeGraphiceq uint32
const ( KAudioUnitSubType_AUFilter KaudiounitsubtypeGraphiceq = 'f'<<24 | 'i'<<16 | 'l'<<8 | 't' // 'filt' // KAudioUnitSubType_GraphicEQ: An audio unit that provides a 10- or 31-band graphic equalizer. KAudioUnitSubType_GraphicEQ KaudiounitsubtypeGraphiceq = 'g'<<24 | 'r'<<16 | 'e'<<8 | 'q' // 'greq' KAudioUnitSubType_MatrixReverb KaudiounitsubtypeGraphiceq = 'm'<<24 | 'r'<<16 | 'e'<<8 | 'v' // 'mrev' // KAudioUnitSubType_MultiBandCompressor: An audio unit that provides four-bands of dynamic compression or expansion. KAudioUnitSubType_MultiBandCompressor KaudiounitsubtypeGraphiceq = 'm'<<24 | 'c'<<16 | 'm'<<8 | 'p' // 'mcmp' KAudioUnitSubType_NetSend KaudiounitsubtypeGraphiceq = 'n'<<24 | 's'<<16 | 'n'<<8 | 'd' // 'nsnd' // KAudioUnitSubType_Pitch: An audio unit for modifying the pitch of a signal. KAudioUnitSubType_Pitch KaudiounitsubtypeGraphiceq = 't'<<24 | 'm'<<16 | 'p'<<8 | 't' // 'tmpt' KAudioUnitSubType_RogerBeep KaudiounitsubtypeGraphiceq = 'r'<<24 | 'o'<<16 | 'g'<<8 | 'r' // 'rogr' )
func (KaudiounitsubtypeGraphiceq) String ¶
func (e KaudiounitsubtypeGraphiceq) String() string
type KaudiounitsubtypeHaloutput ¶
type KaudiounitsubtypeHaloutput uint32
const ( KAudioUnitSubType_DefaultOutput KaudiounitsubtypeHaloutput = 'd'<<24 | 'e'<<16 | 'f'<<8 | ' ' // 'def ' KAudioUnitSubType_HALOutput KaudiounitsubtypeHaloutput = 'a'<<24 | 'h'<<16 | 'a'<<8 | 'l' // 'ahal' KAudioUnitSubType_SystemOutput KaudiounitsubtypeHaloutput = 's'<<24 | 'y'<<16 | 's'<<8 | ' ' // 'sys ' )
func (KaudiounitsubtypeHaloutput) String ¶
func (e KaudiounitsubtypeHaloutput) String() string
type KaudiounitsubtypeMultichannelmixer ¶
type KaudiounitsubtypeMultichannelmixer uint32
const ( KAudioUnitSubType_MatrixMixer KaudiounitsubtypeMultichannelmixer = 'm'<<24 | 'x'<<16 | 'm'<<8 | 'x' // 'mxmx' // KAudioUnitSubType_MultiChannelMixer: An audio unit that can have any number of input buses, with any number of channels on each input bus, and one output bus. KAudioUnitSubType_MultiChannelMixer KaudiounitsubtypeMultichannelmixer = 'm'<<24 | 'c'<<16 | 'm'<<8 | 'x' // 'mcmx' KAudioUnitSubType_SpatialMixer KaudiounitsubtypeMultichannelmixer = '3'<<24 | 'd'<<16 | 'e'<<8 | 'm' // '3dem' )
func (KaudiounitsubtypeMultichannelmixer) String ¶
func (e KaudiounitsubtypeMultichannelmixer) String() string
type KaudiounitsubtypeNetreceive ¶
type KaudiounitsubtypeNetreceive uint32
const ( KAudioUnitSubType_AudioFilePlayer KaudiounitsubtypeNetreceive = 'a'<<24 | 'f'<<16 | 'p'<<8 | 'l' // 'afpl' KAudioUnitSubType_NetReceive KaudiounitsubtypeNetreceive = 'n'<<24 | 'r'<<16 | 'c'<<8 | 'v' // 'nrcv' KAudioUnitSubType_ScheduledSoundPlayer KaudiounitsubtypeNetreceive = 's'<<24 | 's'<<16 | 'p'<<8 | 'l' // 'sspl' )
func (KaudiounitsubtypeNetreceive) String ¶
func (e KaudiounitsubtypeNetreceive) String() string
type KaudiounitsubtypePeaklimiter ¶
type KaudiounitsubtypePeaklimiter uint32
const ( KAudioUnitSubType_AUSoundIsolation KaudiounitsubtypePeaklimiter = 'v'<<24 | 'o'<<16 | 'i'<<8 | 's' // 'vois' KAudioUnitSubType_BandPassFilter KaudiounitsubtypePeaklimiter = 'b'<<24 | 'p'<<16 | 'a'<<8 | 's' // 'bpas' // KAudioUnitSubType_Delay: An audio unit that introduces a time delay to a signal. KAudioUnitSubType_Delay KaudiounitsubtypePeaklimiter = 'd'<<24 | 'e'<<16 | 'l'<<8 | 'y' // 'dely' KAudioUnitSubType_Distortion KaudiounitsubtypePeaklimiter = 'd'<<24 | 'i'<<16 | 's'<<8 | 't' // 'dist' KAudioUnitSubType_DynamicsProcessor KaudiounitsubtypePeaklimiter = 'd'<<24 | 'c'<<16 | 'm'<<8 | 'p' // 'dcmp' KAudioUnitSubType_HighPassFilter KaudiounitsubtypePeaklimiter = 'h'<<24 | 'p'<<16 | 'a'<<8 | 's' // 'hpas' // KAudioUnitSubType_HighShelfFilter: An audio unit suitable for implementing a treble control in an audio playback or recording system. KAudioUnitSubType_HighShelfFilter KaudiounitsubtypePeaklimiter = 'h'<<24 | 's'<<16 | 'h'<<8 | 'f' // 'hshf' // KAudioUnitSubType_LowPassFilter: An audio unit that passes frequencies below a specified cutoff frequency, and blocks frequencies above that cutoff frequency. KAudioUnitSubType_LowPassFilter KaudiounitsubtypePeaklimiter = 'l'<<24 | 'p'<<16 | 'a'<<8 | 's' // 'lpas' // KAudioUnitSubType_LowShelfFilter: An audio unit suitable for implementing a bass control in an audio playback or recording system. KAudioUnitSubType_LowShelfFilter KaudiounitsubtypePeaklimiter = 'l'<<24 | 's'<<16 | 'h'<<8 | 'f' // 'lshf' KAudioUnitSubType_NBandEQ KaudiounitsubtypePeaklimiter = 'n'<<24 | 'b'<<16 | 'e'<<8 | 'q' // 'nbeq' // KAudioUnitSubType_ParametricEQ: An audio unit that provides a filter whose center frequency, boost/cut level, and Q can be adjusted. KAudioUnitSubType_ParametricEQ KaudiounitsubtypePeaklimiter = 'p'<<24 | 'm'<<16 | 'e'<<8 | 'q' // 'pmeq' // KAudioUnitSubType_PeakLimiter: An audio unit that enforces an upper dynamic limit on an audio signal. KAudioUnitSubType_PeakLimiter KaudiounitsubtypePeaklimiter = 'l'<<24 | 'm'<<16 | 't'<<8 | 'r' // 'lmtr' KAudioUnitSubType_Reverb2 KaudiounitsubtypePeaklimiter = 'r'<<24 | 'v'<<16 | 'b'<<8 | '2' // 'rvb2' // KAudioUnitSubType_SampleDelay: An audio unit that provides a time delay for a specified number of samples. KAudioUnitSubType_SampleDelay KaudiounitsubtypePeaklimiter = 's'<<24 | 'd'<<16 | 'l'<<8 | 'y' // 'sdly' )
func (KaudiounitsubtypePeaklimiter) String ¶
func (e KaudiounitsubtypePeaklimiter) String() string
type KaudiounitsubtypeSampler ¶
type KaudiounitsubtypeSampler uint32
type KaudiounitsubtypeScheduledsoundplayer ¶
type KaudiounitsubtypeScheduledsoundplayer uint32
type KaudiounitsubtypeSphericalheadpanner ¶
type KaudiounitsubtypeSphericalheadpanner uint32
const ( KAudioUnitSubType_HRTFPanner KaudiounitsubtypeSphericalheadpanner = 'h'<<24 | 'r'<<16 | 't'<<8 | 'f' // 'hrtf' KAudioUnitSubType_SoundFieldPanner KaudiounitsubtypeSphericalheadpanner = 'a'<<24 | 'm'<<16 | 'b'<<8 | 'i' // 'ambi' KAudioUnitSubType_SphericalHeadPanner KaudiounitsubtypeSphericalheadpanner = 's'<<24 | 'p'<<16 | 'h'<<8 | 'r' // 'sphr' KAudioUnitSubType_VectorPanner KaudiounitsubtypeSphericalheadpanner = 'v'<<24 | 'b'<<16 | 'a'<<8 | 's' // 'vbas' )
func (KaudiounitsubtypeSphericalheadpanner) String ¶
func (e KaudiounitsubtypeSphericalheadpanner) String() string
type KaudiounitsubtypeStereomixer ¶
type KaudiounitsubtypeStereomixer uint32
const ( // KAudioUnitSubType_StereoMixer: An audio unit that can have any number of input buses, each of which is mono or stereo, and one stereo output bus. KAudioUnitSubType_StereoMixer KaudiounitsubtypeStereomixer = 's'<<24 | 'm'<<16 | 'x'<<8 | 'r' // 'smxr' // Deprecated. KAudioUnitSubType_3DMixer KaudiounitsubtypeStereomixer = '3'<<24 | 'd'<<16 | 'm'<<8 | 'x' // '3dmx' )
func (KaudiounitsubtypeStereomixer) String ¶
func (e KaudiounitsubtypeStereomixer) String() string
type KaudiounitsubtypeTimepitch ¶
type KaudiounitsubtypeTimepitch uint32
const ( // KAudioUnitSubType_TimePitch: An audio unit that can provide independent control of playback rate and pitch. KAudioUnitSubType_TimePitch KaudiounitsubtypeTimepitch = 't'<<24 | 'm'<<16 | 'p'<<8 | 't' // 'tmpt' )
func (KaudiounitsubtypeTimepitch) String ¶
func (e KaudiounitsubtypeTimepitch) String() string
type KaudiounittypeRemote ¶
type KaudiounittypeRemote uint32
const ( KAudioUnitType_RemoteEffect KaudiounittypeRemote = 'a'<<24 | 'u'<<16 | 'r'<<8 | 'x' // 'aurx' KAudioUnitType_RemoteGenerator KaudiounittypeRemote = 'a'<<24 | 'u'<<16 | 'r'<<8 | 'g' // 'aurg' KAudioUnitType_RemoteInstrument KaudiounittypeRemote = 'a'<<24 | 'u'<<16 | 'r'<<8 | 'i' // 'auri' KAudioUnitType_RemoteMusicEffect KaudiounittypeRemote = 'a'<<24 | 'u'<<16 | 'r'<<8 | 'm' // 'aurm' )
func (KaudiounittypeRemote) String ¶
func (e KaudiounittypeRemote) String() string
type KaumidisynthpropertyEnablepreload ¶
type KaumidisynthpropertyEnablepreload uint32
const (
KAUMIDISynthProperty_EnablePreload KaumidisynthpropertyEnablepreload = 4119
)
func (KaumidisynthpropertyEnablepreload) String ¶
func (e KaumidisynthpropertyEnablepreload) String() string
type KaunbandeqfiltertypeParametric ¶
type KaunbandeqfiltertypeParametric int
const ( KAUNBandEQFilterType_2ndOrderButterworthHighPass KaunbandeqfiltertypeParametric = 2 KAUNBandEQFilterType_2ndOrderButterworthLowPass KaunbandeqfiltertypeParametric = 1 KAUNBandEQFilterType_BandPass KaunbandeqfiltertypeParametric = 5 KAUNBandEQFilterType_BandStop KaunbandeqfiltertypeParametric = 6 KAUNBandEQFilterType_HighShelf KaunbandeqfiltertypeParametric = 8 KAUNBandEQFilterType_LowShelf KaunbandeqfiltertypeParametric = 7 KAUNBandEQFilterType_Parametric KaunbandeqfiltertypeParametric = 0 KAUNBandEQFilterType_ResonantHighPass KaunbandeqfiltertypeParametric = 4 KAUNBandEQFilterType_ResonantHighShelf KaunbandeqfiltertypeParametric = 10 KAUNBandEQFilterType_ResonantLowPass KaunbandeqfiltertypeParametric = 3 KAUNBandEQFilterType_ResonantLowShelf KaunbandeqfiltertypeParametric = 9 KNumAUNBandEQFilterTypes KaunbandeqfiltertypeParametric = 11 )
func (KaunbandeqfiltertypeParametric) String ¶
func (e KaunbandeqfiltertypeParametric) String() string
type KauparameterlistenerAnyparameter ¶
type KauparameterlistenerAnyparameter uint32
const (
KAUParameterListener_AnyParameter KauparameterlistenerAnyparameter = 0xffffffff
)
func (KauparameterlistenerAnyparameter) String ¶
func (e KauparameterlistenerAnyparameter) String() string
type KausamplerDefault ¶
type KausamplerDefault uint32
const ( KAUSampler_DefaultBankLSB KausamplerDefault = 0 KAUSampler_DefaultMelodicBankMSB KausamplerDefault = 0x79 KAUSampler_DefaultPercussionBankMSB KausamplerDefault = 0x78 )
func (KausamplerDefault) String ¶
func (e KausamplerDefault) String() string
type KausamplerpropertyLoad ¶
type KausamplerpropertyLoad uint32
const ( KAUSamplerProperty_LoadAudioFiles KausamplerpropertyLoad = 4101 KAUSamplerProperty_LoadInstrument KausamplerpropertyLoad = 4102 )
func (KausamplerpropertyLoad) String ¶
func (e KausamplerpropertyLoad) String() string
type KauvoiceioerrUnexpectednumberofinputchannels ¶
type KauvoiceioerrUnexpectednumberofinputchannels int32
const ( // KAUVoiceIOErr_UnexpectedNumberOfInputChannels: An error that indicates that the audio unit encountered an unexpected number of input channels during initialization. KAUVoiceIOErr_UnexpectedNumberOfInputChannels KauvoiceioerrUnexpectednumberofinputchannels = -66784 )
func (KauvoiceioerrUnexpectednumberofinputchannels) String ¶
func (e KauvoiceioerrUnexpectednumberofinputchannels) String() string
type KauvoiceiopropertyMutedspeechactivityeventlistener ¶
type KauvoiceiopropertyMutedspeechactivityeventlistener uint32
const ( // KAUVoiceIOProperty_MutedSpeechActivityEventListener: A property to register a listener that the system calls when it detects speech while the user has the microphone muted. KAUVoiceIOProperty_MutedSpeechActivityEventListener KauvoiceiopropertyMutedspeechactivityeventlistener = 2106 )
func (KauvoiceiopropertyMutedspeechactivityeventlistener) String ¶
func (e KauvoiceiopropertyMutedspeechactivityeventlistener) String() string
type KauvoiceiopropertyOtheraudioduckingconfiguration ¶
type KauvoiceiopropertyOtheraudioduckingconfiguration uint32
const (
KAUVoiceIOProperty_OtherAudioDuckingConfiguration KauvoiceiopropertyOtheraudioduckingconfiguration = 2108
)
func (KauvoiceiopropertyOtheraudioduckingconfiguration) String ¶
func (e KauvoiceiopropertyOtheraudioduckingconfiguration) String() string
type KauvoiceiopropertyVoiceprocessingquality ¶
type KauvoiceiopropertyVoiceprocessingquality uint32
const (
KAUVoiceIOProperty_VoiceProcessingQuality KauvoiceiopropertyVoiceprocessingquality = 2103
)
func (KauvoiceiopropertyVoiceprocessingquality) String ¶
func (e KauvoiceiopropertyVoiceprocessingquality) String() string
type KcafSmpte ¶
type KcafSmpte uint32
const ( KCAF_SMPTE_TimeType2398 KcafSmpte = 12 KCAF_SMPTE_TimeType24 KcafSmpte = 1 KCAF_SMPTE_TimeType25 KcafSmpte = 2 KCAF_SMPTE_TimeType2997 KcafSmpte = 5 KCAF_SMPTE_TimeType2997Drop KcafSmpte = 6 KCAF_SMPTE_TimeType30 KcafSmpte = 4 KCAF_SMPTE_TimeType30Drop KcafSmpte = 3 KCAF_SMPTE_TimeType50 KcafSmpte = 11 KCAF_SMPTE_TimeType5994 KcafSmpte = 8 KCAF_SMPTE_TimeType5994Drop KcafSmpte = 10 KCAF_SMPTE_TimeType60 KcafSmpte = 7 KCAF_SMPTE_TimeType60Drop KcafSmpte = 9 KCAF_SMPTE_TimeTypeNone KcafSmpte = 0 )
type KgraphiceqparamNumberofbands ¶
type KgraphiceqparamNumberofbands uint32
const (
KGraphicEQParam_NumberOfBands KgraphiceqparamNumberofbands = 10000
)
func (KgraphiceqparamNumberofbands) String ¶
func (e KgraphiceqparamNumberofbands) String() string
type KhaloutputparamVolume ¶
type KhaloutputparamVolume uint32
const (
KHALOutputParam_Volume KhaloutputparamVolume = 14
)
func (KhaloutputparamVolume) String ¶
func (e KhaloutputparamVolume) String() string
type KmusicdevicepropertyGroupoutputbus ¶
type KmusicdevicepropertyGroupoutputbus uint32
const ( KAudioUnitProperty_PannerMode KmusicdevicepropertyGroupoutputbus = 3008 KMusicDeviceProperty_GroupOutputBus KmusicdevicepropertyGroupoutputbus = 1002 KMusicDeviceProperty_SoundBankFSSpec KmusicdevicepropertyGroupoutputbus = 1003 )
func (KmusicdevicepropertyGroupoutputbus) String ¶
func (e KmusicdevicepropertyGroupoutputbus) String() string
type KmusicdevicepropertyInstrumentcount ¶
type KmusicdevicepropertyInstrumentcount uint32
const ( KMusicDeviceProperty_BankName KmusicdevicepropertyInstrumentcount = 1007 KMusicDeviceProperty_InstrumentCount KmusicdevicepropertyInstrumentcount = 1000 KMusicDeviceProperty_SoundBankURL KmusicdevicepropertyInstrumentcount = 1100 )
func (KmusicdevicepropertyInstrumentcount) String ¶
func (e KmusicdevicepropertyInstrumentcount) String() string
type KmusicdevicepropertyInstrumentname ¶
type KmusicdevicepropertyInstrumentname uint32
const ( KMusicDeviceProperty_InstrumentName KmusicdevicepropertyInstrumentname = 1001 KMusicDeviceProperty_InstrumentNumber KmusicdevicepropertyInstrumentname = 1004 )
func (KmusicdevicepropertyInstrumentname) String ¶
func (e KmusicdevicepropertyInstrumentname) String() string
type KmusicdevicepropertyMidixmlnames ¶
type KmusicdevicepropertyMidixmlnames uint32
const ( KMusicDeviceProperty_DualSchedulingMode KmusicdevicepropertyMidixmlnames = 1013 KMusicDeviceProperty_MIDIXMLNames KmusicdevicepropertyMidixmlnames = 1006 KMusicDeviceProperty_PartGroup KmusicdevicepropertyMidixmlnames = 1010 KMusicDeviceProperty_SupportsStartStopNote KmusicdevicepropertyMidixmlnames = 1014 )
func (KmusicdevicepropertyMidixmlnames) String ¶
func (e KmusicdevicepropertyMidixmlnames) String() string
type KmusicdevicepropertyUsesinternalreverb ¶
type KmusicdevicepropertyUsesinternalreverb uint32
const ( KMusicDeviceProperty_SoundBankData KmusicdevicepropertyUsesinternalreverb = 1008 KMusicDeviceProperty_SoundBankFSRef KmusicdevicepropertyUsesinternalreverb = 1012 KMusicDeviceProperty_StreamFromDisk KmusicdevicepropertyUsesinternalreverb = 1011 KMusicDeviceProperty_UsesInternalReverb KmusicdevicepropertyUsesinternalreverb = 1005 )
func (KmusicdevicepropertyUsesinternalreverb) String ¶
func (e KmusicdevicepropertyUsesinternalreverb) String() string
type KmusiceventtypeExtendedcontrol ¶
type KmusiceventtypeExtendedcontrol uint32
const (
KMusicEventType_ExtendedControl KmusiceventtypeExtendedcontrol = 2
)
func (KmusiceventtypeExtendedcontrol) String ¶
func (e KmusiceventtypeExtendedcontrol) String() string
type KreverbparamFilter ¶
type KreverbparamFilter uint32
const ( KReverbParam_FilterBandwidth KreverbparamFilter = 15 KReverbParam_FilterEnable KreverbparamFilter = 18 KReverbParam_FilterFrequency KreverbparamFilter = 14 KReverbParam_FilterGain KreverbparamFilter = 16 KReverbParam_FilterType KreverbparamFilter = 17 )
func (KreverbparamFilter) String ¶
func (e KreverbparamFilter) String() string
type KsampledelayparamDelayframes ¶
type KsampledelayparamDelayframes uint32
const (
KSampleDelayParam_DelayFrames KsampledelayparamDelayframes = 0
)
func (KsampledelayparamDelayframes) String ¶
func (e KsampledelayparamDelayframes) String() string
type KsystemsoundidUserpreferredalert ¶
type KsystemsoundidUserpreferredalert uint32
const ( // KSystemSoundID_FlashScreen: On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to display a flash of light on the screen. KSystemSoundID_FlashScreen KsystemsoundidUserpreferredalert = 0xffe // KSystemSoundID_UserPreferredAlert: On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to play the alert specified in the Sound preference pane. KSystemSoundID_UserPreferredAlert KsystemsoundidUserpreferredalert = 0x1000 // KUserPreferredAlert: A deprecated sound identifier. KUserPreferredAlert KsystemsoundidUserpreferredalert = 4096 )
func (KsystemsoundidUserpreferredalert) String ¶
func (e KsystemsoundidUserpreferredalert) String() string
type KsystemsoundidVibrate ¶
type KsystemsoundidVibrate uint32
const ( // KSystemSoundID_Vibrate: On the iPhone, use this constant with the AudioServicesPlayAlertSound(_:) function to invoke a brief vibration. KSystemSoundID_Vibrate KsystemsoundidVibrate = 0xfff )
func (KsystemsoundidVibrate) String ¶
func (e KsystemsoundidVibrate) String() string
type KvarispeedparamPlayback ¶
type KvarispeedparamPlayback uint32
const ( KVarispeedParam_PlaybackCents KvarispeedparamPlayback = 1 KVarispeedParam_PlaybackRate KvarispeedparamPlayback = 0 )
func (KvarispeedparamPlayback) String ¶
func (e KvarispeedparamPlayback) String() string
type MIDIChannelMessage ¶
type MIDIChannelMessage struct {
Status uint8 // Data specific to the channel message.
Data1 uint8
Data2 uint8
Reserved uint8
}
MIDIChannelMessage - Describes a MIDI channel message.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MIDIChannelMessage
type MIDIChannelNumber ¶
type MIDIChannelNumber = uint8
MIDIChannelNumber is mIDI Channel, 0~15 (channels 1 through 16, respectively).
See: https://developer.apple.com/documentation/AudioToolbox/MIDIChannelNumber
type MIDIMetaEvent ¶
type MIDIMetaEvent struct {
MetaEventType uint8 // An integer that designates one of the types of MIDI metaevents.
Unused1 uint8
Unused2 uint8
Unused3 uint8
DataLength uint32
Data [1]uint8
}
MIDIMetaEvent - Describes a MIDI metaevent such as lyric text, time signature, and so on.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MIDIMetaEvent
type MIDINoteMessage ¶
type MIDINoteMessage struct {
Channel uint8 // The MIDI channel to play the note on.
Note uint8 // The note to play.
Velocity uint8 // The key-press velocity for the note.
ReleaseVelocity uint8 // The key-release velocity for the note. Use 0 if you don’t want to specify a particular value.
Duration float32 // The duration for the note.
}
MIDINoteMessage - Describes a MIDI note.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MIDINoteMessage
type MIDIRawData ¶
MIDIRawData - Describes a MIDI system-exclusive (SysEx) message.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MIDIRawData
type MixerDistanceParams ¶
type MixerDistanceParams struct {
MReferenceDistance float32
MMaxDistance float32
MMaxAttenuation float32
}
MixerDistanceParams
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MixerDistanceParams
type MusicDeviceComponent ¶
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceComponent
type MusicDeviceGroupID ¶
type MusicDeviceGroupID = uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceGroupID
type MusicDeviceInstrumentID ¶
type MusicDeviceInstrumentID = uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceInstrumentID
type MusicDeviceMIDIEventProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceMIDIEventProc
type MusicDeviceNoteParams ¶
type MusicDeviceNoteParams struct {
ArgCount uint32
MPitch float32
MVelocity float32
MControls [1]NoteParamsControlValue
}
MusicDeviceNoteParams
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceNoteParams
type MusicDeviceStartNoteProc ¶
type MusicDeviceStartNoteProc = func(unsafe.Pointer, uint32, uint32, *uint32, uint32, uintptr) int32
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStartNoteProc
type MusicDeviceStdNoteParams ¶
MusicDeviceStdNoteParams
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStdNoteParams
type MusicDeviceStopNoteProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStopNoteProc
type MusicDeviceSysExProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceSysExProc
type MusicEventIterator ¶
MusicEventIterator is a music event iterator sequentially handles events on a music track.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventIterator
type MusicEventType ¶
type MusicEventType = uint32
MusicEventType is mIDI and other music event types, used by music event iterator functions.
See: https://developer.apple.com/documentation/AudioToolbox/MusicEventType
type MusicEventUserData ¶
type MusicEventUserData struct {
Length uint32 // The size, in bytes, of the user data.
Data [1]uint8 // User-defined data.
}
MusicEventUserData - Describes a user-defined event.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MusicEventUserData
type MusicPlayer ¶
type MusicPlayer = uintptr
MusicPlayer is a music player plays a music sequence (of type MusicSequence).
See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayer
type MusicSequence ¶
type MusicSequence = uintptr
MusicSequence is a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequence
type MusicSequenceFileFlags ¶
type MusicSequenceFileFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileFlags
const ( KMusicSequenceFileFlags_Default MusicSequenceFileFlags = 0 // KMusicSequenceFileFlags_EraseFile: Specifies that an existing file should be erased when creating a new file. KMusicSequenceFileFlags_EraseFile MusicSequenceFileFlags = 1 )
func (MusicSequenceFileFlags) String ¶
func (e MusicSequenceFileFlags) String() string
type MusicSequenceFileTypeID ¶
type MusicSequenceFileTypeID uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceFileTypeID
const ( KMusicSequenceFile_AnyType MusicSequenceFileTypeID = 0 // KMusicSequenceFile_MIDIType: A MIDI file type KMusicSequenceFile_MIDIType MusicSequenceFileTypeID = 'm'<<24 | 'i'<<16 | 'd'<<8 | 'i' // 'midi' // KMusicSequenceFile_iMelodyType: An iMelody file type. KMusicSequenceFile_iMelodyType MusicSequenceFileTypeID = 'i'<<24 | 'm'<<16 | 'e'<<8 | 'l' // 'imel' )
func (MusicSequenceFileTypeID) String ¶
func (e MusicSequenceFileTypeID) String() string
type MusicSequenceLoadFlags ¶
type MusicSequenceLoadFlags uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceLoadFlags
const ( // KMusicSequenceLoadSMF_ChannelsToTracks: If this flag is set the resultant Sequence will contain a tempo track, 1 track for each MIDI Channel that is found in the SMF, 1 track for SysEx or MetaEvents - and this will be the last track in the sequence after the LoadSMFWithFlags calls. KMusicSequenceLoadSMF_ChannelsToTracks MusicSequenceLoadFlags = 1 KMusicSequenceLoadSMF_PreserveTracks MusicSequenceLoadFlags = 0 )
func (MusicSequenceLoadFlags) String ¶
func (e MusicSequenceLoadFlags) String() string
type MusicSequenceType ¶
type MusicSequenceType uint32
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceType
const ( // KMusicSequenceType_Beats: Used for a music sequence that corresponds to a normal MIDI file. KMusicSequenceType_Beats MusicSequenceType = 'b'<<24 | 'e'<<16 | 'a'<<8 | 't' // 'beat' // KMusicSequenceType_Samples: Used for audio samples; a music sequence of this type cannot be saved to a MIDI file. KMusicSequenceType_Samples MusicSequenceType = 's'<<24 | 'a'<<16 | 'm'<<8 | 'p' // 'samp' // KMusicSequenceType_Seconds: Used for a music sequence that corresponds to a MIDI file, but employs SMPTE timecode. KMusicSequenceType_Seconds MusicSequenceType = 's'<<24 | 'e'<<16 | 'c'<<8 | 's' // 'secs' )
func (MusicSequenceType) String ¶
func (e MusicSequenceType) String() string
type MusicSequenceUserCallback ¶
type MusicSequenceUserCallback = func(unsafe.Pointer, MusicSequence, MusicTrack, float64, uintptr, float64, float64)
See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceUserCallback
type MusicTimeStamp ¶
type MusicTimeStamp = float64
MusicTimeStamp is a timestamp for use by a music sequence.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTimeStamp
type MusicTrack ¶
type MusicTrack = uintptr
MusicTrack is a music track consists of a series of music events, each timestamped using units of beats.
See: https://developer.apple.com/documentation/AudioToolbox/MusicTrack
type MusicTrackLoopInfo ¶
type MusicTrackLoopInfo struct {
LoopDuration MusicTimeStamp // The point in a music track, measured in beats from the end of the music track, at which to begin playback during looped playback.
NumberOfLoops int32 // The number of times to play the designated portion of the music track.
}
MusicTrackLoopInfo - Supports control of the looping behavior of a music track.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MusicTrackLoopInfo
type NoteInstanceID ¶
type NoteInstanceID = uint32
See: https://developer.apple.com/documentation/AudioToolbox/NoteInstanceID
type NoteParamsControlValue ¶
type NoteParamsControlValue struct {
MID AudioUnitParameterID
MValue AudioUnitParameterValue
}
NoteParamsControlValue
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/NoteParamsControlValue
type ParameterEvent ¶
type ParameterEvent struct {
ParameterID AudioUnitParameterID
Scope AudioUnitScope
Element AudioUnitElement
Value AudioUnitParameterValue
}
ParameterEvent - Describes an audio unit parameter automation event.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ParameterEvent
type ReadPacketDataFDF ¶
type ReadPacketDataFDF = func(unsafe.Pointer, uint8, *uint32, uintptr, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/ReadPacketDataFDF
type ReadPacketsFDF ¶
type ReadPacketsFDF = func(unsafe.Pointer, uint8, *uint32, uintptr, int64, *uint32, unsafe.Pointer) int32
See: https://developer.apple.com/documentation/AudioToolbox/ReadPacketsFDF
type ScheduledAudioFileRegion ¶
type ScheduledAudioFileRegion struct {
MTimeStamp coreaudiotypes.AudioTimeStamp
MCompletionProc ScheduledAudioFileRegionCompletionProc // may be [NULL]
MCompletionProcUserData unsafe.Pointer
MAudioFile *string // Must be a valid and already-open audio file object (of type [AudioFileID]), as declared in `AudioToolbox/AudioFile.h`.
MLoopCount uint32 // `0` = do not loop
MStartFrame int64 // The frame offset into the file.
MFramesToPlay uint32 // The number of frames to play.
}
ScheduledAudioFileRegion
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ScheduledAudioFileRegion
type ScheduledAudioFileRegionCompletionProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/ScheduledAudioFileRegionCompletionProc
type ScheduledAudioSlice ¶
type ScheduledAudioSlice struct {
MTimeStamp coreaudiotypes.AudioTimeStamp
MCompletionProc ScheduledAudioSliceCompletionProc
MCompletionProcUserData unsafe.Pointer
MFlags AUScheduledAudioSliceFlags
MReserved uint32
MReserved2 unsafe.Pointer
MNumberFrames uint32
MBufferList *coreaudiotypes.AudioBufferList
}
ScheduledAudioSlice
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/ScheduledAudioSlice
type ScheduledAudioSliceCompletionProc ¶
See: https://developer.apple.com/documentation/AudioToolbox/ScheduledAudioSliceCompletionProc
type StringAUParameterNodeInt64Handler ¶
type StringAUParameterNodeInt64Handler = func(*AUParameterNode, int64) string
StringAUParameterNodeInt64Handler is the signature for a completion handler block.
type StringVoidHandler ¶
type StringVoidHandler = func() string
StringVoidHandler is the signature for a completion handler block.
type SystemSoundID ¶
type SystemSoundID = uint32
SystemSoundID is a system sound object, identified with a sound file you want to play.
See: https://developer.apple.com/documentation/AudioToolbox/SystemSoundID
type Uint32Uint32MIDICIProfileBoolHandler ¶
type Uint32Uint32MIDICIProfileBoolHandler = func(uint32, uint32, *coremidi.MIDICIProfile, bool)
Uint32Uint32MIDICIProfileBoolHandler handles completion with primitive and object results.
type Uint64Float32Handler ¶
Uint64Float32Handler handles A block called after the value of a parameter has changed.
Used by:
Source Files
¶
- au_audio_unit.gen.go
- au_audio_unit_bus.gen.go
- au_audio_unit_bus_array.gen.go
- au_audio_unit_preset.gen.go
- au_audio_unit_v2_bridge.gen.go
- au_parameter.gen.go
- au_parameter_group.gen.go
- au_parameter_node.gen.go
- au_parameter_tree.gen.go
- audio_unit_factory_protocol.gen.go
- blocks.gen.go
- cocoa_ui_base_protocol.gen.go
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- global_vars.gen.go
- message_channel_protocol.gen.go
- typedefs.gen.go
- types.gen.go
- undefined_types.gen.go