audiotoolbox

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Audio Units

Playback and Recording

Audio Files and Formats

Utilities

Functions

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

View Source
const KNumberOfResponseFrequencies uint32 = 1024

Variables

Functions

func AUEventListenerAddEventType

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

AUEventListenerAddEventType.

It panics if AUEventListenerAddEventType is unavailable at run time; use TryAUEventListenerAddEventType to get an error instead.

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.

It panics if AUEventListenerCreate is unavailable at run time; use TryAUEventListenerCreate to get an error instead.

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.

It panics if AUEventListenerCreateWithDispatchQueue is unavailable at run time; use TryAUEventListenerCreateWithDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerCreateWithDispatchQueue(_:_:_:_:_:)

func AUEventListenerNotify

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

AUEventListenerNotify.

It panics if AUEventListenerNotify is unavailable at run time; use TryAUEventListenerNotify to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUEventListenerNotify(_:_:_:)

func AUEventListenerRemoveEventType

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

AUEventListenerRemoveEventType.

It panics if AUEventListenerRemoveEventType is unavailable at run time; use TryAUEventListenerRemoveEventType to get an error instead.

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.

It panics if AUGraphAddNode is unavailable at run time; use TryAUGraphAddNode to get an error instead.

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.

It panics if AUGraphAddRenderNotify is unavailable at run time; use TryAUGraphAddRenderNotify to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphAddRenderNotify(_:_:_:)

func AUGraphClearConnections deprecated

func AUGraphClearConnections(inGraph AUGraph) int32

AUGraphClearConnections clears all of the interactions in an audio unit processing graph.

It panics if AUGraphClearConnections is unavailable at run time; use TryAUGraphClearConnections to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphClearConnections(_:)

func AUGraphClose deprecated

func AUGraphClose(inGraph AUGraph) int32

AUGraphClose closes an audio unit processing graph.

It panics if AUGraphClose is unavailable at run time; use TryAUGraphClose to get an error instead.

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.

It panics if AUGraphConnectNodeInput is unavailable at run time; use TryAUGraphConnectNodeInput to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphConnectNodeInput(_:_:_:_:_:)

func AUGraphCountNodeConnections deprecated

func AUGraphCountNodeConnections(inGraph AUGraph, inNode AUNode, outNumConnections *uint32) int32

AUGraphCountNodeConnections deprecated in OS X v10.5.

It panics if AUGraphCountNodeConnections is unavailable at run time; use TryAUGraphCountNodeConnections to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphCountNodeConnections

func AUGraphCountNodeInteractions deprecated

func AUGraphCountNodeInteractions(inGraph AUGraph, inNode AUNode, outNumInteractions *uint32) int32

AUGraphCountNodeInteractions retrieves the number of interactions of an audio processing graph’s node.

It panics if AUGraphCountNodeInteractions is unavailable at run time; use TryAUGraphCountNodeInteractions to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphCountNodeInteractions(_:_:_:)

func AUGraphDisconnectNodeInput deprecated

func AUGraphDisconnectNodeInput(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32) int32

AUGraphDisconnectNodeInput disconnects a node’s input.

It panics if AUGraphDisconnectNodeInput is unavailable at run time; use TryAUGraphDisconnectNodeInput to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphDisconnectNodeInput(_:_:_:)

func AUGraphGetCPULoad deprecated

func AUGraphGetCPULoad(inGraph AUGraph, outAverageCPULoad *float32) int32

AUGraphGetCPULoad obtains the short-term running average of the current CPU load of the audio processing graph.

It panics if AUGraphGetCPULoad is unavailable at run time; use TryAUGraphGetCPULoad to get an error instead.

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.

It panics if AUGraphGetConnectionInfo is unavailable at run time; use TryAUGraphGetConnectionInfo to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetConnectionInfo

func AUGraphGetIndNode deprecated

func AUGraphGetIndNode(inGraph AUGraph, inIndex uint32, outNode *AUNode) int32

AUGraphGetIndNode gets the audio processing graph node at a given index.

It panics if AUGraphGetIndNode is unavailable at run time; use TryAUGraphGetIndNode to get an error instead.

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.

It panics if AUGraphGetInteractionInfo is unavailable at run time; use TryAUGraphGetInteractionInfo to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetInteractionInfo(_:_:_:)

func AUGraphGetMaxCPULoad deprecated

func AUGraphGetMaxCPULoad(inGraph AUGraph, outMaxLoad *float32) int32

AUGraphGetMaxCPULoad obtains the maximum CPU load of an audio processing graph since this call was last made or since the graph was last started.

It panics if AUGraphGetMaxCPULoad is unavailable at run time; use TryAUGraphGetMaxCPULoad to get an error instead.

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.

It panics if AUGraphGetNodeConnections is unavailable at run time; use TryAUGraphGetNodeConnections to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeConnections

func AUGraphGetNodeCount deprecated

func AUGraphGetNodeCount(inGraph AUGraph, outNumberOfNodes *uint32) int32

AUGraphGetNodeCount the number of nodes in an audio processing graph.

It panics if AUGraphGetNodeCount is unavailable at run time; use TryAUGraphGetNodeCount to get an error instead.

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.

It panics if AUGraphGetNodeInfo is unavailable at run time; use TryAUGraphGetNodeInfo to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeInfo

func AUGraphGetNodeInfoSubGraph deprecated

func AUGraphGetNodeInfoSubGraph(inGraph AUGraph, inNode AUNode, outSubGraph *AUGraph) int32

AUGraphGetNodeInfoSubGraph gets the audio processing subgraph object represented by a node.

It panics if AUGraphGetNodeInfoSubGraph is unavailable at run time; use TryAUGraphGetNodeInfoSubGraph to get an error instead.

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.

It panics if AUGraphGetNodeInteractions is unavailable at run time; use TryAUGraphGetNodeInteractions to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNodeInteractions(_:_:_:_:)

func AUGraphGetNumberOfConnections deprecated

func AUGraphGetNumberOfConnections(inGraph AUGraph, outNumConnections *uint32) int32

AUGraphGetNumberOfConnections deprecated in OS X v10.5.

It panics if AUGraphGetNumberOfConnections is unavailable at run time; use TryAUGraphGetNumberOfConnections to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNumberOfConnections

func AUGraphGetNumberOfInteractions deprecated

func AUGraphGetNumberOfInteractions(inGraph AUGraph, outNumInteractions *uint32) int32

AUGraphGetNumberOfInteractions retrieves the number of interactions for an audio processing graph.

It panics if AUGraphGetNumberOfInteractions is unavailable at run time; use TryAUGraphGetNumberOfInteractions to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphGetNumberOfInteractions(_:_:)

func AUGraphInitialize deprecated

func AUGraphInitialize(inGraph AUGraph) int32

AUGraphInitialize initializes an audio processing graph.

It panics if AUGraphInitialize is unavailable at run time; use TryAUGraphInitialize to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphInitialize(_:)

func AUGraphIsInitialized deprecated

func AUGraphIsInitialized(inGraph AUGraph, outIsInitialized *bool) int32

AUGraphIsInitialized determines whether an audio processing graph is initialized.

It panics if AUGraphIsInitialized is unavailable at run time; use TryAUGraphIsInitialized to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsInitialized(_:_:)

func AUGraphIsNodeSubGraph deprecated

func AUGraphIsNodeSubGraph(inGraph AUGraph, inNode AUNode, outFlag *bool) int32

AUGraphIsNodeSubGraph determines whether a node object represent an audio processing graph or an audio unit.

It panics if AUGraphIsNodeSubGraph is unavailable at run time; use TryAUGraphIsNodeSubGraph to get an error instead.

Deprecated: Deprecated since macOS 27.0. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsNodeSubGraph(_:_:_:)

func AUGraphIsOpen deprecated

func AUGraphIsOpen(inGraph AUGraph, outIsOpen *bool) int32

AUGraphIsOpen determines whether an audio processing graph is open.

It panics if AUGraphIsOpen is unavailable at run time; use TryAUGraphIsOpen to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphIsOpen(_:_:)

func AUGraphIsRunning deprecated

func AUGraphIsRunning(inGraph AUGraph, outIsRunning *bool) int32

AUGraphIsRunning determines whether an audio processing graph running.

It panics if AUGraphIsRunning is unavailable at run time; use TryAUGraphIsRunning to get an error instead.

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.

It panics if AUGraphNewNode is unavailable at run time; use TryAUGraphNewNode to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphNewNode

func AUGraphNewNodeSubGraph deprecated

func AUGraphNewNodeSubGraph(inGraph AUGraph, outNode *AUNode) int32

AUGraphNewNodeSubGraph creates a node object to represent a subgraph.

It panics if AUGraphNewNodeSubGraph is unavailable at run time; use TryAUGraphNewNodeSubGraph to get an error instead.

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.

It panics if AUGraphNodeInfo is unavailable at run time; use TryAUGraphNodeInfo to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphNodeInfo(_:_:_:_:)

func AUGraphOpen deprecated

func AUGraphOpen(inGraph AUGraph) int32

AUGraphOpen opens an audio processing graph.

It panics if AUGraphOpen is unavailable at run time; use TryAUGraphOpen to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphOpen(_:)

func AUGraphRemoveNode deprecated

func AUGraphRemoveNode(inGraph AUGraph, inNode AUNode) int32

AUGraphRemoveNode removes a node from an audio processing graph.

It panics if AUGraphRemoveNode is unavailable at run time; use TryAUGraphRemoveNode to get an error instead.

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.

It panics if AUGraphRemoveRenderNotify is unavailable at run time; use TryAUGraphRemoveRenderNotify to get an error instead.

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.

It panics if AUGraphSetNodeInputCallback is unavailable at run time; use TryAUGraphSetNodeInputCallback to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphSetNodeInputCallback(_:_:_:_:)

func AUGraphStart deprecated

func AUGraphStart(inGraph AUGraph) int32

AUGraphStart starts an audio processing graph.

It panics if AUGraphStart is unavailable at run time; use TryAUGraphStart to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphStart(_:)

func AUGraphStop deprecated

func AUGraphStop(inGraph AUGraph) int32

AUGraphStop stops an audio processing graph.

It panics if AUGraphStop is unavailable at run time; use TryAUGraphStop to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphStop(_:)

func AUGraphUninitialize deprecated

func AUGraphUninitialize(inGraph AUGraph) int32

AUGraphUninitialize uninitializes an audio processing graph.

It panics if AUGraphUninitialize is unavailable at run time; use TryAUGraphUninitialize to get an error instead.

Deprecated: Deprecated since macOS 27.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/AUGraphUninitialize(_:)

func AUGraphUpdate deprecated

func AUGraphUpdate(inGraph AUGraph, outIsUpdated *bool) int32

AUGraphUpdate updates the state of a running audio processing graph.

It panics if AUGraphUpdate is unavailable at run time; use TryAUGraphUpdate to get an error instead.

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.

It panics if AUListenerAddParameter is unavailable at run time; use TryAUListenerAddParameter to get an error instead.

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.

It panics if AUListenerCreate is unavailable at run time; use TryAUListenerCreate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUListenerCreate(_:_:_:_:_:_:)

func AUListenerCreateWithDispatchQueue

func AUListenerCreateWithDispatchQueue(outListener *AUParameterListenerRef, inNotificationInterval float32, inDispatchQueue dispatch.Queue, inBlock AUParameterListenerBlock) int32

AUListenerCreateWithDispatchQueue.

It panics if AUListenerCreateWithDispatchQueue is unavailable at run time; use TryAUListenerCreateWithDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUListenerCreateWithDispatchQueue(_:_:_:_:)

func AUListenerDispose

func AUListenerDispose(inListener AUParameterListenerRef) int32

AUListenerDispose.

It panics if AUListenerDispose is unavailable at run time; use TryAUListenerDispose to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUListenerDispose(_:)

func AUListenerRemoveParameter

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

AUListenerRemoveParameter.

It panics if AUListenerRemoveParameter is unavailable at run time; use TryAUListenerRemoveParameter to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUListenerRemoveParameter(_:_:_:)

func AUParameterFormatValue

func AUParameterFormatValue(inParameterValue float64, inParameter *AudioUnitParameter, inTextBuffer *byte, inDigits uint32) *byte

AUParameterFormatValue.

It panics if AUParameterFormatValue is unavailable at run time; use TryAUParameterFormatValue to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterFormatValue(_:_:_:_:)

func AUParameterListenerNotify

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

AUParameterListenerNotify.

It panics if AUParameterListenerNotify is unavailable at run time; use TryAUParameterListenerNotify to get an error instead.

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.

It panics if AUParameterSet is unavailable at run time; use TryAUParameterSet to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterSet(_:_:_:_:_:)

func AUParameterValueToLinear

func AUParameterValueToLinear(inParameterValue AudioUnitParameterValue, inParameter *AudioUnitParameter) float32

AUParameterValueToLinear.

It panics if AUParameterValueToLinear is unavailable at run time; use TryAUParameterValueToLinear to get an error instead.

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.

It panics if AudioCodecAppendInputBufferList is unavailable at run time; use TryAudioCodecAppendInputBufferList to get an error instead.

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.

It panics if AudioCodecAppendInputData is unavailable at run time; use TryAudioCodecAppendInputData to get an error instead.

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.

It panics if AudioCodecGetProperty is unavailable at run time; use TryAudioCodecGetProperty to get an error instead.

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.

It panics if AudioCodecGetPropertyInfo is unavailable at run time; use TryAudioCodecGetPropertyInfo to get an error instead.

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.

It panics if AudioCodecInitialize is unavailable at run time; use TryAudioCodecInitialize to get an error instead.

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.

It panics if AudioCodecProduceOutputBufferList is unavailable at run time; use TryAudioCodecProduceOutputBufferList to get an error instead.

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.

It panics if AudioCodecProduceOutputPackets is unavailable at run time; use TryAudioCodecProduceOutputPackets to get an error instead.

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.

It panics if AudioCodecReset is unavailable at run time; use TryAudioCodecReset to get an error instead.

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.

It panics if AudioCodecSetProperty is unavailable at run time; use TryAudioCodecSetProperty to get an error instead.

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.

It panics if AudioCodecUninitialize is unavailable at run time; use TryAudioCodecUninitialize to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecUninitialize(_:)

func AudioComponentCopyConfigurationInfo

func AudioComponentCopyConfigurationInfo(inComponent AudioComponent, outConfigurationInfo *corefoundation.CFDictionaryRef) int32

AudioComponentCopyConfigurationInfo.

It panics if AudioComponentCopyConfigurationInfo is unavailable at run time; use TryAudioComponentCopyConfigurationInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentCopyConfigurationInfo(_:_:)

func AudioComponentCopyIcon

func AudioComponentCopyIcon(comp AudioComponent) *objc.ID

AudioComponentCopyIcon.

It panics if AudioComponentCopyIcon is unavailable at run time; use TryAudioComponentCopyIcon to get an error instead.

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.

It panics if AudioComponentCopyName is unavailable at run time; use TryAudioComponentCopyName to get an error instead.

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.

It panics if AudioComponentCount is unavailable at run time; use TryAudioComponentCount to get an error instead.

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.

It panics if AudioComponentGetDescription is unavailable at run time; use TryAudioComponentGetDescription to get an error instead.

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.

It panics if AudioComponentGetIcon is unavailable at run time; use TryAudioComponentGetIcon to get an error instead.

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).

It panics if AudioComponentGetVersion is unavailable at run time; use TryAudioComponentGetVersion to get an error instead.

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.

It panics if AudioComponentInstanceCanDo is unavailable at run time; use TryAudioComponentInstanceCanDo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceCanDo(_:_:)

func AudioComponentInstanceDispose

func AudioComponentInstanceDispose(inInstance AudioComponentInstance) int32

AudioComponentInstanceDispose disposes of an audio component instance.

It panics if AudioComponentInstanceDispose is unavailable at run time; use TryAudioComponentInstanceDispose to get an error instead.

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.

It panics if AudioComponentInstanceNew is unavailable at run time; use TryAudioComponentInstanceNew to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceNew(_:_:)

func AudioComponentInstantiate

func AudioComponentInstantiate(inComponent AudioComponent, inOptions AudioComponentInstantiationOptions)

AudioComponentInstantiate.

It panics if AudioComponentInstantiate is unavailable at run time; use TryAudioComponentInstantiate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstantiate(_:_:_:)

func AudioComponentValidate

func AudioComponentValidate(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef, outValidationResult *AudioComponentValidationResult) int32

AudioComponentValidate.

It panics if AudioComponentValidate is unavailable at run time; use TryAudioComponentValidate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentValidate(_:_:_:)

func AudioComponentValidateWithResults

func AudioComponentValidateWithResults(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef) int32

AudioComponentValidateWithResults.

It panics if AudioComponentValidateWithResults is unavailable at run time; use TryAudioComponentValidateWithResults to get an error instead.

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.

It panics if AudioConverterConvertBuffer is unavailable at run time; use TryAudioConverterConvertBuffer to get an error instead.

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.

It panics if AudioConverterConvertComplexBuffer is unavailable at run time; use TryAudioConverterConvertComplexBuffer to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterConvertComplexBuffer(_:_:_:_:)

func AudioConverterDispose

func AudioConverterDispose(inAudioConverter AudioConverterRef) int32

AudioConverterDispose disposes of an audio converter object.

It panics if AudioConverterDispose is unavailable at run time; use TryAudioConverterDispose to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterDispose(_:)

func AudioConverterFillBuffer deprecated

func AudioConverterFillBuffer(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataSize *uint32, outOutputData unsafe.Pointer) int32

AudioConverterFillBuffer.

It panics if AudioConverterFillBuffer is unavailable at run time; use TryAudioConverterFillBuffer to get an error instead.

Deprecated: Deprecated since macOS 10.5. Deprecated. Use [AudioConverterFillComplexBuffer(_:_:_:_:_:_:)](<https://developer.apple.com/documentation/AudioToolbox/AudioConverterFillComplexBuffer(_:_:_:_:_:_:)>) instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterFillBuffer

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.

It panics if AudioConverterFillComplexBuffer is unavailable at run time; use TryAudioConverterFillComplexBuffer to get an error instead.

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.

It panics if AudioConverterFillComplexBufferRealtimeSafe is unavailable at run time; use TryAudioConverterFillComplexBufferRealtimeSafe to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/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.

It panics if AudioConverterFillComplexBufferWithPacketDependencies is unavailable at run time; use TryAudioConverterFillComplexBufferWithPacketDependencies to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterFillComplexBufferWithPacketDependencies(_:_:_:_:_:_:_:)

func AudioConverterGetProperty

func AudioConverterGetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32

AudioConverterGetProperty gets an audio converter property value.

It panics if AudioConverterGetProperty is unavailable at run time; use TryAudioConverterGetProperty to get an error instead.

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.

It panics if AudioConverterGetPropertyInfo is unavailable at run time; use TryAudioConverterGetPropertyInfo to get an error instead.

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.

It panics if AudioConverterNew is unavailable at run time; use TryAudioConverterNew to get an error instead.

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.

It panics if AudioConverterNewSpecific is unavailable at run time; use TryAudioConverterNewSpecific to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterNewSpecific(_:_:_:_:_:)

func AudioConverterNewWithOptions

func AudioConverterNewWithOptions(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inOptions AudioConverterOptions, outAudioConverter *AudioConverterRef) int32

AudioConverterNewWithOptions.

It panics if AudioConverterNewWithOptions is unavailable at run time; use TryAudioConverterNewWithOptions to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterNewWithOptions(_:_:_:_:)

func AudioConverterPrepare

func AudioConverterPrepare(inFlags uint32, ioReserved unsafe.Pointer)

AudioConverterPrepare.

It panics if AudioConverterPrepare is unavailable at run time; use TryAudioConverterPrepare to get an error instead.

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.

It panics if AudioConverterReset is unavailable at run time; use TryAudioConverterReset to get an error instead.

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.

It panics if AudioConverterSetProperty is unavailable at run time; use TryAudioConverterSetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterSetProperty(_:_:_:_:)

func AudioFileClose

func AudioFileClose(inAudioFile AudioFileID) int32

AudioFileClose closes an audio file.

It panics if AudioFileClose is unavailable at run time; use TryAudioFileClose to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileClose(_:)

func AudioFileComponentCloseFile

func AudioFileComponentCloseFile(inComponent AudioFileComponent) int32

AudioFileComponentCloseFile.

It panics if AudioFileComponentCloseFile is unavailable at run time; use TryAudioFileComponentCloseFile to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentCloseFile(_:)

func AudioFileComponentCountUserData

func AudioFileComponentCountUserData(inComponent AudioFileComponent, inUserDataID uint32, outNumberItems *uint32) int32

AudioFileComponentCountUserData.

It panics if AudioFileComponentCountUserData is unavailable at run time; use TryAudioFileComponentCountUserData to get an error instead.

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.

It panics if AudioFileComponentCreate is unavailable at run time; use TryAudioFileComponentCreate to get an error instead.

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.

It panics if AudioFileComponentCreateURL is unavailable at run time; use TryAudioFileComponentCreateURL to get an error instead.

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.

It panics if AudioFileComponentDataIsThisFormat is unavailable at run time; use TryAudioFileComponentDataIsThisFormat to get an error instead.

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.

It panics if AudioFileComponentExtensionIsThisFormat is unavailable at run time; use TryAudioFileComponentExtensionIsThisFormat to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentExtensionIsThisFormat(_:_:_:)

func AudioFileComponentFileDataIsThisFormat

func AudioFileComponentFileDataIsThisFormat(inComponent AudioFileComponent, inDataByteSize uint32, inData unsafe.Pointer, outResult *uint32) int32

AudioFileComponentFileDataIsThisFormat.

It panics if AudioFileComponentFileDataIsThisFormat is unavailable at run time; use TryAudioFileComponentFileDataIsThisFormat to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentFileDataIsThisFormat(_:_:_:_:)

func AudioFileComponentFileIsThisFormat deprecated

func AudioFileComponentFileIsThisFormat(inComponent AudioFileComponent, inFileRefNum int16, outResult *uint32) int32

AudioFileComponentFileIsThisFormat.

It panics if AudioFileComponentFileIsThisFormat is unavailable at run time; use TryAudioFileComponentFileIsThisFormat to get an error instead.

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.

It panics if AudioFileComponentGetGlobalInfo is unavailable at run time; use TryAudioFileComponentGetGlobalInfo to get an error instead.

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.

It panics if AudioFileComponentGetGlobalInfoSize is unavailable at run time; use TryAudioFileComponentGetGlobalInfoSize to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetGlobalInfoSize(_:_:_:_:_:)

func AudioFileComponentGetProperty

func AudioFileComponentGetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32

AudioFileComponentGetProperty.

It panics if AudioFileComponentGetProperty is unavailable at run time; use TryAudioFileComponentGetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetProperty(_:_:_:_:)

func AudioFileComponentGetPropertyInfo

func AudioFileComponentGetPropertyInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, outPropertySize *uint32, outWritable *uint32) int32

AudioFileComponentGetPropertyInfo.

It panics if AudioFileComponentGetPropertyInfo is unavailable at run time; use TryAudioFileComponentGetPropertyInfo to get an error instead.

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.

It panics if AudioFileComponentGetUserData is unavailable at run time; use TryAudioFileComponentGetUserData to get an error instead.

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.

It panics if AudioFileComponentGetUserDataAtOffset is unavailable at run time; use TryAudioFileComponentGetUserDataAtOffset to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataAtOffset(_:_:_:_:_:_:)

func AudioFileComponentGetUserDataSize

func AudioFileComponentGetUserDataSize(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint32) int32

AudioFileComponentGetUserDataSize.

It panics if AudioFileComponentGetUserDataSize is unavailable at run time; use TryAudioFileComponentGetUserDataSize to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentGetUserDataSize(_:_:_:_:)

func AudioFileComponentGetUserDataSize64

func AudioFileComponentGetUserDataSize64(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint64) int32

AudioFileComponentGetUserDataSize64.

It panics if AudioFileComponentGetUserDataSize64 is unavailable at run time; use TryAudioFileComponentGetUserDataSize64 to get an error instead.

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.

It panics if AudioFileComponentInitialize is unavailable at run time; use TryAudioFileComponentInitialize to get an error instead.

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.

It panics if AudioFileComponentInitializeWithCallbacks is unavailable at run time; use TryAudioFileComponentInitializeWithCallbacks to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentInitializeWithCallbacks(_:_:_:_:_:_:_:_:_:)

func AudioFileComponentOpenFile deprecated

func AudioFileComponentOpenFile(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, inPermissions int8, inRefNum int16) int32

AudioFileComponentOpenFile.

It panics if AudioFileComponentOpenFile is unavailable at run time; use TryAudioFileComponentOpenFile to get an error instead.

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.

It panics if AudioFileComponentOpenURL is unavailable at run time; use TryAudioFileComponentOpenURL to get an error instead.

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.

It panics if AudioFileComponentOpenWithCallbacks is unavailable at run time; use TryAudioFileComponentOpenWithCallbacks to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentOpenWithCallbacks(_:_:_:_:_:_:)

func AudioFileComponentOptimize

func AudioFileComponentOptimize(inComponent AudioFileComponent) int32

AudioFileComponentOptimize.

It panics if AudioFileComponentOptimize is unavailable at run time; use TryAudioFileComponentOptimize to get an error instead.

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.

It panics if AudioFileComponentReadBytes is unavailable at run time; use TryAudioFileComponentReadBytes to get an error instead.

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.

It panics if AudioFileComponentReadPacketData is unavailable at run time; use TryAudioFileComponentReadPacketData to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadPacketData(_:_:_:_:_:_:_:)

func AudioFileComponentReadPackets

func AudioFileComponentReadPackets(inComponent AudioFileComponent, inUseCache bool, outNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) int32

AudioFileComponentReadPackets.

It panics if AudioFileComponentReadPackets is unavailable at run time; use TryAudioFileComponentReadPackets to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentReadPackets(_:_:_:_:_:_:_:)

func AudioFileComponentRemoveUserData

func AudioFileComponentRemoveUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32) int32

AudioFileComponentRemoveUserData.

It panics if AudioFileComponentRemoveUserData is unavailable at run time; use TryAudioFileComponentRemoveUserData to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileComponentRemoveUserData(_:_:_:)

func AudioFileComponentSetProperty

func AudioFileComponentSetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32

AudioFileComponentSetProperty.

It panics if AudioFileComponentSetProperty is unavailable at run time; use TryAudioFileComponentSetProperty to get an error instead.

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.

It panics if AudioFileComponentSetUserData is unavailable at run time; use TryAudioFileComponentSetUserData to get an error instead.

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.

It panics if AudioFileComponentWriteBytes is unavailable at run time; use TryAudioFileComponentWriteBytes to get an error instead.

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.

It panics if AudioFileComponentWritePackets is unavailable at run time; use TryAudioFileComponentWritePackets to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/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.

It panics if AudioFileCountUserData is unavailable at run time; use TryAudioFileCountUserData to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileCountUserData(_:_:_:)

func AudioFileCreate deprecated

func AudioFileCreate(inParentRef *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outNewFileRef *coreservices.FSRef, outAudioFile *AudioFileID) int32

AudioFileCreate.

It panics if AudioFileCreate is unavailable at run time; use TryAudioFileCreate to get an error instead.

Deprecated: Deprecated since macOS 10.6. Deprecated. Use [AudioFileCreateWithURL(_:_:_:_:_:)](<https://developer.apple.com/documentation/AudioToolbox/AudioFileCreateWithURL(_:_:_:_:_:)>) instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileCreate

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.

It panics if AudioFileCreateWithURL is unavailable at run time; use TryAudioFileCreateWithURL to get an error instead.

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.

It panics if AudioFileGetGlobalInfo is unavailable at run time; use TryAudioFileGetGlobalInfo to get an error instead.

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.

It panics if AudioFileGetGlobalInfoSize is unavailable at run time; use TryAudioFileGetGlobalInfoSize to get an error instead.

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.

It panics if AudioFileGetProperty is unavailable at run time; use TryAudioFileGetProperty to get an error instead.

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.

It panics if AudioFileGetPropertyInfo is unavailable at run time; use TryAudioFileGetPropertyInfo to get an error instead.

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.

It panics if AudioFileGetUserData is unavailable at run time; use TryAudioFileGetUserData to get an error instead.

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.

It panics if AudioFileGetUserDataAtOffset is unavailable at run time; use TryAudioFileGetUserDataAtOffset to get an error instead.

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.

It panics if AudioFileGetUserDataSize is unavailable at run time; use TryAudioFileGetUserDataSize to get an error instead.

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.

It panics if AudioFileGetUserDataSize64 is unavailable at run time; use TryAudioFileGetUserDataSize64 to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileGetUserDataSize64(_:_:_:_:)

func AudioFileInitialize deprecated

func AudioFileInitialize(inFileRef *coreservices.FSRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile *AudioFileID) int32

AudioFileInitialize.

It panics if AudioFileInitialize is unavailable at run time; use TryAudioFileInitialize to get an error instead.

Deprecated: Deprecated since macOS 10.6. Deprecated. Use [AudioFileInitializeWithCallbacks(_:_:_:_:_:_:_:_:_:)](<https://developer.apple.com/documentation/AudioToolbox/AudioFileInitializeWithCallbacks(_:_:_:_:_:_:_:_:_:)>) instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileInitialize

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.

It panics if AudioFileInitializeWithCallbacks is unavailable at run time; use TryAudioFileInitializeWithCallbacks to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileInitializeWithCallbacks(_:_:_:_:_:_:_:_:_:)

func AudioFileOpen deprecated

func AudioFileOpen(inFileRef *coreservices.FSRef, inPermissions AudioFilePermissions, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) int32

AudioFileOpen.

It panics if AudioFileOpen is unavailable at run time; use TryAudioFileOpen to get an error instead.

Deprecated: Deprecated since macOS 10.6. Deprecated. Use [AudioFileOpenURL(_:_:_:_:)](<https://developer.apple.com/documentation/AudioToolbox/AudioFileOpenURL(_:_:_:_:)>) instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileOpen

func AudioFileOpenURL

func AudioFileOpenURL(inFileRef corefoundation.CFURLRef, inPermissions AudioFilePermissions, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) int32

AudioFileOpenURL open an existing audio file specified by a URL.

It panics if AudioFileOpenURL is unavailable at run time; use TryAudioFileOpenURL to get an error instead.

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.

It panics if AudioFileOpenWithCallbacks is unavailable at run time; use TryAudioFileOpenWithCallbacks to get an error instead.

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.

It panics if AudioFileOptimize is unavailable at run time; use TryAudioFileOptimize to get an error instead.

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.

It panics if AudioFileReadBytes is unavailable at run time; use TryAudioFileReadBytes to get an error instead.

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.

It panics if AudioFileReadPacketData is unavailable at run time; use TryAudioFileReadPacketData to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileReadPacketData(_:_:_:_:_:_:_:)

func AudioFileReadPackets deprecated

func AudioFileReadPackets(inAudioFile AudioFileID, inUseCache bool, outNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) int32

AudioFileReadPackets reads a fixed duration of audio data from an audio file.

It panics if AudioFileReadPackets is unavailable at run time; use TryAudioFileReadPackets to get an error instead.

Deprecated: Deprecated since macOS 10.10. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileReadPackets(_:_:_:_:_:_:_:)

func AudioFileRemoveUserData

func AudioFileRemoveUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32) int32

AudioFileRemoveUserData removes a user data item from an audio file.

It panics if AudioFileRemoveUserData is unavailable at run time; use TryAudioFileRemoveUserData to get an error instead.

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

It panics if AudioFileSetProperty is unavailable at run time; use TryAudioFileSetProperty to get an error instead.

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.

It panics if AudioFileSetUserData is unavailable at run time; use TryAudioFileSetUserData to get an error instead.

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.

It panics if AudioFileStreamClose is unavailable at run time; use TryAudioFileStreamClose to get an error instead.

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.

It panics if AudioFileStreamGetProperty is unavailable at run time; use TryAudioFileStreamGetProperty to get an error instead.

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.

It panics if AudioFileStreamGetPropertyInfo is unavailable at run time; use TryAudioFileStreamGetPropertyInfo to get an error instead.

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.

It panics if AudioFileStreamOpen is unavailable at run time; use TryAudioFileStreamOpen to get an error instead.

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.

It panics if AudioFileStreamParseBytes is unavailable at run time; use TryAudioFileStreamParseBytes to get an error instead.

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.

It panics if AudioFileStreamSeek is unavailable at run time; use TryAudioFileStreamSeek to get an error instead.

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.

It panics if AudioFileStreamSetProperty is unavailable at run time; use TryAudioFileStreamSetProperty to get an error instead.

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.

It panics if AudioFileWriteBytes is unavailable at run time; use TryAudioFileWriteBytes to get an error instead.

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.

It panics if AudioFileWritePackets is unavailable at run time; use TryAudioFileWritePackets to get an error instead.

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.

It panics if AudioFileWritePacketsWithDependencies is unavailable at run time; use TryAudioFileWritePacketsWithDependencies to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/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.

It panics if AudioFormatGetProperty is unavailable at run time; use TryAudioFormatGetProperty to get an error instead.

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.

It panics if AudioFormatGetPropertyInfo is unavailable at run time; use TryAudioFormatGetPropertyInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFormatGetPropertyInfo(_:_:_:_:)

func AudioHardwareServiceAddPropertyListener deprecated

func AudioHardwareServiceAddPropertyListener(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) int32

AudioHardwareServiceAddPropertyListener registers a HAL audio object property listener callback function to be invoked when a specified property changes.

It panics if AudioHardwareServiceAddPropertyListener is unavailable at run time; use TryAudioHardwareServiceAddPropertyListener to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceAddPropertyListener(_:_:_:_:)

func AudioHardwareServiceGetPropertyData deprecated

func AudioHardwareServiceGetPropertyData(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, ioDataSize *uint32, outData unsafe.Pointer) int32

AudioHardwareServiceGetPropertyData gets the value for a specified property.

It panics if AudioHardwareServiceGetPropertyData is unavailable at run time; use TryAudioHardwareServiceGetPropertyData to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceGetPropertyData(_:_:_:_:_:_:)

func AudioHardwareServiceGetPropertyDataSize deprecated

func AudioHardwareServiceGetPropertyDataSize(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, outDataSize *uint32) int32

AudioHardwareServiceGetPropertyDataSize gets the payload size for a given property.

It panics if AudioHardwareServiceGetPropertyDataSize is unavailable at run time; use TryAudioHardwareServiceGetPropertyDataSize to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)

func AudioHardwareServiceHasProperty deprecated

func AudioHardwareServiceHasProperty(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress) bool

AudioHardwareServiceHasProperty queries a HAL audio object about whether or not it has a specified property.

It panics if AudioHardwareServiceHasProperty is unavailable at run time; use TryAudioHardwareServiceHasProperty to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceHasProperty(_:_:)

func AudioHardwareServiceIsPropertySettable deprecated

func AudioHardwareServiceIsPropertySettable(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, outIsSettable *bool) int32

AudioHardwareServiceIsPropertySettable queries a HAL audio object about whether a specified property is settable.

It panics if AudioHardwareServiceIsPropertySettable is unavailable at run time; use TryAudioHardwareServiceIsPropertySettable to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceIsPropertySettable(_:_:_:)

func AudioHardwareServiceRemovePropertyListener deprecated

func AudioHardwareServiceRemovePropertyListener(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) int32

AudioHardwareServiceRemovePropertyListener unregisters a HAL audio object property listener callback function.

It panics if AudioHardwareServiceRemovePropertyListener is unavailable at run time; use TryAudioHardwareServiceRemovePropertyListener to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceRemovePropertyListener(_:_:_:_:)

func AudioHardwareServiceSetPropertyData deprecated

func AudioHardwareServiceSetPropertyData(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, inDataSize uint32, inData unsafe.Pointer) int32

AudioHardwareServiceSetPropertyData asks a HAL audio object to change the value of a specified property.

It panics if AudioHardwareServiceSetPropertyData is unavailable at run time; use TryAudioHardwareServiceSetPropertyData to get an error instead.

Deprecated: Deprecated since macOS 10.11. no longer supported

See: https://developer.apple.com/documentation/AudioToolbox/AudioHardwareServiceSetPropertyData(_:_:_:_:_:_:)

func AudioOutputUnitStart

func AudioOutputUnitStart(ci AudioUnit) int32

AudioOutputUnitStart starts an I/O audio unit, which in turn starts the audio unit processing graph that it is connected to.

It panics if AudioOutputUnitStart is unavailable at run time; use TryAudioOutputUnitStart to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioOutputUnitStart(_:)

func AudioOutputUnitStop

func AudioOutputUnitStop(ci AudioUnit) int32

AudioOutputUnitStop stops an I/O audio unit, which in turn stops the audio unit processing graph that it is connected to.

It panics if AudioOutputUnitStop is unavailable at run time; use TryAudioOutputUnitStop to get an error instead.

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.

It panics if AudioQueueAddPropertyListener is unavailable at run time; use TryAudioQueueAddPropertyListener to get an error instead.

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.

It panics if AudioQueueAllocateBuffer is unavailable at run time; use TryAudioQueueAllocateBuffer to get an error instead.

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.

It panics if AudioQueueAllocateBufferWithPacketDescriptions is unavailable at run time; use TryAudioQueueAllocateBufferWithPacketDescriptions to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueAllocateBufferWithPacketDescriptions(_:_:_:_:)

func AudioQueueCreateTimeline

func AudioQueueCreateTimeline(inAQ AudioQueueRef, outTimeline *AudioQueueTimelineRef) int32

AudioQueueCreateTimeline creates a timeline object for an audio queue.

It panics if AudioQueueCreateTimeline is unavailable at run time; use TryAudioQueueCreateTimeline to get an error instead.

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.

It panics if AudioQueueDeviceGetCurrentTime is unavailable at run time; use TryAudioQueueDeviceGetCurrentTime to get an error instead.

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.

It panics if AudioQueueDeviceGetNearestStartTime is unavailable at run time; use TryAudioQueueDeviceGetNearestStartTime to get an error instead.

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.

It panics if AudioQueueDeviceTranslateTime is unavailable at run time; use TryAudioQueueDeviceTranslateTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueDeviceTranslateTime(_:_:_:)

func AudioQueueDispose

func AudioQueueDispose(inAQ AudioQueueRef, inImmediate bool) int32

AudioQueueDispose disposes of an audio queue.

It panics if AudioQueueDispose is unavailable at run time; use TryAudioQueueDispose to get an error instead.

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.

It panics if AudioQueueDisposeTimeline is unavailable at run time; use TryAudioQueueDisposeTimeline to get an error instead.

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.

It panics if AudioQueueEnqueueBuffer is unavailable at run time; use TryAudioQueueEnqueueBuffer to get an error instead.

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.

It panics if AudioQueueEnqueueBufferWithParameters is unavailable at run time; use TryAudioQueueEnqueueBufferWithParameters to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueEnqueueBufferWithParameters(_:_:_:_:_:_:_:_:_:_:)

func AudioQueueFlush

func AudioQueueFlush(inAQ AudioQueueRef) int32

AudioQueueFlush resets an audio queue’s decoder state.

It panics if AudioQueueFlush is unavailable at run time; use TryAudioQueueFlush to get an error instead.

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.

It panics if AudioQueueFreeBuffer is unavailable at run time; use TryAudioQueueFreeBuffer to get an error instead.

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.

It panics if AudioQueueGetCurrentTime is unavailable at run time; use TryAudioQueueGetCurrentTime to get an error instead.

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.

It panics if AudioQueueGetParameter is unavailable at run time; use TryAudioQueueGetParameter to get an error instead.

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.

It panics if AudioQueueGetProperty is unavailable at run time; use TryAudioQueueGetProperty to get an error instead.

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.

It panics if AudioQueueGetPropertySize is unavailable at run time; use TryAudioQueueGetPropertySize to get an error instead.

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.

It panics if AudioQueueNewInput is unavailable at run time; use TryAudioQueueNewInput to get an error instead.

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.

It panics if AudioQueueNewInputWithDispatchQueue is unavailable at run time; use TryAudioQueueNewInputWithDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/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.

It panics if AudioQueueNewOutput is unavailable at run time; use TryAudioQueueNewOutput to get an error instead.

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.

It panics if AudioQueueNewOutputWithDispatchQueue is unavailable at run time; use TryAudioQueueNewOutputWithDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/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.

It panics if AudioQueueOfflineRender is unavailable at run time; use TryAudioQueueOfflineRender to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueOfflineRender(_:_:_:_:)

func AudioQueuePause

func AudioQueuePause(inAQ AudioQueueRef) int32

AudioQueuePause pauses audio playback or recording.

It panics if AudioQueuePause is unavailable at run time; use TryAudioQueuePause to get an error instead.

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.

It panics if AudioQueuePrime is unavailable at run time; use TryAudioQueuePrime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePrime(_:_:_:)

func AudioQueueProcessingTapDispose

func AudioQueueProcessingTapDispose(inAQTap AudioQueueProcessingTapRef) int32

AudioQueueProcessingTapDispose.

It panics if AudioQueueProcessingTapDispose is unavailable at run time; use TryAudioQueueProcessingTapDispose to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapDispose(_:)

func AudioQueueProcessingTapGetQueueTime

func AudioQueueProcessingTapGetQueueTime(inAQTap AudioQueueProcessingTapRef, outQueueSampleTime *float64, outQueueFrameCount *uint32) int32

AudioQueueProcessingTapGetQueueTime.

It panics if AudioQueueProcessingTapGetQueueTime is unavailable at run time; use TryAudioQueueProcessingTapGetQueueTime to get an error instead.

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.

It panics if AudioQueueProcessingTapGetSourceAudio is unavailable at run time; use TryAudioQueueProcessingTapGetSourceAudio to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueProcessingTapGetSourceAudio(_:_:_:_:_:_:)

func AudioQueueProcessingTapNew

func AudioQueueProcessingTapNew(inAQ AudioQueueRef, inCallback AudioQueueProcessingTapCallback, inClientData unsafe.Pointer, inFlags AudioQueueProcessingTapFlags, outMaxFrames *uint32, outProcessingFormat *coreaudiotypes.AudioStreamBasicDescription, outAQTap *AudioQueueProcessingTapRef) int32

AudioQueueProcessingTapNew.

It panics if AudioQueueProcessingTapNew is unavailable at run time; use TryAudioQueueProcessingTapNew to get an error instead.

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.

It panics if AudioQueueRemovePropertyListener is unavailable at run time; use TryAudioQueueRemovePropertyListener to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueRemovePropertyListener(_:_:_:_:)

func AudioQueueReset

func AudioQueueReset(inAQ AudioQueueRef) int32

AudioQueueReset resets an audio queue.

It panics if AudioQueueReset is unavailable at run time; use TryAudioQueueReset to get an error instead.

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.

It panics if AudioQueueSetOfflineRenderFormat is unavailable at run time; use TryAudioQueueSetOfflineRenderFormat to get an error instead.

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.

It panics if AudioQueueSetParameter is unavailable at run time; use TryAudioQueueSetParameter to get an error instead.

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.

It panics if AudioQueueSetProperty is unavailable at run time; use TryAudioQueueSetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueSetProperty(_:_:_:_:)

func AudioQueueStart

func AudioQueueStart(inAQ AudioQueueRef, inStartTime *coreaudiotypes.AudioTimeStamp) int32

AudioQueueStart begins playing or recording audio.

It panics if AudioQueueStart is unavailable at run time; use TryAudioQueueStart to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueStart(_:_:)

func AudioQueueStop

func AudioQueueStop(inAQ AudioQueueRef, inImmediate bool) int32

AudioQueueStop stops playing or recording audio.

It panics if AudioQueueStop is unavailable at run time; use TryAudioQueueStop to get an error instead.

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.

It panics if AudioServicesAddSystemSoundCompletion is unavailable at run time; use TryAudioServicesAddSystemSoundCompletion to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesAddSystemSoundCompletion(_:_:_:_:_:)

func AudioServicesCreateSystemSoundID

func AudioServicesCreateSystemSoundID(inFileURL corefoundation.CFURLRef, outSystemSoundID *SystemSoundID) int32

AudioServicesCreateSystemSoundID creates a system sound object.

It panics if AudioServicesCreateSystemSoundID is unavailable at run time; use TryAudioServicesCreateSystemSoundID to get an error instead.

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.

It panics if AudioServicesDisposeSystemSoundID is unavailable at run time; use TryAudioServicesDisposeSystemSoundID to get an error instead.

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.

It panics if AudioServicesGetProperty is unavailable at run time; use TryAudioServicesGetProperty to get an error instead.

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.

It panics if AudioServicesGetPropertyInfo is unavailable at run time; use TryAudioServicesGetPropertyInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesGetPropertyInfo(_:_:_:_:_:)

func AudioServicesPlayAlertSound

func AudioServicesPlayAlertSound(inSystemSoundID SystemSoundID)

AudioServicesPlayAlertSound plays a system sound as an alert.

It panics if AudioServicesPlayAlertSound is unavailable at run time; use TryAudioServicesPlayAlertSound to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)

func AudioServicesPlayAlertSoundWithCompletion

func AudioServicesPlayAlertSoundWithCompletion(inSystemSoundID SystemSoundID)

AudioServicesPlayAlertSoundWithCompletion.

It panics if AudioServicesPlayAlertSoundWithCompletion is unavailable at run time; use TryAudioServicesPlayAlertSoundWithCompletion to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlayAlertSoundWithCompletion(_:_:)

func AudioServicesPlaySystemSound

func AudioServicesPlaySystemSound(inSystemSoundID SystemSoundID)

AudioServicesPlaySystemSound plays a system sound object.

It panics if AudioServicesPlaySystemSound is unavailable at run time; use TryAudioServicesPlaySystemSound to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlaySystemSound(_:)

func AudioServicesPlaySystemSoundWithCompletion

func AudioServicesPlaySystemSoundWithCompletion(inSystemSoundID SystemSoundID)

AudioServicesPlaySystemSoundWithCompletion.

It panics if AudioServicesPlaySystemSoundWithCompletion is unavailable at run time; use TryAudioServicesPlaySystemSoundWithCompletion to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesPlaySystemSoundWithCompletion(_:_:)

func AudioServicesRemoveSystemSoundCompletion

func AudioServicesRemoveSystemSoundCompletion(inSystemSoundID SystemSoundID)

AudioServicesRemoveSystemSoundCompletion unregisters any completion callback functions that were registered for a specified system sound.

It panics if AudioServicesRemoveSystemSoundCompletion is unavailable at run time; use TryAudioServicesRemoveSystemSoundCompletion to get an error instead.

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.

It panics if AudioServicesSetProperty is unavailable at run time; use TryAudioServicesSetProperty to get an error instead.

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.

It panics if AudioUnitAddPropertyListener is unavailable at run time; use TryAudioUnitAddPropertyListener to get an error instead.

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.

It panics if AudioUnitAddRenderNotify is unavailable at run time; use TryAudioUnitAddRenderNotify to get an error instead.

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.

It panics if AudioUnitExtensionCopyComponentList is unavailable at run time; use TryAudioUnitExtensionCopyComponentList to get an error instead.

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.

It panics if AudioUnitExtensionSetComponentList is unavailable at run time; use TryAudioUnitExtensionSetComponentList to get an error instead.

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.

It panics if AudioUnitGetParameter is unavailable at run time; use TryAudioUnitGetParameter to get an error instead.

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.

It panics if AudioUnitGetProperty is unavailable at run time; use TryAudioUnitGetProperty to get an error instead.

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.

It panics if AudioUnitGetPropertyInfo is unavailable at run time; use TryAudioUnitGetPropertyInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitGetPropertyInfo(_:_:_:_:_:_:)

func AudioUnitInitialize

func AudioUnitInitialize(inUnit AudioUnit) int32

AudioUnitInitialize initializes an audio unit

It panics if AudioUnitInitialize is unavailable at run time; use TryAudioUnitInitialize to get an error instead.

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.

It panics if AudioUnitProcess is unavailable at run time; use TryAudioUnitProcess to get an error instead.

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.

It panics if AudioUnitProcessMultiple is unavailable at run time; use TryAudioUnitProcessMultiple to get an error instead.

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.

It panics if AudioUnitRemovePropertyListenerWithUserData is unavailable at run time; use TryAudioUnitRemovePropertyListenerWithUserData to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitRemovePropertyListenerWithUserData(_:_:_:_:)

func AudioUnitRemoveRenderNotify

func AudioUnitRemoveRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) int32

AudioUnitRemoveRenderNotify unregisters a previously-registered render listener callback function.

It panics if AudioUnitRemoveRenderNotify is unavailable at run time; use TryAudioUnitRemoveRenderNotify to get an error instead.

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.

It panics if AudioUnitRender is unavailable at run time; use TryAudioUnitRender to get an error instead.

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.

It panics if AudioUnitReset is unavailable at run time; use TryAudioUnitReset to get an error instead.

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.

It panics if AudioUnitScheduleParameters is unavailable at run time; use TryAudioUnitScheduleParameters to get an error instead.

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.

It panics if AudioUnitSetParameter is unavailable at run time; use TryAudioUnitSetParameter to get an error instead.

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.

It panics if AudioUnitSetProperty is unavailable at run time; use TryAudioUnitSetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitSetProperty(_:_:_:_:_:_:)

func AudioUnitUninitialize

func AudioUnitUninitialize(inUnit AudioUnit) int32

AudioUnitUninitialize uninitializes an audio unit.

It panics if AudioUnitUninitialize is unavailable at run time; use TryAudioUnitUninitialize to get an error instead.

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.

It panics if AudioWorkIntervalCreate is unavailable at run time; use TryAudioWorkIntervalCreate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioWorkIntervalCreate

func BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the AudioToolbox symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func CAClockAddListener

func CAClockAddListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) int32

CAClockAddListener.

It panics if CAClockAddListener is unavailable at run time; use TryCAClockAddListener to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockAddListener(_:_:_:)

func CAClockArm

func CAClockArm(inCAClock CAClockRef) int32

CAClockArm.

It panics if CAClockArm is unavailable at run time; use TryCAClockArm to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockArm(_:)

func CAClockBarBeatTimeToBeats

func CAClockBarBeatTimeToBeats(inCAClock CAClockRef, inBarBeatTime *CABarBeatTime, outBeats *CAClockBeats) int32

CAClockBarBeatTimeToBeats.

It panics if CAClockBarBeatTimeToBeats is unavailable at run time; use TryCAClockBarBeatTimeToBeats to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockBarBeatTimeToBeats(_:_:_:)

func CAClockBeatsToBarBeatTime

func CAClockBeatsToBarBeatTime(inCAClock CAClockRef, inBeats CAClockBeats, inSubbeatDivisor uint16, outBarBeatTime *CABarBeatTime) int32

CAClockBeatsToBarBeatTime.

It panics if CAClockBeatsToBarBeatTime is unavailable at run time; use TryCAClockBeatsToBarBeatTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockBeatsToBarBeatTime(_:_:_:_:)

func CAClockDisarm

func CAClockDisarm(inCAClock CAClockRef) int32

CAClockDisarm.

It panics if CAClockDisarm is unavailable at run time; use TryCAClockDisarm to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockDisarm(_:)

func CAClockDispose

func CAClockDispose(inCAClock CAClockRef) int32

CAClockDispose.

It panics if CAClockDispose is unavailable at run time; use TryCAClockDispose to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockDispose(_:)

func CAClockGetCurrentTempo

func CAClockGetCurrentTempo(inCAClock CAClockRef, outTempo *CAClockTempo, outTimestamp *CAClockTime) int32

CAClockGetCurrentTempo.

It panics if CAClockGetCurrentTempo is unavailable at run time; use TryCAClockGetCurrentTempo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetCurrentTempo(_:_:_:)

func CAClockGetCurrentTime

func CAClockGetCurrentTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32

CAClockGetCurrentTime.

It panics if CAClockGetCurrentTime is unavailable at run time; use TryCAClockGetCurrentTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetCurrentTime(_:_:_:)

func CAClockGetPlayRate

func CAClockGetPlayRate(inCAClock CAClockRef, outPlayRate *float64) int32

CAClockGetPlayRate.

It panics if CAClockGetPlayRate is unavailable at run time; use TryCAClockGetPlayRate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetPlayRate(_:_:)

func CAClockGetProperty

func CAClockGetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) int32

CAClockGetProperty.

It panics if CAClockGetProperty is unavailable at run time; use TryCAClockGetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetProperty(_:_:_:_:)

func CAClockGetPropertyInfo

func CAClockGetPropertyInfo(inCAClock CAClockRef, inPropertyID CAClockPropertyID, outSize *uint32, outWritable *bool) int32

CAClockGetPropertyInfo.

It panics if CAClockGetPropertyInfo is unavailable at run time; use TryCAClockGetPropertyInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetPropertyInfo(_:_:_:_:)

func CAClockGetStartTime

func CAClockGetStartTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32

CAClockGetStartTime.

It panics if CAClockGetStartTime is unavailable at run time; use TryCAClockGetStartTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockGetStartTime(_:_:_:)

func CAClockNew

func CAClockNew(inReservedFlags uint32, outCAClock *CAClockRef) int32

CAClockNew.

It panics if CAClockNew is unavailable at run time; use TryCAClockNew to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockNew(_:_:)

func CAClockParseMIDI

func CAClockParseMIDI(inCAClock CAClockRef, inMIDIPacketList *coremidi.MIDIPacketList) int32

CAClockParseMIDI.

It panics if CAClockParseMIDI is unavailable at run time; use TryCAClockParseMIDI to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockParseMIDI(_:_:)

func CAClockRemoveListener

func CAClockRemoveListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) int32

CAClockRemoveListener.

It panics if CAClockRemoveListener is unavailable at run time; use TryCAClockRemoveListener to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockRemoveListener(_:_:_:)

func CAClockSMPTETimeToSeconds

func CAClockSMPTETimeToSeconds(inCAClock CAClockRef, inSMPTETime *coreaudiotypes.SMPTETime, outSeconds *CAClockSeconds) int32

CAClockSMPTETimeToSeconds.

It panics if CAClockSMPTETimeToSeconds is unavailable at run time; use TryCAClockSMPTETimeToSeconds to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSMPTETimeToSeconds(_:_:_:)

func CAClockSecondsToSMPTETime

func CAClockSecondsToSMPTETime(inCAClock CAClockRef, inSeconds CAClockSeconds, inSubframeDivisor uint16, outSMPTETime *coreaudiotypes.SMPTETime) int32

CAClockSecondsToSMPTETime.

It panics if CAClockSecondsToSMPTETime is unavailable at run time; use TryCAClockSecondsToSMPTETime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSecondsToSMPTETime(_:_:_:_:)

func CAClockSetCurrentTempo

func CAClockSetCurrentTempo(inCAClock CAClockRef, inTempo CAClockTempo, inTimestamp *CAClockTime) int32

CAClockSetCurrentTempo.

It panics if CAClockSetCurrentTempo is unavailable at run time; use TryCAClockSetCurrentTempo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetCurrentTempo(_:_:_:)

func CAClockSetCurrentTime

func CAClockSetCurrentTime(inCAClock CAClockRef, inTime *CAClockTime) int32

CAClockSetCurrentTime.

It panics if CAClockSetCurrentTime is unavailable at run time; use TryCAClockSetCurrentTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetCurrentTime(_:_:)

func CAClockSetPlayRate

func CAClockSetPlayRate(inCAClock CAClockRef, inPlayRate float64) int32

CAClockSetPlayRate.

It panics if CAClockSetPlayRate is unavailable at run time; use TryCAClockSetPlayRate to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetPlayRate(_:_:)

func CAClockSetProperty

func CAClockSetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) int32

CAClockSetProperty.

It panics if CAClockSetProperty is unavailable at run time; use TryCAClockSetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockSetProperty(_:_:_:_:)

func CAClockStart

func CAClockStart(inCAClock CAClockRef) int32

CAClockStart.

It panics if CAClockStart is unavailable at run time; use TryCAClockStart to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockStart(_:)

func CAClockStop

func CAClockStop(inCAClock CAClockRef) int32

CAClockStop.

It panics if CAClockStop is unavailable at run time; use TryCAClockStop to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockStop(_:)

func CAClockTranslateTime

func CAClockTranslateTime(inCAClock CAClockRef, inTime *CAClockTime, inOutputTimeFormat CAClockTimeFormat, outTime *CAClockTime) int32

CAClockTranslateTime.

It panics if CAClockTranslateTime is unavailable at run time; use TryCAClockTranslateTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAClockTranslateTime(_:_:_:_:)

func CAShow

func CAShow(inObject unsafe.Pointer)

CAShow prints the internal state of an object to `stdio`.

It panics if CAShow is unavailable at run time; use TryCAShow to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAShow(_:)

func CAShowFile

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

CAShowFile prints the internal state of an object to a file.

It panics if CAShowFile is unavailable at run time; use TryCAShowFile to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CAShowFile(_:_:)

func CopyInstrumentInfoFromSoundBank

func CopyInstrumentInfoFromSoundBank(inURL corefoundation.CFURLRef, outInstrumentInfo *corefoundation.CFArrayRef) int32

CopyInstrumentInfoFromSoundBank.

It panics if CopyInstrumentInfoFromSoundBank is unavailable at run time; use TryCopyInstrumentInfoFromSoundBank to get an error instead.

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.

It panics if CopyNameFromSoundBank is unavailable at run time; use TryCopyNameFromSoundBank to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/CopyNameFromSoundBank(_:_:)

func DisposeAUGraph deprecated

func DisposeAUGraph(inGraph AUGraph) int32

DisposeAUGraph disposes of an audio processing graph.

It panics if DisposeAUGraph is unavailable at run time; use TryDisposeAUGraph to get an error instead.

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.

It panics if DisposeMusicEventIterator is unavailable at run time; use TryDisposeMusicEventIterator to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/DisposeMusicEventIterator(_:)

func DisposeMusicPlayer

func DisposeMusicPlayer(inPlayer MusicPlayer) int32

DisposeMusicPlayer disposes of a music player.

It panics if DisposeMusicPlayer is unavailable at run time; use TryDisposeMusicPlayer to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/DisposeMusicPlayer(_:)

func DisposeMusicSequence

func DisposeMusicSequence(inSequence MusicSequence) int32

DisposeMusicSequence disposes of a music sequence.

It panics if DisposeMusicSequence is unavailable at run time; use TryDisposeMusicSequence to get an error instead.

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.

It panics if ExtAudioFileCreateNew is unavailable at run time; use TryExtAudioFileCreateNew to get an error instead.

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.

It panics if ExtAudioFileCreateWithURL is unavailable at run time; use TryExtAudioFileCreateWithURL to get an error instead.

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.

It panics if ExtAudioFileDispose is unavailable at run time; use TryExtAudioFileDispose to get an error instead.

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.

It panics if ExtAudioFileGetProperty is unavailable at run time; use TryExtAudioFileGetProperty to get an error instead.

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.

It panics if ExtAudioFileGetPropertyInfo is unavailable at run time; use TryExtAudioFileGetPropertyInfo to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFileGetPropertyInfo(_:_:_:_:)

func ExtAudioFileOpen deprecated

func ExtAudioFileOpen(inFSRef *coreservices.FSRef, outExtAudioFile *ExtAudioFileRef) int32

ExtAudioFileOpen deprecated.

It panics if ExtAudioFileOpen is unavailable at run time; use TryExtAudioFileOpen to get an error instead.

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.

It panics if ExtAudioFileOpenURL is unavailable at run time; use TryExtAudioFileOpenURL to get an error instead.

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.

It panics if ExtAudioFileRead is unavailable at run time; use TryExtAudioFileRead to get an error instead.

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.

It panics if ExtAudioFileSeek is unavailable at run time; use TryExtAudioFileSeek to get an error instead.

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.

It panics if ExtAudioFileSetProperty is unavailable at run time; use TryExtAudioFileSetProperty to get an error instead.

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.

It panics if ExtAudioFileTell is unavailable at run time; use TryExtAudioFileTell to get an error instead.

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.

It panics if ExtAudioFileWrapAudioFileID is unavailable at run time; use TryExtAudioFileWrapAudioFileID to get an error instead.

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.

It panics if ExtAudioFileWrite is unavailable at run time; use TryExtAudioFileWrite to get an error instead.

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.

It panics if ExtAudioFileWriteAsync is unavailable at run time; use TryExtAudioFileWriteAsync to get an error instead.

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.

It panics if GetNameFromSoundBank is unavailable at run time; use TryGetNameFromSoundBank to get an error instead.

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.

It panics if MusicDeviceMIDIEvent is unavailable at run time; use TryMusicDeviceMIDIEvent to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceMIDIEvent(_:_:_:_:_:)

func MusicDeviceMIDIEventList

func MusicDeviceMIDIEventList(inUnit MusicDeviceComponent, inOffsetSampleFrame uint32, evtList *coremidi.MIDIEventList) int32

MusicDeviceMIDIEventList.

It panics if MusicDeviceMIDIEventList is unavailable at run time; use TryMusicDeviceMIDIEventList to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceMIDIEventList(_:_:_:)

func MusicDevicePrepareInstrument deprecated

func MusicDevicePrepareInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) int32

MusicDevicePrepareInstrument.

It panics if MusicDevicePrepareInstrument is unavailable at run time; use TryMusicDevicePrepareInstrument to get an error instead.

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.

It panics if MusicDeviceReleaseInstrument is unavailable at run time; use TryMusicDeviceReleaseInstrument to get an error instead.

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.

It panics if MusicDeviceStartNote is unavailable at run time; use TryMusicDeviceStartNote to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStartNote(_:_:_:_:_:_:)

func MusicDeviceStopNote

func MusicDeviceStopNote(inUnit MusicDeviceComponent, inGroupID MusicDeviceGroupID, inNoteInstanceID NoteInstanceID, inOffsetSampleFrame uint32) int32

MusicDeviceStopNote.

It panics if MusicDeviceStopNote is unavailable at run time; use TryMusicDeviceStopNote to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStopNote(_:_:_:_:)

func MusicDeviceSysEx

func MusicDeviceSysEx(inUnit MusicDeviceComponent, inData []byte, inLength uint32) int32

MusicDeviceSysEx.

It panics if MusicDeviceSysEx is unavailable at run time; use TryMusicDeviceSysEx to get an error instead.

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.

It panics if MusicEventIteratorDeleteEvent is unavailable at run time; use TryMusicEventIteratorDeleteEvent to get an error instead.

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.

It panics if MusicEventIteratorGetEventInfo is unavailable at run time; use TryMusicEventIteratorGetEventInfo to get an error instead.

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.

It panics if MusicEventIteratorHasCurrentEvent is unavailable at run time; use TryMusicEventIteratorHasCurrentEvent to get an error instead.

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.

It panics if MusicEventIteratorHasNextEvent is unavailable at run time; use TryMusicEventIteratorHasNextEvent to get an error instead.

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.

It panics if MusicEventIteratorHasPreviousEvent is unavailable at run time; use TryMusicEventIteratorHasPreviousEvent to get an error instead.

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.

It panics if MusicEventIteratorNextEvent is unavailable at run time; use TryMusicEventIteratorNextEvent to get an error instead.

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.

It panics if MusicEventIteratorPreviousEvent is unavailable at run time; use TryMusicEventIteratorPreviousEvent to get an error instead.

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.

It panics if MusicEventIteratorSeek is unavailable at run time; use TryMusicEventIteratorSeek to get an error instead.

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.

It panics if MusicEventIteratorSetEventInfo is unavailable at run time; use TryMusicEventIteratorSetEventInfo to get an error instead.

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.

It panics if MusicEventIteratorSetEventTime is unavailable at run time; use TryMusicEventIteratorSetEventTime to get an error instead.

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.

It panics if MusicPlayerGetBeatsForHostTime is unavailable at run time; use TryMusicPlayerGetBeatsForHostTime to get an error instead.

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.

It panics if MusicPlayerGetHostTimeForBeats is unavailable at run time; use TryMusicPlayerGetHostTimeForBeats to get an error instead.

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.

It panics if MusicPlayerGetPlayRateScalar is unavailable at run time; use TryMusicPlayerGetPlayRateScalar to get an error instead.

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.

It panics if MusicPlayerGetSequence is unavailable at run time; use TryMusicPlayerGetSequence to get an error instead.

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.

It panics if MusicPlayerGetTime is unavailable at run time; use TryMusicPlayerGetTime to get an error instead.

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.

It panics if MusicPlayerIsPlaying is unavailable at run time; use TryMusicPlayerIsPlaying to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerIsPlaying(_:_:)

func MusicPlayerPreroll

func MusicPlayerPreroll(inPlayer MusicPlayer) int32

MusicPlayerPreroll prepares a music player to play.

It panics if MusicPlayerPreroll is unavailable at run time; use TryMusicPlayerPreroll to get an error instead.

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.

It panics if MusicPlayerSetPlayRateScalar is unavailable at run time; use TryMusicPlayerSetPlayRateScalar to get an error instead.

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.

It panics if MusicPlayerSetSequence is unavailable at run time; use TryMusicPlayerSetSequence to get an error instead.

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.

It panics if MusicPlayerSetTime is unavailable at run time; use TryMusicPlayerSetTime to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerSetTime(_:_:)

func MusicPlayerStart

func MusicPlayerStart(inPlayer MusicPlayer) int32

MusicPlayerStart starts playback of a music player.

It panics if MusicPlayerStart is unavailable at run time; use TryMusicPlayerStart to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicPlayerStart(_:)

func MusicPlayerStop

func MusicPlayerStop(inPlayer MusicPlayer) int32

MusicPlayerStop stops playback of a music player.

It panics if MusicPlayerStop is unavailable at run time; use TryMusicPlayerStop to get an error instead.

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.

It panics if MusicSequenceBarBeatTimeToBeats is unavailable at run time; use TryMusicSequenceBarBeatTimeToBeats to get an error instead.

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.

It panics if MusicSequenceBeatsToBarBeatTime is unavailable at run time; use TryMusicSequenceBeatsToBarBeatTime to get an error instead.

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.

It panics if MusicSequenceDisposeTrack is unavailable at run time; use TryMusicSequenceDisposeTrack to get an error instead.

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.

It panics if MusicSequenceFileCreate is unavailable at run time; use TryMusicSequenceFileCreate to get an error instead.

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.

It panics if MusicSequenceFileCreateData is unavailable at run time; use TryMusicSequenceFileCreateData to get an error instead.

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.

It panics if MusicSequenceFileLoad is unavailable at run time; use TryMusicSequenceFileLoad to get an error instead.

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.

It panics if MusicSequenceFileLoadData is unavailable at run time; use TryMusicSequenceFileLoadData to get an error instead.

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.

It panics if MusicSequenceGetAUGraph is unavailable at run time; use TryMusicSequenceGetAUGraph to get an error instead.

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.

It panics if MusicSequenceGetBeatsForSeconds is unavailable at run time; use TryMusicSequenceGetBeatsForSeconds to get an error instead.

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.

It panics if MusicSequenceGetIndTrack is unavailable at run time; use TryMusicSequenceGetIndTrack to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetIndTrack(_:_:_:)

func MusicSequenceGetInfoDictionary

func MusicSequenceGetInfoDictionary(inSequence MusicSequence) corefoundation.CFDictionaryRef

MusicSequenceGetInfoDictionary returns a dictionary containing music sequence information.

It panics if MusicSequenceGetInfoDictionary is unavailable at run time; use TryMusicSequenceGetInfoDictionary to get an error instead.

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.

It panics if MusicSequenceGetSecondsForBeats is unavailable at run time; use TryMusicSequenceGetSecondsForBeats to get an error instead.

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.

It panics if MusicSequenceGetSequenceType is unavailable at run time; use TryMusicSequenceGetSequenceType to get an error instead.

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.

It panics if MusicSequenceGetTempoTrack is unavailable at run time; use TryMusicSequenceGetTempoTrack to get an error instead.

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.

It panics if MusicSequenceGetTrackCount is unavailable at run time; use TryMusicSequenceGetTrackCount to get an error instead.

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.

It panics if MusicSequenceGetTrackIndex is unavailable at run time; use TryMusicSequenceGetTrackIndex to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicSequenceGetTrackIndex(_:_:_:)

func MusicSequenceLoadSMFDataWithFlags deprecated

func MusicSequenceLoadSMFDataWithFlags(inSequence MusicSequence, inData corefoundation.CFDataRef, inFlags MusicSequenceLoadFlags) int32

MusicSequenceLoadSMFDataWithFlags.

It panics if MusicSequenceLoadSMFDataWithFlags is unavailable at run time; use TryMusicSequenceLoadSMFDataWithFlags to get an error instead.

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.

It panics if MusicSequenceLoadSMFWithFlags is unavailable at run time; use TryMusicSequenceLoadSMFWithFlags to get an error instead.

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.

It panics if MusicSequenceNewTrack is unavailable at run time; use TryMusicSequenceNewTrack to get an error instead.

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.

It panics if MusicSequenceReverse is unavailable at run time; use TryMusicSequenceReverse to get an error instead.

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.

It panics if MusicSequenceSaveMIDIFile is unavailable at run time; use TryMusicSequenceSaveMIDIFile to get an error instead.

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.

It panics if MusicSequenceSaveSMFData is unavailable at run time; use TryMusicSequenceSaveSMFData to get an error instead.

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.

It panics if MusicSequenceSetAUGraph is unavailable at run time; use TryMusicSequenceSetAUGraph to get an error instead.

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.

It panics if MusicSequenceSetMIDIEndpoint is unavailable at run time; use TryMusicSequenceSetMIDIEndpoint to get an error instead.

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.

It panics if MusicSequenceSetSequenceType is unavailable at run time; use TryMusicSequenceSetSequenceType to get an error instead.

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.

It panics if MusicSequenceSetUserCallback is unavailable at run time; use TryMusicSequenceSetUserCallback to get an error instead.

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.

It panics if MusicTrackClear is unavailable at run time; use TryMusicTrackClear to get an error instead.

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.

It panics if MusicTrackCopyInsert is unavailable at run time; use TryMusicTrackCopyInsert to get an error instead.

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.

It panics if MusicTrackCut is unavailable at run time; use TryMusicTrackCut to get an error instead.

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.

It panics if MusicTrackGetDestMIDIEndpoint is unavailable at run time; use TryMusicTrackGetDestMIDIEndpoint to get an error instead.

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.

It panics if MusicTrackGetDestNode is unavailable at run time; use TryMusicTrackGetDestNode to get an error instead.

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.

It panics if MusicTrackGetProperty is unavailable at run time; use TryMusicTrackGetProperty to get an error instead.

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.

It panics if MusicTrackGetSequence is unavailable at run time; use TryMusicTrackGetSequence to get an error instead.

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.

It panics if MusicTrackMerge is unavailable at run time; use TryMusicTrackMerge to get an error instead.

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.

It panics if MusicTrackMoveEvents is unavailable at run time; use TryMusicTrackMoveEvents to get an error instead.

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.

It panics if MusicTrackNewAUPresetEvent is unavailable at run time; use TryMusicTrackNewAUPresetEvent to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackNewAUPresetEvent(_:_:_:)

func MusicTrackNewExtendedControlEvent deprecated

func MusicTrackNewExtendedControlEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedControlEvent) int32

MusicTrackNewExtendedControlEvent.

It panics if MusicTrackNewExtendedControlEvent is unavailable at run time; use TryMusicTrackNewExtendedControlEvent to get an error instead.

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.

It panics if MusicTrackNewExtendedNoteEvent is unavailable at run time; use TryMusicTrackNewExtendedNoteEvent to get an error instead.

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.

It panics if MusicTrackNewExtendedTempoEvent is unavailable at run time; use TryMusicTrackNewExtendedTempoEvent to get an error instead.

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.

It panics if MusicTrackNewMIDIChannelEvent is unavailable at run time; use TryMusicTrackNewMIDIChannelEvent to get an error instead.

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.

It panics if MusicTrackNewMIDINoteEvent is unavailable at run time; use TryMusicTrackNewMIDINoteEvent to get an error instead.

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.

It panics if MusicTrackNewMIDIRawDataEvent is unavailable at run time; use TryMusicTrackNewMIDIRawDataEvent to get an error instead.

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.

It panics if MusicTrackNewMetaEvent is unavailable at run time; use TryMusicTrackNewMetaEvent to get an error instead.

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.

It panics if MusicTrackNewParameterEvent is unavailable at run time; use TryMusicTrackNewParameterEvent to get an error instead.

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.

It panics if MusicTrackNewUserEvent is unavailable at run time; use TryMusicTrackNewUserEvent to get an error instead.

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.

It panics if MusicTrackSetDestMIDIEndpoint is unavailable at run time; use TryMusicTrackSetDestMIDIEndpoint to get an error instead.

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.

It panics if MusicTrackSetDestNode is unavailable at run time; use TryMusicTrackSetDestNode to get an error instead.

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.

It panics if MusicTrackSetProperty is unavailable at run time; use TryMusicTrackSetProperty to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/MusicTrackSetProperty(_:_:_:_:)

func NewAUAudioUnitErrorBlock

func NewAUAudioUnitErrorBlock(handler AUAudioUnitErrorHandler) (objc.ID, func())

NewAUAudioUnitErrorBlock wraps a Go AUAudioUnitErrorHandler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

  • [AUAudioUnit.InstantiateWithComponentDescriptionOptionsCompletionHandler]

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 NewAUGraph deprecated

func NewAUGraph(outGraph *AUGraph) int32

NewAUGraph creates a new audio processing graph.

It panics if NewAUGraph is unavailable at run time; use TryNewAUGraph to get an error instead.

Deprecated: Deprecated since macOS 11.0. AUGraph is deprecated in favor of AVAudioEngine

See: https://developer.apple.com/documentation/AudioToolbox/NewAUGraph(_:)

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 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.

It panics if NewMusicEventIterator is unavailable at run time; use TryNewMusicEventIterator to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/NewMusicEventIterator(_:_:)

func NewMusicPlayer

func NewMusicPlayer(outPlayer *MusicPlayer) int32

NewMusicPlayer creates a new music player.

It panics if NewMusicPlayer is unavailable at run time; use TryNewMusicPlayer to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/NewMusicPlayer(_:)

func NewMusicSequence

func NewMusicSequence(outSequence *MusicSequence) int32

NewMusicSequence creates a new empty music sequence.

It panics if NewMusicSequence is unavailable at run time; use TryNewMusicSequence to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/NewMusicSequence(_:)

func NewMusicTrackFrom deprecated

func NewMusicTrackFrom(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, outNewTrack *MusicTrack) int32

NewMusicTrackFrom.

It panics if NewMusicTrackFrom is unavailable at run time; use TryNewMusicTrackFrom to get an error instead.

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 NewUint8Uint8MIDICIProfileBoolBlock

func NewUint8Uint8MIDICIProfileBoolBlock(handler Uint8Uint8MIDICIProfileBoolHandler) (objc.ID, func())

NewUint8Uint8MIDICIProfileBoolBlock wraps a Go Uint8Uint8MIDICIProfileBoolHandler 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.

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in AudioToolbox, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

func TryAUEventListenerAddEventType

func TryAUEventListenerAddEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, inEvent *AudioUnitEvent) (int32, error)

TryAUEventListenerAddEventType is like AUEventListenerAddEventType but returns an error instead of panicking if AUEventListenerAddEventType is unavailable at run time.

func TryAUEventListenerCreate

func TryAUEventListenerCreate(inProc AUEventListenerProc, inUserData unsafe.Pointer, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inNotificationInterval float32, inValueChangeGranularity float32, outListener *AUEventListenerRef) (int32, error)

TryAUEventListenerCreate is like AUEventListenerCreate but returns an error instead of panicking if AUEventListenerCreate is unavailable at run time.

func TryAUEventListenerCreateWithDispatchQueue

func TryAUEventListenerCreateWithDispatchQueue(outListener *AUEventListenerRef, inNotificationInterval float32, inValueChangeGranularity float32, inDispatchQueue dispatch.Queue, inBlock AUEventListenerBlock) (int32, error)

TryAUEventListenerCreateWithDispatchQueue is like AUEventListenerCreateWithDispatchQueue but returns an error instead of panicking if AUEventListenerCreateWithDispatchQueue is unavailable at run time.

func TryAUEventListenerNotify

func TryAUEventListenerNotify(inSendingListener AUEventListenerRef, inSendingObject unsafe.Pointer, inEvent *AudioUnitEvent) (int32, error)

TryAUEventListenerNotify is like AUEventListenerNotify but returns an error instead of panicking if AUEventListenerNotify is unavailable at run time.

func TryAUEventListenerRemoveEventType

func TryAUEventListenerRemoveEventType(inListener AUEventListenerRef, inObject unsafe.Pointer, inEvent *AudioUnitEvent) (int32, error)

TryAUEventListenerRemoveEventType is like AUEventListenerRemoveEventType but returns an error instead of panicking if AUEventListenerRemoveEventType is unavailable at run time.

func TryAUGraphAddNode

func TryAUGraphAddNode(inGraph AUGraph, inDescription *AudioComponentDescription, outNode *AUNode) (int32, error)

TryAUGraphAddNode is like AUGraphAddNode but returns an error instead of panicking if AUGraphAddNode is unavailable at run time.

func TryAUGraphAddRenderNotify

func TryAUGraphAddRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) (int32, error)

TryAUGraphAddRenderNotify is like AUGraphAddRenderNotify but returns an error instead of panicking if AUGraphAddRenderNotify is unavailable at run time.

func TryAUGraphClearConnections

func TryAUGraphClearConnections(inGraph AUGraph) (int32, error)

TryAUGraphClearConnections is like AUGraphClearConnections but returns an error instead of panicking if AUGraphClearConnections is unavailable at run time.

func TryAUGraphClose

func TryAUGraphClose(inGraph AUGraph) (int32, error)

TryAUGraphClose is like AUGraphClose but returns an error instead of panicking if AUGraphClose is unavailable at run time.

func TryAUGraphConnectNodeInput

func TryAUGraphConnectNodeInput(inGraph AUGraph, inSourceNode AUNode, inSourceOutputNumber uint32, inDestNode AUNode, inDestInputNumber uint32) (int32, error)

TryAUGraphConnectNodeInput is like AUGraphConnectNodeInput but returns an error instead of panicking if AUGraphConnectNodeInput is unavailable at run time.

func TryAUGraphCountNodeConnections

func TryAUGraphCountNodeConnections(inGraph AUGraph, inNode AUNode, outNumConnections *uint32) (int32, error)

TryAUGraphCountNodeConnections is like AUGraphCountNodeConnections but returns an error instead of panicking if AUGraphCountNodeConnections is unavailable at run time.

func TryAUGraphCountNodeInteractions

func TryAUGraphCountNodeInteractions(inGraph AUGraph, inNode AUNode, outNumInteractions *uint32) (int32, error)

TryAUGraphCountNodeInteractions is like AUGraphCountNodeInteractions but returns an error instead of panicking if AUGraphCountNodeInteractions is unavailable at run time.

func TryAUGraphDisconnectNodeInput

func TryAUGraphDisconnectNodeInput(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32) (int32, error)

TryAUGraphDisconnectNodeInput is like AUGraphDisconnectNodeInput but returns an error instead of panicking if AUGraphDisconnectNodeInput is unavailable at run time.

func TryAUGraphGetCPULoad

func TryAUGraphGetCPULoad(inGraph AUGraph, outAverageCPULoad *float32) (int32, error)

TryAUGraphGetCPULoad is like AUGraphGetCPULoad but returns an error instead of panicking if AUGraphGetCPULoad is unavailable at run time.

func TryAUGraphGetConnectionInfo

func TryAUGraphGetConnectionInfo(inGraph AUGraph, inConnectionIndex uint32, outSourceNode *AUNode, outSourceOutputNumber *uint32, outDestNode *AUNode, outDestInputNumber *uint32) (int32, error)

TryAUGraphGetConnectionInfo is like AUGraphGetConnectionInfo but returns an error instead of panicking if AUGraphGetConnectionInfo is unavailable at run time.

func TryAUGraphGetIndNode

func TryAUGraphGetIndNode(inGraph AUGraph, inIndex uint32, outNode *AUNode) (int32, error)

TryAUGraphGetIndNode is like AUGraphGetIndNode but returns an error instead of panicking if AUGraphGetIndNode is unavailable at run time.

func TryAUGraphGetInteractionInfo

func TryAUGraphGetInteractionInfo(inGraph AUGraph, inInteractionIndex uint32, outInteraction *AUNodeInteraction) (int32, error)

TryAUGraphGetInteractionInfo is like AUGraphGetInteractionInfo but returns an error instead of panicking if AUGraphGetInteractionInfo is unavailable at run time.

func TryAUGraphGetMaxCPULoad

func TryAUGraphGetMaxCPULoad(inGraph AUGraph, outMaxLoad *float32) (int32, error)

TryAUGraphGetMaxCPULoad is like AUGraphGetMaxCPULoad but returns an error instead of panicking if AUGraphGetMaxCPULoad is unavailable at run time.

func TryAUGraphGetNodeConnections

func TryAUGraphGetNodeConnections(inGraph AUGraph, inNode AUNode, outConnections *AudioUnitNodeConnection, ioNumConnections *uint32) (int32, error)

TryAUGraphGetNodeConnections is like AUGraphGetNodeConnections but returns an error instead of panicking if AUGraphGetNodeConnections is unavailable at run time.

func TryAUGraphGetNodeCount

func TryAUGraphGetNodeCount(inGraph AUGraph, outNumberOfNodes *uint32) (int32, error)

TryAUGraphGetNodeCount is like AUGraphGetNodeCount but returns an error instead of panicking if AUGraphGetNodeCount is unavailable at run time.

func TryAUGraphGetNodeInfo

func TryAUGraphGetNodeInfo(inGraph AUGraph, inNode AUNode, outDescription *coreservices.ComponentDescription, outClassDataSize *uint32, outClassData unsafe.Pointer, outAudioUnit AudioUnit) (int32, error)

TryAUGraphGetNodeInfo is like AUGraphGetNodeInfo but returns an error instead of panicking if AUGraphGetNodeInfo is unavailable at run time.

func TryAUGraphGetNodeInfoSubGraph

func TryAUGraphGetNodeInfoSubGraph(inGraph AUGraph, inNode AUNode, outSubGraph *AUGraph) (int32, error)

TryAUGraphGetNodeInfoSubGraph is like AUGraphGetNodeInfoSubGraph but returns an error instead of panicking if AUGraphGetNodeInfoSubGraph is unavailable at run time.

func TryAUGraphGetNodeInteractions

func TryAUGraphGetNodeInteractions(inGraph AUGraph, inNode AUNode, ioNumInteractions *uint32, outInteractions *AUNodeInteraction) (int32, error)

TryAUGraphGetNodeInteractions is like AUGraphGetNodeInteractions but returns an error instead of panicking if AUGraphGetNodeInteractions is unavailable at run time.

func TryAUGraphGetNumberOfConnections

func TryAUGraphGetNumberOfConnections(inGraph AUGraph, outNumConnections *uint32) (int32, error)

TryAUGraphGetNumberOfConnections is like AUGraphGetNumberOfConnections but returns an error instead of panicking if AUGraphGetNumberOfConnections is unavailable at run time.

func TryAUGraphGetNumberOfInteractions

func TryAUGraphGetNumberOfInteractions(inGraph AUGraph, outNumInteractions *uint32) (int32, error)

TryAUGraphGetNumberOfInteractions is like AUGraphGetNumberOfInteractions but returns an error instead of panicking if AUGraphGetNumberOfInteractions is unavailable at run time.

func TryAUGraphInitialize

func TryAUGraphInitialize(inGraph AUGraph) (int32, error)

TryAUGraphInitialize is like AUGraphInitialize but returns an error instead of panicking if AUGraphInitialize is unavailable at run time.

func TryAUGraphIsInitialized

func TryAUGraphIsInitialized(inGraph AUGraph, outIsInitialized *bool) (int32, error)

TryAUGraphIsInitialized is like AUGraphIsInitialized but returns an error instead of panicking if AUGraphIsInitialized is unavailable at run time.

func TryAUGraphIsNodeSubGraph

func TryAUGraphIsNodeSubGraph(inGraph AUGraph, inNode AUNode, outFlag *bool) (int32, error)

TryAUGraphIsNodeSubGraph is like AUGraphIsNodeSubGraph but returns an error instead of panicking if AUGraphIsNodeSubGraph is unavailable at run time.

func TryAUGraphIsOpen

func TryAUGraphIsOpen(inGraph AUGraph, outIsOpen *bool) (int32, error)

TryAUGraphIsOpen is like AUGraphIsOpen but returns an error instead of panicking if AUGraphIsOpen is unavailable at run time.

func TryAUGraphIsRunning

func TryAUGraphIsRunning(inGraph AUGraph, outIsRunning *bool) (int32, error)

TryAUGraphIsRunning is like AUGraphIsRunning but returns an error instead of panicking if AUGraphIsRunning is unavailable at run time.

func TryAUGraphNewNode

func TryAUGraphNewNode(inGraph AUGraph, inDescription *coreservices.ComponentDescription, inClassDataSize uint32, inClassData unsafe.Pointer, outNode *AUNode) (int32, error)

TryAUGraphNewNode is like AUGraphNewNode but returns an error instead of panicking if AUGraphNewNode is unavailable at run time.

func TryAUGraphNewNodeSubGraph

func TryAUGraphNewNodeSubGraph(inGraph AUGraph, outNode *AUNode) (int32, error)

TryAUGraphNewNodeSubGraph is like AUGraphNewNodeSubGraph but returns an error instead of panicking if AUGraphNewNodeSubGraph is unavailable at run time.

func TryAUGraphNodeInfo

func TryAUGraphNodeInfo(inGraph AUGraph, inNode AUNode, outDescription *AudioComponentDescription, outAudioUnit AudioUnit) (int32, error)

TryAUGraphNodeInfo is like AUGraphNodeInfo but returns an error instead of panicking if AUGraphNodeInfo is unavailable at run time.

func TryAUGraphOpen

func TryAUGraphOpen(inGraph AUGraph) (int32, error)

TryAUGraphOpen is like AUGraphOpen but returns an error instead of panicking if AUGraphOpen is unavailable at run time.

func TryAUGraphRemoveNode

func TryAUGraphRemoveNode(inGraph AUGraph, inNode AUNode) (int32, error)

TryAUGraphRemoveNode is like AUGraphRemoveNode but returns an error instead of panicking if AUGraphRemoveNode is unavailable at run time.

func TryAUGraphRemoveRenderNotify

func TryAUGraphRemoveRenderNotify(inGraph AUGraph, inCallback AURenderCallback, inRefCon unsafe.Pointer) (int32, error)

TryAUGraphRemoveRenderNotify is like AUGraphRemoveRenderNotify but returns an error instead of panicking if AUGraphRemoveRenderNotify is unavailable at run time.

func TryAUGraphSetNodeInputCallback

func TryAUGraphSetNodeInputCallback(inGraph AUGraph, inDestNode AUNode, inDestInputNumber uint32, inInputCallback *AURenderCallbackStruct) (int32, error)

TryAUGraphSetNodeInputCallback is like AUGraphSetNodeInputCallback but returns an error instead of panicking if AUGraphSetNodeInputCallback is unavailable at run time.

func TryAUGraphStart

func TryAUGraphStart(inGraph AUGraph) (int32, error)

TryAUGraphStart is like AUGraphStart but returns an error instead of panicking if AUGraphStart is unavailable at run time.

func TryAUGraphStop

func TryAUGraphStop(inGraph AUGraph) (int32, error)

TryAUGraphStop is like AUGraphStop but returns an error instead of panicking if AUGraphStop is unavailable at run time.

func TryAUGraphUninitialize

func TryAUGraphUninitialize(inGraph AUGraph) (int32, error)

TryAUGraphUninitialize is like AUGraphUninitialize but returns an error instead of panicking if AUGraphUninitialize is unavailable at run time.

func TryAUGraphUpdate

func TryAUGraphUpdate(inGraph AUGraph, outIsUpdated *bool) (int32, error)

TryAUGraphUpdate is like AUGraphUpdate but returns an error instead of panicking if AUGraphUpdate is unavailable at run time.

func TryAUListenerAddParameter

func TryAUListenerAddParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, inParameter *AudioUnitParameter) (int32, error)

TryAUListenerAddParameter is like AUListenerAddParameter but returns an error instead of panicking if AUListenerAddParameter is unavailable at run time.

func TryAUListenerCreate

func TryAUListenerCreate(inProc AUParameterListenerProc, inUserData unsafe.Pointer, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inNotificationInterval float32, outListener *AUParameterListenerRef) (int32, error)

TryAUListenerCreate is like AUListenerCreate but returns an error instead of panicking if AUListenerCreate is unavailable at run time.

func TryAUListenerCreateWithDispatchQueue

func TryAUListenerCreateWithDispatchQueue(outListener *AUParameterListenerRef, inNotificationInterval float32, inDispatchQueue dispatch.Queue, inBlock AUParameterListenerBlock) (int32, error)

TryAUListenerCreateWithDispatchQueue is like AUListenerCreateWithDispatchQueue but returns an error instead of panicking if AUListenerCreateWithDispatchQueue is unavailable at run time.

func TryAUListenerDispose

func TryAUListenerDispose(inListener AUParameterListenerRef) (int32, error)

TryAUListenerDispose is like AUListenerDispose but returns an error instead of panicking if AUListenerDispose is unavailable at run time.

func TryAUListenerRemoveParameter

func TryAUListenerRemoveParameter(inListener AUParameterListenerRef, inObject unsafe.Pointer, inParameter *AudioUnitParameter) (int32, error)

TryAUListenerRemoveParameter is like AUListenerRemoveParameter but returns an error instead of panicking if AUListenerRemoveParameter is unavailable at run time.

func TryAUParameterFormatValue

func TryAUParameterFormatValue(inParameterValue float64, inParameter *AudioUnitParameter, inTextBuffer *byte, inDigits uint32) (*byte, error)

TryAUParameterFormatValue is like AUParameterFormatValue but returns an error instead of panicking if AUParameterFormatValue is unavailable at run time.

func TryAUParameterListenerNotify

func TryAUParameterListenerNotify(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter) (int32, error)

TryAUParameterListenerNotify is like AUParameterListenerNotify but returns an error instead of panicking if AUParameterListenerNotify is unavailable at run time.

func TryAUParameterSet

func TryAUParameterSet(inSendingListener AUParameterListenerRef, inSendingObject unsafe.Pointer, inParameter *AudioUnitParameter, inValue AudioUnitParameterValue, inBufferOffsetInFrames uint32) (int32, error)

TryAUParameterSet is like AUParameterSet but returns an error instead of panicking if AUParameterSet is unavailable at run time.

func TryAUParameterValueToLinear

func TryAUParameterValueToLinear(inParameterValue AudioUnitParameterValue, inParameter *AudioUnitParameter) (float32, error)

TryAUParameterValueToLinear is like AUParameterValueToLinear but returns an error instead of panicking if AUParameterValueToLinear is unavailable at run time.

func TryAudioCodecAppendInputBufferList

func TryAudioCodecAppendInputBufferList(inCodec AudioCodec, inBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint32, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outBytesConsumed *uint32) (int32, error)

TryAudioCodecAppendInputBufferList is like AudioCodecAppendInputBufferList but returns an error instead of panicking if AudioCodecAppendInputBufferList is unavailable at run time.

func TryAudioCodecAppendInputData

func TryAudioCodecAppendInputData(inCodec AudioCodec, inInputData unsafe.Pointer, ioInputDataByteSize *uint32, ioNumberPackets *uint32, inPacketDescription *coreaudiotypes.AudioStreamPacketDescription) (int32, error)

TryAudioCodecAppendInputData is like AudioCodecAppendInputData but returns an error instead of panicking if AudioCodecAppendInputData is unavailable at run time.

func TryAudioCodecGetProperty

func TryAudioCodecGetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioCodecGetProperty is like AudioCodecGetProperty but returns an error instead of panicking if AudioCodecGetProperty is unavailable at run time.

func TryAudioCodecGetPropertyInfo

func TryAudioCodecGetPropertyInfo(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, outSize *uint32, outWritable *bool) (int32, error)

TryAudioCodecGetPropertyInfo is like AudioCodecGetPropertyInfo but returns an error instead of panicking if AudioCodecGetPropertyInfo is unavailable at run time.

func TryAudioCodecInitialize

func TryAudioCodecInitialize(inCodec AudioCodec, inInputFormat *coreaudiotypes.AudioStreamBasicDescription, inOutputFormat *coreaudiotypes.AudioStreamBasicDescription, inMagicCookie unsafe.Pointer, inMagicCookieByteSize uint32) (int32, error)

TryAudioCodecInitialize is like AudioCodecInitialize but returns an error instead of panicking if AudioCodecInitialize is unavailable at run time.

func TryAudioCodecProduceOutputBufferList

func TryAudioCodecProduceOutputBufferList(inCodec AudioCodec, ioBufferList *coreaudiotypes.AudioBufferList, ioNumberPackets *uint32, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint32) (int32, error)

TryAudioCodecProduceOutputBufferList is like AudioCodecProduceOutputBufferList but returns an error instead of panicking if AudioCodecProduceOutputBufferList is unavailable at run time.

func TryAudioCodecProduceOutputPackets

func TryAudioCodecProduceOutputPackets(inCodec AudioCodec, outOutputData unsafe.Pointer, ioOutputDataByteSize *uint32, ioNumberPackets *uint32, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription, outStatus *uint32) (int32, error)

TryAudioCodecProduceOutputPackets is like AudioCodecProduceOutputPackets but returns an error instead of panicking if AudioCodecProduceOutputPackets is unavailable at run time.

func TryAudioCodecReset

func TryAudioCodecReset(inCodec AudioCodec) (int32, error)

TryAudioCodecReset is like AudioCodecReset but returns an error instead of panicking if AudioCodecReset is unavailable at run time.

func TryAudioCodecSetProperty

func TryAudioCodecSetProperty(inCodec AudioCodec, inPropertyID AudioCodecPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioCodecSetProperty is like AudioCodecSetProperty but returns an error instead of panicking if AudioCodecSetProperty is unavailable at run time.

func TryAudioCodecUninitialize

func TryAudioCodecUninitialize(inCodec AudioCodec) (int32, error)

TryAudioCodecUninitialize is like AudioCodecUninitialize but returns an error instead of panicking if AudioCodecUninitialize is unavailable at run time.

func TryAudioComponentCopyConfigurationInfo

func TryAudioComponentCopyConfigurationInfo(inComponent AudioComponent, outConfigurationInfo *corefoundation.CFDictionaryRef) (int32, error)

TryAudioComponentCopyConfigurationInfo is like AudioComponentCopyConfigurationInfo but returns an error instead of panicking if AudioComponentCopyConfigurationInfo is unavailable at run time.

func TryAudioComponentCopyIcon

func TryAudioComponentCopyIcon(comp AudioComponent) (*objc.ID, error)

TryAudioComponentCopyIcon is like AudioComponentCopyIcon but returns an error instead of panicking if AudioComponentCopyIcon is unavailable at run time.

func TryAudioComponentCopyName

func TryAudioComponentCopyName(inComponent AudioComponent, outName *corefoundation.CFStringRef) (int32, error)

TryAudioComponentCopyName is like AudioComponentCopyName but returns an error instead of panicking if AudioComponentCopyName is unavailable at run time.

func TryAudioComponentCount

func TryAudioComponentCount(inDesc *AudioComponentDescription) (uint32, error)

TryAudioComponentCount is like AudioComponentCount but returns an error instead of panicking if AudioComponentCount is unavailable at run time.

func TryAudioComponentGetDescription

func TryAudioComponentGetDescription(inComponent AudioComponent, outDesc *AudioComponentDescription) (int32, error)

TryAudioComponentGetDescription is like AudioComponentGetDescription but returns an error instead of panicking if AudioComponentGetDescription is unavailable at run time.

func TryAudioComponentGetIcon

func TryAudioComponentGetIcon(comp AudioComponent) (*objc.ID, error)

TryAudioComponentGetIcon is like AudioComponentGetIcon but returns an error instead of panicking if AudioComponentGetIcon is unavailable at run time.

func TryAudioComponentGetVersion

func TryAudioComponentGetVersion(inComponent AudioComponent, outVersion *uint32) (int32, error)

TryAudioComponentGetVersion is like AudioComponentGetVersion but returns an error instead of panicking if AudioComponentGetVersion is unavailable at run time.

func TryAudioComponentInstanceCanDo

func TryAudioComponentInstanceCanDo(inInstance AudioComponentInstance, inSelectorID int16) (bool, error)

TryAudioComponentInstanceCanDo is like AudioComponentInstanceCanDo but returns an error instead of panicking if AudioComponentInstanceCanDo is unavailable at run time.

func TryAudioComponentInstanceDispose

func TryAudioComponentInstanceDispose(inInstance AudioComponentInstance) (int32, error)

TryAudioComponentInstanceDispose is like AudioComponentInstanceDispose but returns an error instead of panicking if AudioComponentInstanceDispose is unavailable at run time.

func TryAudioComponentInstanceNew

func TryAudioComponentInstanceNew(inComponent AudioComponent, outInstance *AudioComponentInstance) (int32, error)

TryAudioComponentInstanceNew is like AudioComponentInstanceNew but returns an error instead of panicking if AudioComponentInstanceNew is unavailable at run time.

func TryAudioComponentInstantiate

func TryAudioComponentInstantiate(inComponent AudioComponent, inOptions AudioComponentInstantiationOptions) error

TryAudioComponentInstantiate is like AudioComponentInstantiate but returns an error instead of panicking if AudioComponentInstantiate is unavailable at run time.

func TryAudioComponentValidate

func TryAudioComponentValidate(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef, outValidationResult *AudioComponentValidationResult) (int32, error)

TryAudioComponentValidate is like AudioComponentValidate but returns an error instead of panicking if AudioComponentValidate is unavailable at run time.

func TryAudioComponentValidateWithResults

func TryAudioComponentValidateWithResults(inComponent AudioComponent, inValidationParameters corefoundation.CFDictionaryRef) (int32, error)

TryAudioComponentValidateWithResults is like AudioComponentValidateWithResults but returns an error instead of panicking if AudioComponentValidateWithResults is unavailable at run time.

func TryAudioConverterConvertBuffer

func TryAudioConverterConvertBuffer(inAudioConverter AudioConverterRef, inInputDataSize uint32, inInputData unsafe.Pointer, ioOutputDataSize *uint32, outOutputData unsafe.Pointer) (int32, error)

TryAudioConverterConvertBuffer is like AudioConverterConvertBuffer but returns an error instead of panicking if AudioConverterConvertBuffer is unavailable at run time.

func TryAudioConverterConvertComplexBuffer

func TryAudioConverterConvertComplexBuffer(inAudioConverter AudioConverterRef, inNumberPCMFrames uint32, inInputData *coreaudiotypes.AudioBufferList, outOutputData *coreaudiotypes.AudioBufferList) (int32, error)

TryAudioConverterConvertComplexBuffer is like AudioConverterConvertComplexBuffer but returns an error instead of panicking if AudioConverterConvertComplexBuffer is unavailable at run time.

func TryAudioConverterDispose

func TryAudioConverterDispose(inAudioConverter AudioConverterRef) (int32, error)

TryAudioConverterDispose is like AudioConverterDispose but returns an error instead of panicking if AudioConverterDispose is unavailable at run time.

func TryAudioConverterFillBuffer

func TryAudioConverterFillBuffer(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataSize *uint32, outOutputData unsafe.Pointer) (int32, error)

TryAudioConverterFillBuffer is like AudioConverterFillBuffer but returns an error instead of panicking if AudioConverterFillBuffer is unavailable at run time.

func TryAudioConverterFillComplexBuffer

func TryAudioConverterFillComplexBuffer(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) (int32, error)

TryAudioConverterFillComplexBuffer is like AudioConverterFillComplexBuffer but returns an error instead of panicking if AudioConverterFillComplexBuffer is unavailable at run time.

func TryAudioConverterFillComplexBufferRealtimeSafe

func TryAudioConverterFillComplexBufferRealtimeSafe(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProcRealtimeSafe, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescription *coreaudiotypes.AudioStreamPacketDescription) (int32, error)

TryAudioConverterFillComplexBufferRealtimeSafe is like AudioConverterFillComplexBufferRealtimeSafe but returns an error instead of panicking if AudioConverterFillComplexBufferRealtimeSafe is unavailable at run time.

func TryAudioConverterFillComplexBufferWithPacketDependencies

func TryAudioConverterFillComplexBufferWithPacketDependencies(inAudioConverter AudioConverterRef, inInputDataProc AudioConverterComplexInputDataProc, inInputDataProcUserData unsafe.Pointer, ioOutputDataPacketSize *uint32, outOutputData *coreaudiotypes.AudioBufferList, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, outPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription) (int32, error)

TryAudioConverterFillComplexBufferWithPacketDependencies is like AudioConverterFillComplexBufferWithPacketDependencies but returns an error instead of panicking if AudioConverterFillComplexBufferWithPacketDependencies is unavailable at run time.

func TryAudioConverterGetProperty

func TryAudioConverterGetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioConverterGetProperty is like AudioConverterGetProperty but returns an error instead of panicking if AudioConverterGetProperty is unavailable at run time.

func TryAudioConverterGetPropertyInfo

func TryAudioConverterGetPropertyInfo(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, outSize *uint32, outWritable *bool) (int32, error)

TryAudioConverterGetPropertyInfo is like AudioConverterGetPropertyInfo but returns an error instead of panicking if AudioConverterGetPropertyInfo is unavailable at run time.

func TryAudioConverterNew

func TryAudioConverterNew(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, outAudioConverter *AudioConverterRef) (int32, error)

TryAudioConverterNew is like AudioConverterNew but returns an error instead of panicking if AudioConverterNew is unavailable at run time.

func TryAudioConverterNewSpecific

func TryAudioConverterNewSpecific(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inNumberClassDescriptions uint32, inClassDescriptions *coreaudiotypes.AudioClassDescription, outAudioConverter *AudioConverterRef) (int32, error)

TryAudioConverterNewSpecific is like AudioConverterNewSpecific but returns an error instead of panicking if AudioConverterNewSpecific is unavailable at run time.

func TryAudioConverterNewWithOptions

func TryAudioConverterNewWithOptions(inSourceFormat *coreaudiotypes.AudioStreamBasicDescription, inDestinationFormat *coreaudiotypes.AudioStreamBasicDescription, inOptions AudioConverterOptions, outAudioConverter *AudioConverterRef) (int32, error)

TryAudioConverterNewWithOptions is like AudioConverterNewWithOptions but returns an error instead of panicking if AudioConverterNewWithOptions is unavailable at run time.

func TryAudioConverterPrepare

func TryAudioConverterPrepare(inFlags uint32, ioReserved unsafe.Pointer) error

TryAudioConverterPrepare is like AudioConverterPrepare but returns an error instead of panicking if AudioConverterPrepare is unavailable at run time.

func TryAudioConverterReset

func TryAudioConverterReset(inAudioConverter AudioConverterRef) (int32, error)

TryAudioConverterReset is like AudioConverterReset but returns an error instead of panicking if AudioConverterReset is unavailable at run time.

func TryAudioConverterSetProperty

func TryAudioConverterSetProperty(inAudioConverter AudioConverterRef, inPropertyID AudioConverterPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioConverterSetProperty is like AudioConverterSetProperty but returns an error instead of panicking if AudioConverterSetProperty is unavailable at run time.

func TryAudioFileClose

func TryAudioFileClose(inAudioFile AudioFileID) (int32, error)

TryAudioFileClose is like AudioFileClose but returns an error instead of panicking if AudioFileClose is unavailable at run time.

func TryAudioFileComponentCloseFile

func TryAudioFileComponentCloseFile(inComponent AudioFileComponent) (int32, error)

TryAudioFileComponentCloseFile is like AudioFileComponentCloseFile but returns an error instead of panicking if AudioFileComponentCloseFile is unavailable at run time.

func TryAudioFileComponentCountUserData

func TryAudioFileComponentCountUserData(inComponent AudioFileComponent, inUserDataID uint32, outNumberItems *uint32) (int32, error)

TryAudioFileComponentCountUserData is like AudioFileComponentCountUserData but returns an error instead of panicking if AudioFileComponentCountUserData is unavailable at run time.

func TryAudioFileComponentCreate

func TryAudioFileComponentCreate(inComponent AudioFileComponent, inParentRef *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, outNewFileRef *coreservices.FSRef) (int32, error)

TryAudioFileComponentCreate is like AudioFileComponentCreate but returns an error instead of panicking if AudioFileComponentCreate is unavailable at run time.

func TryAudioFileComponentCreateURL

func TryAudioFileComponentCreateURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32) (int32, error)

TryAudioFileComponentCreateURL is like AudioFileComponentCreateURL but returns an error instead of panicking if AudioFileComponentCreateURL is unavailable at run time.

func TryAudioFileComponentDataIsThisFormat

func TryAudioFileComponentDataIsThisFormat(inComponent AudioFileComponent, inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, outResult *uint32) (int32, error)

TryAudioFileComponentDataIsThisFormat is like AudioFileComponentDataIsThisFormat but returns an error instead of panicking if AudioFileComponentDataIsThisFormat is unavailable at run time.

func TryAudioFileComponentExtensionIsThisFormat

func TryAudioFileComponentExtensionIsThisFormat(inComponent AudioFileComponent, inExtension corefoundation.CFStringRef, outResult *uint32) (int32, error)

TryAudioFileComponentExtensionIsThisFormat is like AudioFileComponentExtensionIsThisFormat but returns an error instead of panicking if AudioFileComponentExtensionIsThisFormat is unavailable at run time.

func TryAudioFileComponentFileDataIsThisFormat

func TryAudioFileComponentFileDataIsThisFormat(inComponent AudioFileComponent, inDataByteSize uint32, inData unsafe.Pointer, outResult *uint32) (int32, error)

TryAudioFileComponentFileDataIsThisFormat is like AudioFileComponentFileDataIsThisFormat but returns an error instead of panicking if AudioFileComponentFileDataIsThisFormat is unavailable at run time.

func TryAudioFileComponentFileIsThisFormat

func TryAudioFileComponentFileIsThisFormat(inComponent AudioFileComponent, inFileRefNum int16, outResult *uint32) (int32, error)

TryAudioFileComponentFileIsThisFormat is like AudioFileComponentFileIsThisFormat but returns an error instead of panicking if AudioFileComponentFileIsThisFormat is unavailable at run time.

func TryAudioFileComponentGetGlobalInfo

func TryAudioFileComponentGetGlobalInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFileComponentGetGlobalInfo is like AudioFileComponentGetGlobalInfo but returns an error instead of panicking if AudioFileComponentGetGlobalInfo is unavailable at run time.

func TryAudioFileComponentGetGlobalInfoSize

func TryAudioFileComponentGetGlobalInfoSize(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertySize *uint32) (int32, error)

TryAudioFileComponentGetGlobalInfoSize is like AudioFileComponentGetGlobalInfoSize but returns an error instead of panicking if AudioFileComponentGetGlobalInfoSize is unavailable at run time.

func TryAudioFileComponentGetProperty

func TryAudioFileComponentGetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFileComponentGetProperty is like AudioFileComponentGetProperty but returns an error instead of panicking if AudioFileComponentGetProperty is unavailable at run time.

func TryAudioFileComponentGetPropertyInfo

func TryAudioFileComponentGetPropertyInfo(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, outPropertySize *uint32, outWritable *uint32) (int32, error)

TryAudioFileComponentGetPropertyInfo is like AudioFileComponentGetPropertyInfo but returns an error instead of panicking if AudioFileComponentGetPropertyInfo is unavailable at run time.

func TryAudioFileComponentGetUserData

func TryAudioFileComponentGetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, ioUserDataSize *uint32, outUserData unsafe.Pointer) (int32, error)

TryAudioFileComponentGetUserData is like AudioFileComponentGetUserData but returns an error instead of panicking if AudioFileComponentGetUserData is unavailable at run time.

func TryAudioFileComponentGetUserDataAtOffset

func TryAudioFileComponentGetUserDataAtOffset(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, inOffset int64, ioUserDataSize *uint32, outUserData unsafe.Pointer) (int32, error)

TryAudioFileComponentGetUserDataAtOffset is like AudioFileComponentGetUserDataAtOffset but returns an error instead of panicking if AudioFileComponentGetUserDataAtOffset is unavailable at run time.

func TryAudioFileComponentGetUserDataSize

func TryAudioFileComponentGetUserDataSize(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint32) (int32, error)

TryAudioFileComponentGetUserDataSize is like AudioFileComponentGetUserDataSize but returns an error instead of panicking if AudioFileComponentGetUserDataSize is unavailable at run time.

func TryAudioFileComponentGetUserDataSize64

func TryAudioFileComponentGetUserDataSize64(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, outUserDataSize *uint64) (int32, error)

TryAudioFileComponentGetUserDataSize64 is like AudioFileComponentGetUserDataSize64 but returns an error instead of panicking if AudioFileComponentGetUserDataSize64 is unavailable at run time.

func TryAudioFileComponentInitialize

func TryAudioFileComponentInitialize(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32) (int32, error)

TryAudioFileComponentInitialize is like AudioFileComponentInitialize but returns an error instead of panicking if AudioFileComponentInitialize is unavailable at run time.

func TryAudioFileComponentInitializeWithCallbacks

func TryAudioFileComponentInitializeWithCallbacks(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, error)

TryAudioFileComponentInitializeWithCallbacks is like AudioFileComponentInitializeWithCallbacks but returns an error instead of panicking if AudioFileComponentInitializeWithCallbacks is unavailable at run time.

func TryAudioFileComponentOpenFile

func TryAudioFileComponentOpenFile(inComponent AudioFileComponent, inFileRef *coreservices.FSRef, inPermissions int8, inRefNum int16) (int32, error)

TryAudioFileComponentOpenFile is like AudioFileComponentOpenFile but returns an error instead of panicking if AudioFileComponentOpenFile is unavailable at run time.

func TryAudioFileComponentOpenURL

func TryAudioFileComponentOpenURL(inComponent AudioFileComponent, inFileRef corefoundation.CFURLRef, inPermissions int8, inFileDescriptor int32) (int32, error)

TryAudioFileComponentOpenURL is like AudioFileComponentOpenURL but returns an error instead of panicking if AudioFileComponentOpenURL is unavailable at run time.

func TryAudioFileComponentOpenWithCallbacks

func TryAudioFileComponentOpenWithCallbacks(inComponent AudioFileComponent, inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc) (int32, error)

TryAudioFileComponentOpenWithCallbacks is like AudioFileComponentOpenWithCallbacks but returns an error instead of panicking if AudioFileComponentOpenWithCallbacks is unavailable at run time.

func TryAudioFileComponentOptimize

func TryAudioFileComponentOptimize(inComponent AudioFileComponent) (int32, error)

TryAudioFileComponentOptimize is like AudioFileComponentOptimize but returns an error instead of panicking if AudioFileComponentOptimize is unavailable at run time.

func TryAudioFileComponentReadBytes

func TryAudioFileComponentReadBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileComponentReadBytes is like AudioFileComponentReadBytes but returns an error instead of panicking if AudioFileComponentReadBytes is unavailable at run time.

func TryAudioFileComponentReadPacketData

func TryAudioFileComponentReadPacketData(inComponent AudioFileComponent, inUseCache bool, ioNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileComponentReadPacketData is like AudioFileComponentReadPacketData but returns an error instead of panicking if AudioFileComponentReadPacketData is unavailable at run time.

func TryAudioFileComponentReadPackets

func TryAudioFileComponentReadPackets(inComponent AudioFileComponent, inUseCache bool, outNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileComponentReadPackets is like AudioFileComponentReadPackets but returns an error instead of panicking if AudioFileComponentReadPackets is unavailable at run time.

func TryAudioFileComponentRemoveUserData

func TryAudioFileComponentRemoveUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32) (int32, error)

TryAudioFileComponentRemoveUserData is like AudioFileComponentRemoveUserData but returns an error instead of panicking if AudioFileComponentRemoveUserData is unavailable at run time.

func TryAudioFileComponentSetProperty

func TryAudioFileComponentSetProperty(inComponent AudioFileComponent, inPropertyID AudioFileComponentPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioFileComponentSetProperty is like AudioFileComponentSetProperty but returns an error instead of panicking if AudioFileComponentSetProperty is unavailable at run time.

func TryAudioFileComponentSetUserData

func TryAudioFileComponentSetUserData(inComponent AudioFileComponent, inUserDataID uint32, inIndex uint32, inUserDataSize uint32, inUserData unsafe.Pointer) (int32, error)

TryAudioFileComponentSetUserData is like AudioFileComponentSetUserData but returns an error instead of panicking if AudioFileComponentSetUserData is unavailable at run time.

func TryAudioFileComponentWriteBytes

func TryAudioFileComponentWriteBytes(inComponent AudioFileComponent, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, inBuffer unsafe.Pointer) (int32, error)

TryAudioFileComponentWriteBytes is like AudioFileComponentWriteBytes but returns an error instead of panicking if AudioFileComponentWriteBytes is unavailable at run time.

func TryAudioFileComponentWritePackets

func TryAudioFileComponentWritePackets(inComponent AudioFileComponent, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) (int32, error)

TryAudioFileComponentWritePackets is like AudioFileComponentWritePackets but returns an error instead of panicking if AudioFileComponentWritePackets is unavailable at run time.

func TryAudioFileCountUserData

func TryAudioFileCountUserData(inAudioFile AudioFileID, inUserDataID uint32, outNumberItems *uint32) (int32, error)

TryAudioFileCountUserData is like AudioFileCountUserData but returns an error instead of panicking if AudioFileCountUserData is unavailable at run time.

func TryAudioFileCreate

func TryAudioFileCreate(inParentRef *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outNewFileRef *coreservices.FSRef, outAudioFile *AudioFileID) (int32, error)

TryAudioFileCreate is like AudioFileCreate but returns an error instead of panicking if AudioFileCreate is unavailable at run time.

func TryAudioFileCreateWithURL

func TryAudioFileCreateWithURL(inFileRef corefoundation.CFURLRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile *AudioFileID) (int32, error)

TryAudioFileCreateWithURL is like AudioFileCreateWithURL but returns an error instead of panicking if AudioFileCreateWithURL is unavailable at run time.

func TryAudioFileGetGlobalInfo

func TryAudioFileGetGlobalInfo(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFileGetGlobalInfo is like AudioFileGetGlobalInfo but returns an error instead of panicking if AudioFileGetGlobalInfo is unavailable at run time.

func TryAudioFileGetGlobalInfoSize

func TryAudioFileGetGlobalInfoSize(inPropertyID AudioFilePropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outDataSize *uint32) (int32, error)

TryAudioFileGetGlobalInfoSize is like AudioFileGetGlobalInfoSize but returns an error instead of panicking if AudioFileGetGlobalInfoSize is unavailable at run time.

func TryAudioFileGetProperty

func TryAudioFileGetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, ioDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFileGetProperty is like AudioFileGetProperty but returns an error instead of panicking if AudioFileGetProperty is unavailable at run time.

func TryAudioFileGetPropertyInfo

func TryAudioFileGetPropertyInfo(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, outDataSize *uint32, isWritable *uint32) (int32, error)

TryAudioFileGetPropertyInfo is like AudioFileGetPropertyInfo but returns an error instead of panicking if AudioFileGetPropertyInfo is unavailable at run time.

func TryAudioFileGetUserData

func TryAudioFileGetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, ioUserDataSize *uint32, outUserData unsafe.Pointer) (int32, error)

TryAudioFileGetUserData is like AudioFileGetUserData but returns an error instead of panicking if AudioFileGetUserData is unavailable at run time.

func TryAudioFileGetUserDataAtOffset

func TryAudioFileGetUserDataAtOffset(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, inOffset int64, ioUserDataSize *uint32, outUserData unsafe.Pointer) (int32, error)

TryAudioFileGetUserDataAtOffset is like AudioFileGetUserDataAtOffset but returns an error instead of panicking if AudioFileGetUserDataAtOffset is unavailable at run time.

func TryAudioFileGetUserDataSize

func TryAudioFileGetUserDataSize(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, outUserDataSize *uint32) (int32, error)

TryAudioFileGetUserDataSize is like AudioFileGetUserDataSize but returns an error instead of panicking if AudioFileGetUserDataSize is unavailable at run time.

func TryAudioFileGetUserDataSize64

func TryAudioFileGetUserDataSize64(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, outUserDataSize *uint64) (int32, error)

TryAudioFileGetUserDataSize64 is like AudioFileGetUserDataSize64 but returns an error instead of panicking if AudioFileGetUserDataSize64 is unavailable at run time.

func TryAudioFileInitialize

func TryAudioFileInitialize(inFileRef *coreservices.FSRef, inFileType AudioFileTypeID, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags AudioFileFlags, outAudioFile *AudioFileID) (int32, error)

TryAudioFileInitialize is like AudioFileInitialize but returns an error instead of panicking if AudioFileInitialize is unavailable at run time.

func TryAudioFileInitializeWithCallbacks

func TryAudioFileInitializeWithCallbacks(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, error)

TryAudioFileInitializeWithCallbacks is like AudioFileInitializeWithCallbacks but returns an error instead of panicking if AudioFileInitializeWithCallbacks is unavailable at run time.

func TryAudioFileOpen

func TryAudioFileOpen(inFileRef *coreservices.FSRef, inPermissions AudioFilePermissions, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) (int32, error)

TryAudioFileOpen is like AudioFileOpen but returns an error instead of panicking if AudioFileOpen is unavailable at run time.

func TryAudioFileOpenURL

func TryAudioFileOpenURL(inFileRef corefoundation.CFURLRef, inPermissions AudioFilePermissions, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) (int32, error)

TryAudioFileOpenURL is like AudioFileOpenURL but returns an error instead of panicking if AudioFileOpenURL is unavailable at run time.

func TryAudioFileOpenWithCallbacks

func TryAudioFileOpenWithCallbacks(inClientData unsafe.Pointer, inReadFunc AudioFile_ReadProc, inWriteFunc AudioFile_WriteProc, inGetSizeFunc AudioFile_GetSizeProc, inSetSizeFunc AudioFile_SetSizeProc, inFileTypeHint AudioFileTypeID, outAudioFile *AudioFileID) (int32, error)

TryAudioFileOpenWithCallbacks is like AudioFileOpenWithCallbacks but returns an error instead of panicking if AudioFileOpenWithCallbacks is unavailable at run time.

func TryAudioFileOptimize

func TryAudioFileOptimize(inAudioFile AudioFileID) (int32, error)

TryAudioFileOptimize is like AudioFileOptimize but returns an error instead of panicking if AudioFileOptimize is unavailable at run time.

func TryAudioFileReadBytes

func TryAudioFileReadBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileReadBytes is like AudioFileReadBytes but returns an error instead of panicking if AudioFileReadBytes is unavailable at run time.

func TryAudioFileReadPacketData

func TryAudioFileReadPacketData(inAudioFile AudioFileID, inUseCache bool, ioNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileReadPacketData is like AudioFileReadPacketData but returns an error instead of panicking if AudioFileReadPacketData is unavailable at run time.

func TryAudioFileReadPackets

func TryAudioFileReadPackets(inAudioFile AudioFileID, inUseCache bool, outNumBytes *uint32, outPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, outBuffer unsafe.Pointer) (int32, error)

TryAudioFileReadPackets is like AudioFileReadPackets but returns an error instead of panicking if AudioFileReadPackets is unavailable at run time.

func TryAudioFileRemoveUserData

func TryAudioFileRemoveUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32) (int32, error)

TryAudioFileRemoveUserData is like AudioFileRemoveUserData but returns an error instead of panicking if AudioFileRemoveUserData is unavailable at run time.

func TryAudioFileSetProperty

func TryAudioFileSetProperty(inAudioFile AudioFileID, inPropertyID AudioFilePropertyID, inDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioFileSetProperty is like AudioFileSetProperty but returns an error instead of panicking if AudioFileSetProperty is unavailable at run time.

func TryAudioFileSetUserData

func TryAudioFileSetUserData(inAudioFile AudioFileID, inUserDataID uint32, inIndex uint32, inUserDataSize uint32, inUserData unsafe.Pointer) (int32, error)

TryAudioFileSetUserData is like AudioFileSetUserData but returns an error instead of panicking if AudioFileSetUserData is unavailable at run time.

func TryAudioFileStreamClose

func TryAudioFileStreamClose(inAudioFileStream AudioFileStreamID) (int32, error)

TryAudioFileStreamClose is like AudioFileStreamClose but returns an error instead of panicking if AudioFileStreamClose is unavailable at run time.

func TryAudioFileStreamGetProperty

func TryAudioFileStreamGetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFileStreamGetProperty is like AudioFileStreamGetProperty but returns an error instead of panicking if AudioFileStreamGetProperty is unavailable at run time.

func TryAudioFileStreamGetPropertyInfo

func TryAudioFileStreamGetPropertyInfo(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, outPropertyDataSize *uint32, outWritable *bool) (int32, error)

TryAudioFileStreamGetPropertyInfo is like AudioFileStreamGetPropertyInfo but returns an error instead of panicking if AudioFileStreamGetPropertyInfo is unavailable at run time.

func TryAudioFileStreamOpen

func TryAudioFileStreamOpen(inClientData unsafe.Pointer, inPropertyListenerProc AudioFileStream_PropertyListenerProc, inPacketsProc AudioFileStream_PacketsProc, inFileTypeHint AudioFileTypeID, outAudioFileStream *AudioFileStreamID) (int32, error)

TryAudioFileStreamOpen is like AudioFileStreamOpen but returns an error instead of panicking if AudioFileStreamOpen is unavailable at run time.

func TryAudioFileStreamParseBytes

func TryAudioFileStreamParseBytes(inAudioFileStream AudioFileStreamID, inDataByteSize uint32, inData unsafe.Pointer, inFlags AudioFileStreamParseFlags) (int32, error)

TryAudioFileStreamParseBytes is like AudioFileStreamParseBytes but returns an error instead of panicking if AudioFileStreamParseBytes is unavailable at run time.

func TryAudioFileStreamSeek

func TryAudioFileStreamSeek(inAudioFileStream AudioFileStreamID, inPacketOffset int64, outDataByteOffset *int64, ioFlags *AudioFileStreamSeekFlags) (int32, error)

TryAudioFileStreamSeek is like AudioFileStreamSeek but returns an error instead of panicking if AudioFileStreamSeek is unavailable at run time.

func TryAudioFileStreamSetProperty

func TryAudioFileStreamSetProperty(inAudioFileStream AudioFileStreamID, inPropertyID AudioFileStreamPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioFileStreamSetProperty is like AudioFileStreamSetProperty but returns an error instead of panicking if AudioFileStreamSetProperty is unavailable at run time.

func TryAudioFileWriteBytes

func TryAudioFileWriteBytes(inAudioFile AudioFileID, inUseCache bool, inStartingByte int64, ioNumBytes *uint32, inBuffer unsafe.Pointer) (int32, error)

TryAudioFileWriteBytes is like AudioFileWriteBytes but returns an error instead of panicking if AudioFileWriteBytes is unavailable at run time.

func TryAudioFileWritePackets

func TryAudioFileWritePackets(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) (int32, error)

TryAudioFileWritePackets is like AudioFileWritePackets but returns an error instead of panicking if AudioFileWritePackets is unavailable at run time.

func TryAudioFileWritePacketsWithDependencies

func TryAudioFileWritePacketsWithDependencies(inAudioFile AudioFileID, inUseCache bool, inNumBytes uint32, inPacketDescriptions *coreaudiotypes.AudioStreamPacketDescription, inPacketDependencies *coreaudiotypes.AudioStreamPacketDependencyDescription, inStartingPacket int64, ioNumPackets *uint32, inBuffer unsafe.Pointer) (int32, error)

TryAudioFileWritePacketsWithDependencies is like AudioFileWritePacketsWithDependencies but returns an error instead of panicking if AudioFileWritePacketsWithDependencies is unavailable at run time.

func TryAudioFormatGetProperty

func TryAudioFormatGetProperty(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioFormatGetProperty is like AudioFormatGetProperty but returns an error instead of panicking if AudioFormatGetProperty is unavailable at run time.

func TryAudioFormatGetPropertyInfo

func TryAudioFormatGetPropertyInfo(inPropertyID AudioFormatPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertyDataSize *uint32) (int32, error)

TryAudioFormatGetPropertyInfo is like AudioFormatGetPropertyInfo but returns an error instead of panicking if AudioFormatGetPropertyInfo is unavailable at run time.

func TryAudioHardwareServiceAddPropertyListener

func TryAudioHardwareServiceAddPropertyListener(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) (int32, error)

TryAudioHardwareServiceAddPropertyListener is like AudioHardwareServiceAddPropertyListener but returns an error instead of panicking if AudioHardwareServiceAddPropertyListener is unavailable at run time.

func TryAudioHardwareServiceGetPropertyData

func TryAudioHardwareServiceGetPropertyData(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, ioDataSize *uint32, outData unsafe.Pointer) (int32, error)

TryAudioHardwareServiceGetPropertyData is like AudioHardwareServiceGetPropertyData but returns an error instead of panicking if AudioHardwareServiceGetPropertyData is unavailable at run time.

func TryAudioHardwareServiceGetPropertyDataSize

func TryAudioHardwareServiceGetPropertyDataSize(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, outDataSize *uint32) (int32, error)

TryAudioHardwareServiceGetPropertyDataSize is like AudioHardwareServiceGetPropertyDataSize but returns an error instead of panicking if AudioHardwareServiceGetPropertyDataSize is unavailable at run time.

func TryAudioHardwareServiceHasProperty

func TryAudioHardwareServiceHasProperty(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress) (bool, error)

TryAudioHardwareServiceHasProperty is like AudioHardwareServiceHasProperty but returns an error instead of panicking if AudioHardwareServiceHasProperty is unavailable at run time.

func TryAudioHardwareServiceIsPropertySettable

func TryAudioHardwareServiceIsPropertySettable(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, outIsSettable *bool) (int32, error)

TryAudioHardwareServiceIsPropertySettable is like AudioHardwareServiceIsPropertySettable but returns an error instead of panicking if AudioHardwareServiceIsPropertySettable is unavailable at run time.

func TryAudioHardwareServiceRemovePropertyListener

func TryAudioHardwareServiceRemovePropertyListener(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inListener unsafe.Pointer, inClientData unsafe.Pointer) (int32, error)

TryAudioHardwareServiceRemovePropertyListener is like AudioHardwareServiceRemovePropertyListener but returns an error instead of panicking if AudioHardwareServiceRemovePropertyListener is unavailable at run time.

func TryAudioHardwareServiceSetPropertyData

func TryAudioHardwareServiceSetPropertyData(inObjectID coreaudio.AudioObjectID, inAddress *coreaudio.AudioObjectPropertyAddress, inQualifierDataSize uint32, inQualifierData unsafe.Pointer, inDataSize uint32, inData unsafe.Pointer) (int32, error)

TryAudioHardwareServiceSetPropertyData is like AudioHardwareServiceSetPropertyData but returns an error instead of panicking if AudioHardwareServiceSetPropertyData is unavailable at run time.

func TryAudioOutputUnitStart

func TryAudioOutputUnitStart(ci AudioUnit) (int32, error)

TryAudioOutputUnitStart is like AudioOutputUnitStart but returns an error instead of panicking if AudioOutputUnitStart is unavailable at run time.

func TryAudioOutputUnitStop

func TryAudioOutputUnitStop(ci AudioUnit) (int32, error)

TryAudioOutputUnitStop is like AudioOutputUnitStop but returns an error instead of panicking if AudioOutputUnitStop is unavailable at run time.

func TryAudioQueueAddPropertyListener

func TryAudioQueueAddPropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, inProc AudioQueuePropertyListenerProc, inUserData unsafe.Pointer) (int32, error)

TryAudioQueueAddPropertyListener is like AudioQueueAddPropertyListener but returns an error instead of panicking if AudioQueueAddPropertyListener is unavailable at run time.

func TryAudioQueueAllocateBuffer

func TryAudioQueueAllocateBuffer(inAQ AudioQueueRef, inBufferByteSize uint32, outBuffer *AudioQueueBufferRef) (int32, error)

TryAudioQueueAllocateBuffer is like AudioQueueAllocateBuffer but returns an error instead of panicking if AudioQueueAllocateBuffer is unavailable at run time.

func TryAudioQueueAllocateBufferWithPacketDescriptions

func TryAudioQueueAllocateBufferWithPacketDescriptions(inAQ AudioQueueRef, inBufferByteSize uint32, inNumberPacketDescriptions uint32, outBuffer *AudioQueueBufferRef) (int32, error)

TryAudioQueueAllocateBufferWithPacketDescriptions is like AudioQueueAllocateBufferWithPacketDescriptions but returns an error instead of panicking if AudioQueueAllocateBufferWithPacketDescriptions is unavailable at run time.

func TryAudioQueueCreateTimeline

func TryAudioQueueCreateTimeline(inAQ AudioQueueRef, outTimeline *AudioQueueTimelineRef) (int32, error)

TryAudioQueueCreateTimeline is like AudioQueueCreateTimeline but returns an error instead of panicking if AudioQueueCreateTimeline is unavailable at run time.

func TryAudioQueueDeviceGetCurrentTime

func TryAudioQueueDeviceGetCurrentTime(inAQ AudioQueueRef, outTimeStamp *coreaudiotypes.AudioTimeStamp) (int32, error)

TryAudioQueueDeviceGetCurrentTime is like AudioQueueDeviceGetCurrentTime but returns an error instead of panicking if AudioQueueDeviceGetCurrentTime is unavailable at run time.

func TryAudioQueueDeviceGetNearestStartTime

func TryAudioQueueDeviceGetNearestStartTime(inAQ AudioQueueRef, ioRequestedStartTime *coreaudiotypes.AudioTimeStamp, inFlags uint32) (int32, error)

TryAudioQueueDeviceGetNearestStartTime is like AudioQueueDeviceGetNearestStartTime but returns an error instead of panicking if AudioQueueDeviceGetNearestStartTime is unavailable at run time.

func TryAudioQueueDeviceTranslateTime

func TryAudioQueueDeviceTranslateTime(inAQ AudioQueueRef, inTime *coreaudiotypes.AudioTimeStamp, outTime *coreaudiotypes.AudioTimeStamp) (int32, error)

TryAudioQueueDeviceTranslateTime is like AudioQueueDeviceTranslateTime but returns an error instead of panicking if AudioQueueDeviceTranslateTime is unavailable at run time.

func TryAudioQueueDispose

func TryAudioQueueDispose(inAQ AudioQueueRef, inImmediate bool) (int32, error)

TryAudioQueueDispose is like AudioQueueDispose but returns an error instead of panicking if AudioQueueDispose is unavailable at run time.

func TryAudioQueueDisposeTimeline

func TryAudioQueueDisposeTimeline(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef) (int32, error)

TryAudioQueueDisposeTimeline is like AudioQueueDisposeTimeline but returns an error instead of panicking if AudioQueueDisposeTimeline is unavailable at run time.

func TryAudioQueueEnqueueBuffer

func TryAudioQueueEnqueueBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription) (int32, error)

TryAudioQueueEnqueueBuffer is like AudioQueueEnqueueBuffer but returns an error instead of panicking if AudioQueueEnqueueBuffer is unavailable at run time.

func TryAudioQueueEnqueueBufferWithParameters

func TryAudioQueueEnqueueBufferWithParameters(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef, inNumPacketDescs uint32, inPacketDescs *coreaudiotypes.AudioStreamPacketDescription, inTrimFramesAtStart uint32, inTrimFramesAtEnd uint32, inNumParamValues uint32, inParamValues *AudioQueueParameterEvent, inStartTime *coreaudiotypes.AudioTimeStamp, outActualStartTime *coreaudiotypes.AudioTimeStamp) (int32, error)

TryAudioQueueEnqueueBufferWithParameters is like AudioQueueEnqueueBufferWithParameters but returns an error instead of panicking if AudioQueueEnqueueBufferWithParameters is unavailable at run time.

func TryAudioQueueFlush

func TryAudioQueueFlush(inAQ AudioQueueRef) (int32, error)

TryAudioQueueFlush is like AudioQueueFlush but returns an error instead of panicking if AudioQueueFlush is unavailable at run time.

func TryAudioQueueFreeBuffer

func TryAudioQueueFreeBuffer(inAQ AudioQueueRef, inBuffer AudioQueueBufferRef) (int32, error)

TryAudioQueueFreeBuffer is like AudioQueueFreeBuffer but returns an error instead of panicking if AudioQueueFreeBuffer is unavailable at run time.

func TryAudioQueueGetCurrentTime

func TryAudioQueueGetCurrentTime(inAQ AudioQueueRef, inTimeline AudioQueueTimelineRef, outTimeStamp *coreaudiotypes.AudioTimeStamp, outTimelineDiscontinuity *bool) (int32, error)

TryAudioQueueGetCurrentTime is like AudioQueueGetCurrentTime but returns an error instead of panicking if AudioQueueGetCurrentTime is unavailable at run time.

func TryAudioQueueGetParameter

func TryAudioQueueGetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, outValue *AudioQueueParameterValue) (int32, error)

TryAudioQueueGetParameter is like AudioQueueGetParameter but returns an error instead of panicking if AudioQueueGetParameter is unavailable at run time.

func TryAudioQueueGetProperty

func TryAudioQueueGetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, outData unsafe.Pointer, ioDataSize *uint32) (int32, error)

TryAudioQueueGetProperty is like AudioQueueGetProperty but returns an error instead of panicking if AudioQueueGetProperty is unavailable at run time.

func TryAudioQueueGetPropertySize

func TryAudioQueueGetPropertySize(inAQ AudioQueueRef, inID AudioQueuePropertyID, outDataSize *uint32) (int32, error)

TryAudioQueueGetPropertySize is like AudioQueueGetPropertySize but returns an error instead of panicking if AudioQueueGetPropertySize is unavailable at run time.

func TryAudioQueueNewInput

func TryAudioQueueNewInput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc AudioQueueInputCallback, inUserData unsafe.Pointer, inCallbackRunLoop corefoundation.CFRunLoopRef, inCallbackRunLoopMode corefoundation.CFStringRef, inFlags uint32, outAQ *AudioQueueRef) (int32, error)

TryAudioQueueNewInput is like AudioQueueNewInput but returns an error instead of panicking if AudioQueueNewInput is unavailable at run time.

func TryAudioQueueNewInputWithDispatchQueue

func TryAudioQueueNewInputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, inCallbackDispatchQueue dispatch.Queue, inCallbackBlock AudioQueueInputCallbackBlock) (int32, error)

TryAudioQueueNewInputWithDispatchQueue is like AudioQueueNewInputWithDispatchQueue but returns an error instead of panicking if AudioQueueNewInputWithDispatchQueue is unavailable at run time.

func TryAudioQueueNewOutput

func TryAudioQueueNewOutput(inFormat *coreaudiotypes.AudioStreamBasicDescription, inCallbackProc AudioQueueOutputCallback, inUserData unsafe.Pointer, inCallbackRunLoop corefoundation.CFRunLoopRef, inCallbackRunLoopMode corefoundation.CFStringRef, inFlags uint32, outAQ *AudioQueueRef) (int32, error)

TryAudioQueueNewOutput is like AudioQueueNewOutput but returns an error instead of panicking if AudioQueueNewOutput is unavailable at run time.

func TryAudioQueueNewOutputWithDispatchQueue

func TryAudioQueueNewOutputWithDispatchQueue(outAQ *AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inFlags uint32, inCallbackDispatchQueue dispatch.Queue, inCallbackBlock AudioQueueOutputCallbackBlock) (int32, error)

TryAudioQueueNewOutputWithDispatchQueue is like AudioQueueNewOutputWithDispatchQueue but returns an error instead of panicking if AudioQueueNewOutputWithDispatchQueue is unavailable at run time.

func TryAudioQueueOfflineRender

func TryAudioQueueOfflineRender(inAQ AudioQueueRef, inTimestamp *coreaudiotypes.AudioTimeStamp, ioBuffer AudioQueueBufferRef, inNumberFrames uint32) (int32, error)

TryAudioQueueOfflineRender is like AudioQueueOfflineRender but returns an error instead of panicking if AudioQueueOfflineRender is unavailable at run time.

func TryAudioQueuePause

func TryAudioQueuePause(inAQ AudioQueueRef) (int32, error)

TryAudioQueuePause is like AudioQueuePause but returns an error instead of panicking if AudioQueuePause is unavailable at run time.

func TryAudioQueuePrime

func TryAudioQueuePrime(inAQ AudioQueueRef, inNumberOfFramesToPrepare uint32, outNumberOfFramesPrepared *uint32) (int32, error)

TryAudioQueuePrime is like AudioQueuePrime but returns an error instead of panicking if AudioQueuePrime is unavailable at run time.

func TryAudioQueueProcessingTapDispose

func TryAudioQueueProcessingTapDispose(inAQTap AudioQueueProcessingTapRef) (int32, error)

TryAudioQueueProcessingTapDispose is like AudioQueueProcessingTapDispose but returns an error instead of panicking if AudioQueueProcessingTapDispose is unavailable at run time.

func TryAudioQueueProcessingTapGetQueueTime

func TryAudioQueueProcessingTapGetQueueTime(inAQTap AudioQueueProcessingTapRef, outQueueSampleTime *float64, outQueueFrameCount *uint32) (int32, error)

TryAudioQueueProcessingTapGetQueueTime is like AudioQueueProcessingTapGetQueueTime but returns an error instead of panicking if AudioQueueProcessingTapGetQueueTime is unavailable at run time.

func TryAudioQueueProcessingTapGetSourceAudio

func TryAudioQueueProcessingTapGetSourceAudio(inAQTap AudioQueueProcessingTapRef, inNumberFrames uint32, ioTimeStamp *coreaudiotypes.AudioTimeStamp, outFlags *AudioQueueProcessingTapFlags, outNumberFrames *uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryAudioQueueProcessingTapGetSourceAudio is like AudioQueueProcessingTapGetSourceAudio but returns an error instead of panicking if AudioQueueProcessingTapGetSourceAudio is unavailable at run time.

func TryAudioQueueProcessingTapNew

func TryAudioQueueProcessingTapNew(inAQ AudioQueueRef, inCallback AudioQueueProcessingTapCallback, inClientData unsafe.Pointer, inFlags AudioQueueProcessingTapFlags, outMaxFrames *uint32, outProcessingFormat *coreaudiotypes.AudioStreamBasicDescription, outAQTap *AudioQueueProcessingTapRef) (int32, error)

TryAudioQueueProcessingTapNew is like AudioQueueProcessingTapNew but returns an error instead of panicking if AudioQueueProcessingTapNew is unavailable at run time.

func TryAudioQueueRemovePropertyListener

func TryAudioQueueRemovePropertyListener(inAQ AudioQueueRef, inID AudioQueuePropertyID, inProc AudioQueuePropertyListenerProc, inUserData unsafe.Pointer) (int32, error)

TryAudioQueueRemovePropertyListener is like AudioQueueRemovePropertyListener but returns an error instead of panicking if AudioQueueRemovePropertyListener is unavailable at run time.

func TryAudioQueueReset

func TryAudioQueueReset(inAQ AudioQueueRef) (int32, error)

TryAudioQueueReset is like AudioQueueReset but returns an error instead of panicking if AudioQueueReset is unavailable at run time.

func TryAudioQueueSetOfflineRenderFormat

func TryAudioQueueSetOfflineRenderFormat(inAQ AudioQueueRef, inFormat *coreaudiotypes.AudioStreamBasicDescription, inLayout *coreaudiotypes.AudioChannelLayout) (int32, error)

TryAudioQueueSetOfflineRenderFormat is like AudioQueueSetOfflineRenderFormat but returns an error instead of panicking if AudioQueueSetOfflineRenderFormat is unavailable at run time.

func TryAudioQueueSetParameter

func TryAudioQueueSetParameter(inAQ AudioQueueRef, inParamID AudioQueueParameterID, inValue AudioQueueParameterValue) (int32, error)

TryAudioQueueSetParameter is like AudioQueueSetParameter but returns an error instead of panicking if AudioQueueSetParameter is unavailable at run time.

func TryAudioQueueSetProperty

func TryAudioQueueSetProperty(inAQ AudioQueueRef, inID AudioQueuePropertyID, inData unsafe.Pointer, inDataSize uint32) (int32, error)

TryAudioQueueSetProperty is like AudioQueueSetProperty but returns an error instead of panicking if AudioQueueSetProperty is unavailable at run time.

func TryAudioQueueStart

func TryAudioQueueStart(inAQ AudioQueueRef, inStartTime *coreaudiotypes.AudioTimeStamp) (int32, error)

TryAudioQueueStart is like AudioQueueStart but returns an error instead of panicking if AudioQueueStart is unavailable at run time.

func TryAudioQueueStop

func TryAudioQueueStop(inAQ AudioQueueRef, inImmediate bool) (int32, error)

TryAudioQueueStop is like AudioQueueStop but returns an error instead of panicking if AudioQueueStop is unavailable at run time.

func TryAudioServicesAddSystemSoundCompletion

func TryAudioServicesAddSystemSoundCompletion(inSystemSoundID SystemSoundID, inRunLoop corefoundation.CFRunLoopRef, inRunLoopMode corefoundation.CFStringRef, inCompletionRoutine AudioServicesSystemSoundCompletionProc, inClientData unsafe.Pointer) (int32, error)

TryAudioServicesAddSystemSoundCompletion is like AudioServicesAddSystemSoundCompletion but returns an error instead of panicking if AudioServicesAddSystemSoundCompletion is unavailable at run time.

func TryAudioServicesCreateSystemSoundID

func TryAudioServicesCreateSystemSoundID(inFileURL corefoundation.CFURLRef, outSystemSoundID *SystemSoundID) (int32, error)

TryAudioServicesCreateSystemSoundID is like AudioServicesCreateSystemSoundID but returns an error instead of panicking if AudioServicesCreateSystemSoundID is unavailable at run time.

func TryAudioServicesDisposeSystemSoundID

func TryAudioServicesDisposeSystemSoundID(inSystemSoundID SystemSoundID) (int32, error)

TryAudioServicesDisposeSystemSoundID is like AudioServicesDisposeSystemSoundID but returns an error instead of panicking if AudioServicesDisposeSystemSoundID is unavailable at run time.

func TryAudioServicesGetProperty

func TryAudioServicesGetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryAudioServicesGetProperty is like AudioServicesGetProperty but returns an error instead of panicking if AudioServicesGetProperty is unavailable at run time.

func TryAudioServicesGetPropertyInfo

func TryAudioServicesGetPropertyInfo(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, outPropertyDataSize *uint32, outWritable *bool) (int32, error)

TryAudioServicesGetPropertyInfo is like AudioServicesGetPropertyInfo but returns an error instead of panicking if AudioServicesGetPropertyInfo is unavailable at run time.

func TryAudioServicesPlayAlertSound

func TryAudioServicesPlayAlertSound(inSystemSoundID SystemSoundID) error

TryAudioServicesPlayAlertSound is like AudioServicesPlayAlertSound but returns an error instead of panicking if AudioServicesPlayAlertSound is unavailable at run time.

func TryAudioServicesPlayAlertSoundWithCompletion

func TryAudioServicesPlayAlertSoundWithCompletion(inSystemSoundID SystemSoundID) error

TryAudioServicesPlayAlertSoundWithCompletion is like AudioServicesPlayAlertSoundWithCompletion but returns an error instead of panicking if AudioServicesPlayAlertSoundWithCompletion is unavailable at run time.

func TryAudioServicesPlaySystemSound

func TryAudioServicesPlaySystemSound(inSystemSoundID SystemSoundID) error

TryAudioServicesPlaySystemSound is like AudioServicesPlaySystemSound but returns an error instead of panicking if AudioServicesPlaySystemSound is unavailable at run time.

func TryAudioServicesPlaySystemSoundWithCompletion

func TryAudioServicesPlaySystemSoundWithCompletion(inSystemSoundID SystemSoundID) error

TryAudioServicesPlaySystemSoundWithCompletion is like AudioServicesPlaySystemSoundWithCompletion but returns an error instead of panicking if AudioServicesPlaySystemSoundWithCompletion is unavailable at run time.

func TryAudioServicesRemoveSystemSoundCompletion

func TryAudioServicesRemoveSystemSoundCompletion(inSystemSoundID SystemSoundID) error

TryAudioServicesRemoveSystemSoundCompletion is like AudioServicesRemoveSystemSoundCompletion but returns an error instead of panicking if AudioServicesRemoveSystemSoundCompletion is unavailable at run time.

func TryAudioServicesSetProperty

func TryAudioServicesSetProperty(inPropertyID AudioServicesPropertyID, inSpecifierSize uint32, inSpecifier unsafe.Pointer, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryAudioServicesSetProperty is like AudioServicesSetProperty but returns an error instead of panicking if AudioServicesSetProperty is unavailable at run time.

func TryAudioUnitAddPropertyListener

func TryAudioUnitAddPropertyListener(inUnit AudioUnit, inID AudioUnitPropertyID, inProc AudioUnitPropertyListenerProc, inProcUserData unsafe.Pointer) (int32, error)

TryAudioUnitAddPropertyListener is like AudioUnitAddPropertyListener but returns an error instead of panicking if AudioUnitAddPropertyListener is unavailable at run time.

func TryAudioUnitAddRenderNotify

func TryAudioUnitAddRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) (int32, error)

TryAudioUnitAddRenderNotify is like AudioUnitAddRenderNotify but returns an error instead of panicking if AudioUnitAddRenderNotify is unavailable at run time.

func TryAudioUnitExtensionCopyComponentList

func TryAudioUnitExtensionCopyComponentList(extensionIdentifier corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)

TryAudioUnitExtensionCopyComponentList is like AudioUnitExtensionCopyComponentList but returns an error instead of panicking if AudioUnitExtensionCopyComponentList is unavailable at run time.

func TryAudioUnitExtensionSetComponentList

func TryAudioUnitExtensionSetComponentList(extensionIdentifier corefoundation.CFStringRef, audioComponentInfo corefoundation.CFArrayRef) (int32, error)

TryAudioUnitExtensionSetComponentList is like AudioUnitExtensionSetComponentList but returns an error instead of panicking if AudioUnitExtensionSetComponentList is unavailable at run time.

func TryAudioUnitGetParameter

func TryAudioUnitGetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, inElement AudioUnitElement, outValue *AudioUnitParameterValue) (int32, error)

TryAudioUnitGetParameter is like AudioUnitGetParameter but returns an error instead of panicking if AudioUnitGetParameter is unavailable at run time.

func TryAudioUnitGetProperty

func TryAudioUnitGetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, outData unsafe.Pointer, ioDataSize *uint32) (int32, error)

TryAudioUnitGetProperty is like AudioUnitGetProperty but returns an error instead of panicking if AudioUnitGetProperty is unavailable at run time.

func TryAudioUnitGetPropertyInfo

func TryAudioUnitGetPropertyInfo(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, outDataSize *uint32, outWritable *bool) (int32, error)

TryAudioUnitGetPropertyInfo is like AudioUnitGetPropertyInfo but returns an error instead of panicking if AudioUnitGetPropertyInfo is unavailable at run time.

func TryAudioUnitInitialize

func TryAudioUnitInitialize(inUnit AudioUnit) (int32, error)

TryAudioUnitInitialize is like AudioUnitInitialize but returns an error instead of panicking if AudioUnitInitialize is unavailable at run time.

func TryAudioUnitProcess

func TryAudioUnitProcess(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryAudioUnitProcess is like AudioUnitProcess but returns an error instead of panicking if AudioUnitProcess is unavailable at run time.

func TryAudioUnitProcessMultiple

func TryAudioUnitProcessMultiple(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inNumberFrames uint32, inNumberInputBufferLists uint32, inInputBufferLists *objc.ID, inNumberOutputBufferLists uint32, ioOutputBufferLists *objc.ID) (int32, error)

TryAudioUnitProcessMultiple is like AudioUnitProcessMultiple but returns an error instead of panicking if AudioUnitProcessMultiple is unavailable at run time.

func TryAudioUnitRemovePropertyListenerWithUserData

func TryAudioUnitRemovePropertyListenerWithUserData(inUnit AudioUnit, inID AudioUnitPropertyID, inProc AudioUnitPropertyListenerProc, inProcUserData unsafe.Pointer) (int32, error)

TryAudioUnitRemovePropertyListenerWithUserData is like AudioUnitRemovePropertyListenerWithUserData but returns an error instead of panicking if AudioUnitRemovePropertyListenerWithUserData is unavailable at run time.

func TryAudioUnitRemoveRenderNotify

func TryAudioUnitRemoveRenderNotify(inUnit AudioUnit, inProc AURenderCallback, inProcUserData unsafe.Pointer) (int32, error)

TryAudioUnitRemoveRenderNotify is like AudioUnitRemoveRenderNotify but returns an error instead of panicking if AudioUnitRemoveRenderNotify is unavailable at run time.

func TryAudioUnitRender

func TryAudioUnitRender(inUnit AudioUnit, ioActionFlags *AudioUnitRenderActionFlags, inTimeStamp *coreaudiotypes.AudioTimeStamp, inOutputBusNumber uint32, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryAudioUnitRender is like AudioUnitRender but returns an error instead of panicking if AudioUnitRender is unavailable at run time.

func TryAudioUnitReset

func TryAudioUnitReset(inUnit AudioUnit, inScope AudioUnitScope, inElement AudioUnitElement) (int32, error)

TryAudioUnitReset is like AudioUnitReset but returns an error instead of panicking if AudioUnitReset is unavailable at run time.

func TryAudioUnitScheduleParameters

func TryAudioUnitScheduleParameters(inUnit AudioUnit, inParameterEvent *AudioUnitParameterEvent, inNumParamEvents uint32) (int32, error)

TryAudioUnitScheduleParameters is like AudioUnitScheduleParameters but returns an error instead of panicking if AudioUnitScheduleParameters is unavailable at run time.

func TryAudioUnitSetParameter

func TryAudioUnitSetParameter(inUnit AudioUnit, inID AudioUnitParameterID, inScope AudioUnitScope, inElement AudioUnitElement, inValue AudioUnitParameterValue, inBufferOffsetInFrames uint32) (int32, error)

TryAudioUnitSetParameter is like AudioUnitSetParameter but returns an error instead of panicking if AudioUnitSetParameter is unavailable at run time.

func TryAudioUnitSetProperty

func TryAudioUnitSetProperty(inUnit AudioUnit, inID AudioUnitPropertyID, inScope AudioUnitScope, inElement AudioUnitElement, inData unsafe.Pointer, inDataSize uint32) (int32, error)

TryAudioUnitSetProperty is like AudioUnitSetProperty but returns an error instead of panicking if AudioUnitSetProperty is unavailable at run time.

func TryAudioUnitUninitialize

func TryAudioUnitUninitialize(inUnit AudioUnit) (int32, error)

TryAudioUnitUninitialize is like AudioUnitUninitialize but returns an error instead of panicking if AudioUnitUninitialize is unavailable at run time.

func TryAudioWorkIntervalCreate

func TryAudioWorkIntervalCreate(name string, clock os.Os_clockid_t, attr os.Os_workgroup_attr_t) (os.Os_workgroup_interval_t, error)

TryAudioWorkIntervalCreate is like AudioWorkIntervalCreate but returns an error instead of panicking if AudioWorkIntervalCreate is unavailable at run time.

func TryCAClockAddListener

func TryCAClockAddListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) (int32, error)

TryCAClockAddListener is like CAClockAddListener but returns an error instead of panicking if CAClockAddListener is unavailable at run time.

func TryCAClockArm

func TryCAClockArm(inCAClock CAClockRef) (int32, error)

TryCAClockArm is like CAClockArm but returns an error instead of panicking if CAClockArm is unavailable at run time.

func TryCAClockBarBeatTimeToBeats

func TryCAClockBarBeatTimeToBeats(inCAClock CAClockRef, inBarBeatTime *CABarBeatTime, outBeats *CAClockBeats) (int32, error)

TryCAClockBarBeatTimeToBeats is like CAClockBarBeatTimeToBeats but returns an error instead of panicking if CAClockBarBeatTimeToBeats is unavailable at run time.

func TryCAClockBeatsToBarBeatTime

func TryCAClockBeatsToBarBeatTime(inCAClock CAClockRef, inBeats CAClockBeats, inSubbeatDivisor uint16, outBarBeatTime *CABarBeatTime) (int32, error)

TryCAClockBeatsToBarBeatTime is like CAClockBeatsToBarBeatTime but returns an error instead of panicking if CAClockBeatsToBarBeatTime is unavailable at run time.

func TryCAClockDisarm

func TryCAClockDisarm(inCAClock CAClockRef) (int32, error)

TryCAClockDisarm is like CAClockDisarm but returns an error instead of panicking if CAClockDisarm is unavailable at run time.

func TryCAClockDispose

func TryCAClockDispose(inCAClock CAClockRef) (int32, error)

TryCAClockDispose is like CAClockDispose but returns an error instead of panicking if CAClockDispose is unavailable at run time.

func TryCAClockGetCurrentTempo

func TryCAClockGetCurrentTempo(inCAClock CAClockRef, outTempo *CAClockTempo, outTimestamp *CAClockTime) (int32, error)

TryCAClockGetCurrentTempo is like CAClockGetCurrentTempo but returns an error instead of panicking if CAClockGetCurrentTempo is unavailable at run time.

func TryCAClockGetCurrentTime

func TryCAClockGetCurrentTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) (int32, error)

TryCAClockGetCurrentTime is like CAClockGetCurrentTime but returns an error instead of panicking if CAClockGetCurrentTime is unavailable at run time.

func TryCAClockGetPlayRate

func TryCAClockGetPlayRate(inCAClock CAClockRef, outPlayRate *float64) (int32, error)

TryCAClockGetPlayRate is like CAClockGetPlayRate but returns an error instead of panicking if CAClockGetPlayRate is unavailable at run time.

func TryCAClockGetProperty

func TryCAClockGetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryCAClockGetProperty is like CAClockGetProperty but returns an error instead of panicking if CAClockGetProperty is unavailable at run time.

func TryCAClockGetPropertyInfo

func TryCAClockGetPropertyInfo(inCAClock CAClockRef, inPropertyID CAClockPropertyID, outSize *uint32, outWritable *bool) (int32, error)

TryCAClockGetPropertyInfo is like CAClockGetPropertyInfo but returns an error instead of panicking if CAClockGetPropertyInfo is unavailable at run time.

func TryCAClockGetStartTime

func TryCAClockGetStartTime(inCAClock CAClockRef, inTimeFormat CAClockTimeFormat, outTime *CAClockTime) (int32, error)

TryCAClockGetStartTime is like CAClockGetStartTime but returns an error instead of panicking if CAClockGetStartTime is unavailable at run time.

func TryCAClockNew

func TryCAClockNew(inReservedFlags uint32, outCAClock *CAClockRef) (int32, error)

TryCAClockNew is like CAClockNew but returns an error instead of panicking if CAClockNew is unavailable at run time.

func TryCAClockParseMIDI

func TryCAClockParseMIDI(inCAClock CAClockRef, inMIDIPacketList *coremidi.MIDIPacketList) (int32, error)

TryCAClockParseMIDI is like CAClockParseMIDI but returns an error instead of panicking if CAClockParseMIDI is unavailable at run time.

func TryCAClockRemoveListener

func TryCAClockRemoveListener(inCAClock CAClockRef, inListenerProc CAClockListenerProc, inUserData unsafe.Pointer) (int32, error)

TryCAClockRemoveListener is like CAClockRemoveListener but returns an error instead of panicking if CAClockRemoveListener is unavailable at run time.

func TryCAClockSMPTETimeToSeconds

func TryCAClockSMPTETimeToSeconds(inCAClock CAClockRef, inSMPTETime *coreaudiotypes.SMPTETime, outSeconds *CAClockSeconds) (int32, error)

TryCAClockSMPTETimeToSeconds is like CAClockSMPTETimeToSeconds but returns an error instead of panicking if CAClockSMPTETimeToSeconds is unavailable at run time.

func TryCAClockSecondsToSMPTETime

func TryCAClockSecondsToSMPTETime(inCAClock CAClockRef, inSeconds CAClockSeconds, inSubframeDivisor uint16, outSMPTETime *coreaudiotypes.SMPTETime) (int32, error)

TryCAClockSecondsToSMPTETime is like CAClockSecondsToSMPTETime but returns an error instead of panicking if CAClockSecondsToSMPTETime is unavailable at run time.

func TryCAClockSetCurrentTempo

func TryCAClockSetCurrentTempo(inCAClock CAClockRef, inTempo CAClockTempo, inTimestamp *CAClockTime) (int32, error)

TryCAClockSetCurrentTempo is like CAClockSetCurrentTempo but returns an error instead of panicking if CAClockSetCurrentTempo is unavailable at run time.

func TryCAClockSetCurrentTime

func TryCAClockSetCurrentTime(inCAClock CAClockRef, inTime *CAClockTime) (int32, error)

TryCAClockSetCurrentTime is like CAClockSetCurrentTime but returns an error instead of panicking if CAClockSetCurrentTime is unavailable at run time.

func TryCAClockSetPlayRate

func TryCAClockSetPlayRate(inCAClock CAClockRef, inPlayRate float64) (int32, error)

TryCAClockSetPlayRate is like CAClockSetPlayRate but returns an error instead of panicking if CAClockSetPlayRate is unavailable at run time.

func TryCAClockSetProperty

func TryCAClockSetProperty(inCAClock CAClockRef, inPropertyID CAClockPropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryCAClockSetProperty is like CAClockSetProperty but returns an error instead of panicking if CAClockSetProperty is unavailable at run time.

func TryCAClockStart

func TryCAClockStart(inCAClock CAClockRef) (int32, error)

TryCAClockStart is like CAClockStart but returns an error instead of panicking if CAClockStart is unavailable at run time.

func TryCAClockStop

func TryCAClockStop(inCAClock CAClockRef) (int32, error)

TryCAClockStop is like CAClockStop but returns an error instead of panicking if CAClockStop is unavailable at run time.

func TryCAClockTranslateTime

func TryCAClockTranslateTime(inCAClock CAClockRef, inTime *CAClockTime, inOutputTimeFormat CAClockTimeFormat, outTime *CAClockTime) (int32, error)

TryCAClockTranslateTime is like CAClockTranslateTime but returns an error instead of panicking if CAClockTranslateTime is unavailable at run time.

func TryCAShow

func TryCAShow(inObject unsafe.Pointer) error

TryCAShow is like CAShow but returns an error instead of panicking if CAShow is unavailable at run time.

func TryCAShowFile

func TryCAShowFile(inObject unsafe.Pointer, inFile unsafe.Pointer) error

TryCAShowFile is like CAShowFile but returns an error instead of panicking if CAShowFile is unavailable at run time.

func TryCopyInstrumentInfoFromSoundBank

func TryCopyInstrumentInfoFromSoundBank(inURL corefoundation.CFURLRef, outInstrumentInfo *corefoundation.CFArrayRef) (int32, error)

TryCopyInstrumentInfoFromSoundBank is like CopyInstrumentInfoFromSoundBank but returns an error instead of panicking if CopyInstrumentInfoFromSoundBank is unavailable at run time.

func TryCopyNameFromSoundBank

func TryCopyNameFromSoundBank(inURL corefoundation.CFURLRef, outName *corefoundation.CFStringRef) (int32, error)

TryCopyNameFromSoundBank is like CopyNameFromSoundBank but returns an error instead of panicking if CopyNameFromSoundBank is unavailable at run time.

func TryDisposeAUGraph

func TryDisposeAUGraph(inGraph AUGraph) (int32, error)

TryDisposeAUGraph is like DisposeAUGraph but returns an error instead of panicking if DisposeAUGraph is unavailable at run time.

func TryDisposeMusicEventIterator

func TryDisposeMusicEventIterator(inIterator MusicEventIterator) (int32, error)

TryDisposeMusicEventIterator is like DisposeMusicEventIterator but returns an error instead of panicking if DisposeMusicEventIterator is unavailable at run time.

func TryDisposeMusicPlayer

func TryDisposeMusicPlayer(inPlayer MusicPlayer) (int32, error)

TryDisposeMusicPlayer is like DisposeMusicPlayer but returns an error instead of panicking if DisposeMusicPlayer is unavailable at run time.

func TryDisposeMusicSequence

func TryDisposeMusicSequence(inSequence MusicSequence) (int32, error)

TryDisposeMusicSequence is like DisposeMusicSequence but returns an error instead of panicking if DisposeMusicSequence is unavailable at run time.

func TryExtAudioFileCreateNew

func TryExtAudioFileCreateNew(inParentDir *coreservices.FSRef, inFileName corefoundation.CFStringRef, inFileType AudioFileTypeID, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, outExtAudioFile *ExtAudioFileRef) (int32, error)

TryExtAudioFileCreateNew is like ExtAudioFileCreateNew but returns an error instead of panicking if ExtAudioFileCreateNew is unavailable at run time.

func TryExtAudioFileCreateWithURL

func TryExtAudioFileCreateWithURL(inURL corefoundation.CFURLRef, inFileType AudioFileTypeID, inStreamDesc *coreaudiotypes.AudioStreamBasicDescription, inChannelLayout *coreaudiotypes.AudioChannelLayout, inFlags uint32, outExtAudioFile *ExtAudioFileRef) (int32, error)

TryExtAudioFileCreateWithURL is like ExtAudioFileCreateWithURL but returns an error instead of panicking if ExtAudioFileCreateWithURL is unavailable at run time.

func TryExtAudioFileDispose

func TryExtAudioFileDispose(inExtAudioFile ExtAudioFileRef) (int32, error)

TryExtAudioFileDispose is like ExtAudioFileDispose but returns an error instead of panicking if ExtAudioFileDispose is unavailable at run time.

func TryExtAudioFileGetProperty

func TryExtAudioFileGetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, ioPropertyDataSize *uint32, outPropertyData unsafe.Pointer) (int32, error)

TryExtAudioFileGetProperty is like ExtAudioFileGetProperty but returns an error instead of panicking if ExtAudioFileGetProperty is unavailable at run time.

func TryExtAudioFileGetPropertyInfo

func TryExtAudioFileGetPropertyInfo(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, outSize *uint32, outWritable *bool) (int32, error)

TryExtAudioFileGetPropertyInfo is like ExtAudioFileGetPropertyInfo but returns an error instead of panicking if ExtAudioFileGetPropertyInfo is unavailable at run time.

func TryExtAudioFileOpen

func TryExtAudioFileOpen(inFSRef *coreservices.FSRef, outExtAudioFile *ExtAudioFileRef) (int32, error)

TryExtAudioFileOpen is like ExtAudioFileOpen but returns an error instead of panicking if ExtAudioFileOpen is unavailable at run time.

func TryExtAudioFileOpenURL

func TryExtAudioFileOpenURL(inURL corefoundation.CFURLRef, outExtAudioFile *ExtAudioFileRef) (int32, error)

TryExtAudioFileOpenURL is like ExtAudioFileOpenURL but returns an error instead of panicking if ExtAudioFileOpenURL is unavailable at run time.

func TryExtAudioFileRead

func TryExtAudioFileRead(inExtAudioFile ExtAudioFileRef, ioNumberFrames *uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryExtAudioFileRead is like ExtAudioFileRead but returns an error instead of panicking if ExtAudioFileRead is unavailable at run time.

func TryExtAudioFileSeek

func TryExtAudioFileSeek(inExtAudioFile ExtAudioFileRef, inFrameOffset int64) (int32, error)

TryExtAudioFileSeek is like ExtAudioFileSeek but returns an error instead of panicking if ExtAudioFileSeek is unavailable at run time.

func TryExtAudioFileSetProperty

func TryExtAudioFileSetProperty(inExtAudioFile ExtAudioFileRef, inPropertyID ExtAudioFilePropertyID, inPropertyDataSize uint32, inPropertyData unsafe.Pointer) (int32, error)

TryExtAudioFileSetProperty is like ExtAudioFileSetProperty but returns an error instead of panicking if ExtAudioFileSetProperty is unavailable at run time.

func TryExtAudioFileTell

func TryExtAudioFileTell(inExtAudioFile ExtAudioFileRef, outFrameOffset *int64) (int32, error)

TryExtAudioFileTell is like ExtAudioFileTell but returns an error instead of panicking if ExtAudioFileTell is unavailable at run time.

func TryExtAudioFileWrapAudioFileID

func TryExtAudioFileWrapAudioFileID(inFileID AudioFileID, inForWriting bool, outExtAudioFile *ExtAudioFileRef) (int32, error)

TryExtAudioFileWrapAudioFileID is like ExtAudioFileWrapAudioFileID but returns an error instead of panicking if ExtAudioFileWrapAudioFileID is unavailable at run time.

func TryExtAudioFileWrite

func TryExtAudioFileWrite(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryExtAudioFileWrite is like ExtAudioFileWrite but returns an error instead of panicking if ExtAudioFileWrite is unavailable at run time.

func TryExtAudioFileWriteAsync

func TryExtAudioFileWriteAsync(inExtAudioFile ExtAudioFileRef, inNumberFrames uint32, ioData *coreaudiotypes.AudioBufferList) (int32, error)

TryExtAudioFileWriteAsync is like ExtAudioFileWriteAsync but returns an error instead of panicking if ExtAudioFileWriteAsync is unavailable at run time.

func TryGetNameFromSoundBank

func TryGetNameFromSoundBank(inSoundBankRef *coreservices.FSRef, outName *corefoundation.CFStringRef) (int32, error)

TryGetNameFromSoundBank is like GetNameFromSoundBank but returns an error instead of panicking if GetNameFromSoundBank is unavailable at run time.

func TryMusicDeviceMIDIEvent

func TryMusicDeviceMIDIEvent(inUnit MusicDeviceComponent, inStatus uint32, inData1 uint32, inData2 uint32, inOffsetSampleFrame uint32) (int32, error)

TryMusicDeviceMIDIEvent is like MusicDeviceMIDIEvent but returns an error instead of panicking if MusicDeviceMIDIEvent is unavailable at run time.

func TryMusicDeviceMIDIEventList

func TryMusicDeviceMIDIEventList(inUnit MusicDeviceComponent, inOffsetSampleFrame uint32, evtList *coremidi.MIDIEventList) (int32, error)

TryMusicDeviceMIDIEventList is like MusicDeviceMIDIEventList but returns an error instead of panicking if MusicDeviceMIDIEventList is unavailable at run time.

func TryMusicDevicePrepareInstrument

func TryMusicDevicePrepareInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) (int32, error)

TryMusicDevicePrepareInstrument is like MusicDevicePrepareInstrument but returns an error instead of panicking if MusicDevicePrepareInstrument is unavailable at run time.

func TryMusicDeviceReleaseInstrument

func TryMusicDeviceReleaseInstrument(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID) (int32, error)

TryMusicDeviceReleaseInstrument is like MusicDeviceReleaseInstrument but returns an error instead of panicking if MusicDeviceReleaseInstrument is unavailable at run time.

func TryMusicDeviceStartNote

func TryMusicDeviceStartNote(inUnit MusicDeviceComponent, inInstrument MusicDeviceInstrumentID, inGroupID MusicDeviceGroupID, outNoteInstanceID *NoteInstanceID, inOffsetSampleFrame uint32, inParams *MusicDeviceNoteParams) (int32, error)

TryMusicDeviceStartNote is like MusicDeviceStartNote but returns an error instead of panicking if MusicDeviceStartNote is unavailable at run time.

func TryMusicDeviceStopNote

func TryMusicDeviceStopNote(inUnit MusicDeviceComponent, inGroupID MusicDeviceGroupID, inNoteInstanceID NoteInstanceID, inOffsetSampleFrame uint32) (int32, error)

TryMusicDeviceStopNote is like MusicDeviceStopNote but returns an error instead of panicking if MusicDeviceStopNote is unavailable at run time.

func TryMusicDeviceSysEx

func TryMusicDeviceSysEx(inUnit MusicDeviceComponent, inData []byte, inLength uint32) (int32, error)

TryMusicDeviceSysEx is like MusicDeviceSysEx but returns an error instead of panicking if MusicDeviceSysEx is unavailable at run time.

func TryMusicEventIteratorDeleteEvent

func TryMusicEventIteratorDeleteEvent(inIterator MusicEventIterator) (int32, error)

TryMusicEventIteratorDeleteEvent is like MusicEventIteratorDeleteEvent but returns an error instead of panicking if MusicEventIteratorDeleteEvent is unavailable at run time.

func TryMusicEventIteratorGetEventInfo

func TryMusicEventIteratorGetEventInfo(inIterator MusicEventIterator, outTimeStamp *MusicTimeStamp, outEventType *MusicEventType, outEventData unsafe.Pointer, outEventDataSize *uint32) (int32, error)

TryMusicEventIteratorGetEventInfo is like MusicEventIteratorGetEventInfo but returns an error instead of panicking if MusicEventIteratorGetEventInfo is unavailable at run time.

func TryMusicEventIteratorHasCurrentEvent

func TryMusicEventIteratorHasCurrentEvent(inIterator MusicEventIterator, outHasCurEvent *bool) (int32, error)

TryMusicEventIteratorHasCurrentEvent is like MusicEventIteratorHasCurrentEvent but returns an error instead of panicking if MusicEventIteratorHasCurrentEvent is unavailable at run time.

func TryMusicEventIteratorHasNextEvent

func TryMusicEventIteratorHasNextEvent(inIterator MusicEventIterator, outHasNextEvent *bool) (int32, error)

TryMusicEventIteratorHasNextEvent is like MusicEventIteratorHasNextEvent but returns an error instead of panicking if MusicEventIteratorHasNextEvent is unavailable at run time.

func TryMusicEventIteratorHasPreviousEvent

func TryMusicEventIteratorHasPreviousEvent(inIterator MusicEventIterator, outHasPrevEvent *bool) (int32, error)

TryMusicEventIteratorHasPreviousEvent is like MusicEventIteratorHasPreviousEvent but returns an error instead of panicking if MusicEventIteratorHasPreviousEvent is unavailable at run time.

func TryMusicEventIteratorNextEvent

func TryMusicEventIteratorNextEvent(inIterator MusicEventIterator) (int32, error)

TryMusicEventIteratorNextEvent is like MusicEventIteratorNextEvent but returns an error instead of panicking if MusicEventIteratorNextEvent is unavailable at run time.

func TryMusicEventIteratorPreviousEvent

func TryMusicEventIteratorPreviousEvent(inIterator MusicEventIterator) (int32, error)

TryMusicEventIteratorPreviousEvent is like MusicEventIteratorPreviousEvent but returns an error instead of panicking if MusicEventIteratorPreviousEvent is unavailable at run time.

func TryMusicEventIteratorSeek

func TryMusicEventIteratorSeek(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) (int32, error)

TryMusicEventIteratorSeek is like MusicEventIteratorSeek but returns an error instead of panicking if MusicEventIteratorSeek is unavailable at run time.

func TryMusicEventIteratorSetEventInfo

func TryMusicEventIteratorSetEventInfo(inIterator MusicEventIterator, inEventType MusicEventType, inEventData unsafe.Pointer) (int32, error)

TryMusicEventIteratorSetEventInfo is like MusicEventIteratorSetEventInfo but returns an error instead of panicking if MusicEventIteratorSetEventInfo is unavailable at run time.

func TryMusicEventIteratorSetEventTime

func TryMusicEventIteratorSetEventTime(inIterator MusicEventIterator, inTimeStamp MusicTimeStamp) (int32, error)

TryMusicEventIteratorSetEventTime is like MusicEventIteratorSetEventTime but returns an error instead of panicking if MusicEventIteratorSetEventTime is unavailable at run time.

func TryMusicPlayerGetBeatsForHostTime

func TryMusicPlayerGetBeatsForHostTime(inPlayer MusicPlayer, inHostTime uint64, outBeats *MusicTimeStamp) (int32, error)

TryMusicPlayerGetBeatsForHostTime is like MusicPlayerGetBeatsForHostTime but returns an error instead of panicking if MusicPlayerGetBeatsForHostTime is unavailable at run time.

func TryMusicPlayerGetHostTimeForBeats

func TryMusicPlayerGetHostTimeForBeats(inPlayer MusicPlayer, inBeats MusicTimeStamp, outHostTime *uint64) (int32, error)

TryMusicPlayerGetHostTimeForBeats is like MusicPlayerGetHostTimeForBeats but returns an error instead of panicking if MusicPlayerGetHostTimeForBeats is unavailable at run time.

func TryMusicPlayerGetPlayRateScalar

func TryMusicPlayerGetPlayRateScalar(inPlayer MusicPlayer, outScaleRate *float64) (int32, error)

TryMusicPlayerGetPlayRateScalar is like MusicPlayerGetPlayRateScalar but returns an error instead of panicking if MusicPlayerGetPlayRateScalar is unavailable at run time.

func TryMusicPlayerGetSequence

func TryMusicPlayerGetSequence(inPlayer MusicPlayer, outSequence *MusicSequence) (int32, error)

TryMusicPlayerGetSequence is like MusicPlayerGetSequence but returns an error instead of panicking if MusicPlayerGetSequence is unavailable at run time.

func TryMusicPlayerGetTime

func TryMusicPlayerGetTime(inPlayer MusicPlayer, outTime *MusicTimeStamp) (int32, error)

TryMusicPlayerGetTime is like MusicPlayerGetTime but returns an error instead of panicking if MusicPlayerGetTime is unavailable at run time.

func TryMusicPlayerIsPlaying

func TryMusicPlayerIsPlaying(inPlayer MusicPlayer, outIsPlaying *bool) (int32, error)

TryMusicPlayerIsPlaying is like MusicPlayerIsPlaying but returns an error instead of panicking if MusicPlayerIsPlaying is unavailable at run time.

func TryMusicPlayerPreroll

func TryMusicPlayerPreroll(inPlayer MusicPlayer) (int32, error)

TryMusicPlayerPreroll is like MusicPlayerPreroll but returns an error instead of panicking if MusicPlayerPreroll is unavailable at run time.

func TryMusicPlayerSetPlayRateScalar

func TryMusicPlayerSetPlayRateScalar(inPlayer MusicPlayer, inScaleRate float64) (int32, error)

TryMusicPlayerSetPlayRateScalar is like MusicPlayerSetPlayRateScalar but returns an error instead of panicking if MusicPlayerSetPlayRateScalar is unavailable at run time.

func TryMusicPlayerSetSequence

func TryMusicPlayerSetSequence(inPlayer MusicPlayer, inSequence MusicSequence) (int32, error)

TryMusicPlayerSetSequence is like MusicPlayerSetSequence but returns an error instead of panicking if MusicPlayerSetSequence is unavailable at run time.

func TryMusicPlayerSetTime

func TryMusicPlayerSetTime(inPlayer MusicPlayer, inTime MusicTimeStamp) (int32, error)

TryMusicPlayerSetTime is like MusicPlayerSetTime but returns an error instead of panicking if MusicPlayerSetTime is unavailable at run time.

func TryMusicPlayerStart

func TryMusicPlayerStart(inPlayer MusicPlayer) (int32, error)

TryMusicPlayerStart is like MusicPlayerStart but returns an error instead of panicking if MusicPlayerStart is unavailable at run time.

func TryMusicPlayerStop

func TryMusicPlayerStop(inPlayer MusicPlayer) (int32, error)

TryMusicPlayerStop is like MusicPlayerStop but returns an error instead of panicking if MusicPlayerStop is unavailable at run time.

func TryMusicSequenceBarBeatTimeToBeats

func TryMusicSequenceBarBeatTimeToBeats(inSequence MusicSequence, inBarBeatTime *CABarBeatTime, outBeats *MusicTimeStamp) (int32, error)

TryMusicSequenceBarBeatTimeToBeats is like MusicSequenceBarBeatTimeToBeats but returns an error instead of panicking if MusicSequenceBarBeatTimeToBeats is unavailable at run time.

func TryMusicSequenceBeatsToBarBeatTime

func TryMusicSequenceBeatsToBarBeatTime(inSequence MusicSequence, inBeats MusicTimeStamp, inSubbeatDivisor uint32, outBarBeatTime *CABarBeatTime) (int32, error)

TryMusicSequenceBeatsToBarBeatTime is like MusicSequenceBeatsToBarBeatTime but returns an error instead of panicking if MusicSequenceBeatsToBarBeatTime is unavailable at run time.

func TryMusicSequenceDisposeTrack

func TryMusicSequenceDisposeTrack(inSequence MusicSequence, inTrack MusicTrack) (int32, error)

TryMusicSequenceDisposeTrack is like MusicSequenceDisposeTrack but returns an error instead of panicking if MusicSequenceDisposeTrack is unavailable at run time.

func TryMusicSequenceFileCreate

func TryMusicSequenceFileCreate(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16) (int32, error)

TryMusicSequenceFileCreate is like MusicSequenceFileCreate but returns an error instead of panicking if MusicSequenceFileCreate is unavailable at run time.

func TryMusicSequenceFileCreateData

func TryMusicSequenceFileCreateData(inSequence MusicSequence, inFileType MusicSequenceFileTypeID, inFlags MusicSequenceFileFlags, inResolution int16, outData *corefoundation.CFDataRef) (int32, error)

TryMusicSequenceFileCreateData is like MusicSequenceFileCreateData but returns an error instead of panicking if MusicSequenceFileCreateData is unavailable at run time.

func TryMusicSequenceFileLoad

func TryMusicSequenceFileLoad(inSequence MusicSequence, inFileRef corefoundation.CFURLRef, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) (int32, error)

TryMusicSequenceFileLoad is like MusicSequenceFileLoad but returns an error instead of panicking if MusicSequenceFileLoad is unavailable at run time.

func TryMusicSequenceFileLoadData

func TryMusicSequenceFileLoadData(inSequence MusicSequence, inData corefoundation.CFDataRef, inFileTypeHint MusicSequenceFileTypeID, inFlags MusicSequenceLoadFlags) (int32, error)

TryMusicSequenceFileLoadData is like MusicSequenceFileLoadData but returns an error instead of panicking if MusicSequenceFileLoadData is unavailable at run time.

func TryMusicSequenceGetAUGraph

func TryMusicSequenceGetAUGraph(inSequence MusicSequence, outGraph *AUGraph) (int32, error)

TryMusicSequenceGetAUGraph is like MusicSequenceGetAUGraph but returns an error instead of panicking if MusicSequenceGetAUGraph is unavailable at run time.

func TryMusicSequenceGetBeatsForSeconds

func TryMusicSequenceGetBeatsForSeconds(inSequence MusicSequence, inSeconds float64, outBeats *MusicTimeStamp) (int32, error)

TryMusicSequenceGetBeatsForSeconds is like MusicSequenceGetBeatsForSeconds but returns an error instead of panicking if MusicSequenceGetBeatsForSeconds is unavailable at run time.

func TryMusicSequenceGetIndTrack

func TryMusicSequenceGetIndTrack(inSequence MusicSequence, inTrackIndex uint32, outTrack *MusicTrack) (int32, error)

TryMusicSequenceGetIndTrack is like MusicSequenceGetIndTrack but returns an error instead of panicking if MusicSequenceGetIndTrack is unavailable at run time.

func TryMusicSequenceGetInfoDictionary

func TryMusicSequenceGetInfoDictionary(inSequence MusicSequence) (corefoundation.CFDictionaryRef, error)

TryMusicSequenceGetInfoDictionary is like MusicSequenceGetInfoDictionary but returns an error instead of panicking if MusicSequenceGetInfoDictionary is unavailable at run time.

func TryMusicSequenceGetSecondsForBeats

func TryMusicSequenceGetSecondsForBeats(inSequence MusicSequence, inBeats MusicTimeStamp, outSeconds *float64) (int32, error)

TryMusicSequenceGetSecondsForBeats is like MusicSequenceGetSecondsForBeats but returns an error instead of panicking if MusicSequenceGetSecondsForBeats is unavailable at run time.

func TryMusicSequenceGetSequenceType

func TryMusicSequenceGetSequenceType(inSequence MusicSequence, outType *MusicSequenceType) (int32, error)

TryMusicSequenceGetSequenceType is like MusicSequenceGetSequenceType but returns an error instead of panicking if MusicSequenceGetSequenceType is unavailable at run time.

func TryMusicSequenceGetTempoTrack

func TryMusicSequenceGetTempoTrack(inSequence MusicSequence, outTrack *MusicTrack) (int32, error)

TryMusicSequenceGetTempoTrack is like MusicSequenceGetTempoTrack but returns an error instead of panicking if MusicSequenceGetTempoTrack is unavailable at run time.

func TryMusicSequenceGetTrackCount

func TryMusicSequenceGetTrackCount(inSequence MusicSequence, outNumberOfTracks *uint32) (int32, error)

TryMusicSequenceGetTrackCount is like MusicSequenceGetTrackCount but returns an error instead of panicking if MusicSequenceGetTrackCount is unavailable at run time.

func TryMusicSequenceGetTrackIndex

func TryMusicSequenceGetTrackIndex(inSequence MusicSequence, inTrack MusicTrack, outTrackIndex *uint32) (int32, error)

TryMusicSequenceGetTrackIndex is like MusicSequenceGetTrackIndex but returns an error instead of panicking if MusicSequenceGetTrackIndex is unavailable at run time.

func TryMusicSequenceLoadSMFDataWithFlags

func TryMusicSequenceLoadSMFDataWithFlags(inSequence MusicSequence, inData corefoundation.CFDataRef, inFlags MusicSequenceLoadFlags) (int32, error)

TryMusicSequenceLoadSMFDataWithFlags is like MusicSequenceLoadSMFDataWithFlags but returns an error instead of panicking if MusicSequenceLoadSMFDataWithFlags is unavailable at run time.

func TryMusicSequenceLoadSMFWithFlags

func TryMusicSequenceLoadSMFWithFlags(inSequence MusicSequence, inFileRef *coreservices.FSRef, inFlags MusicSequenceLoadFlags) (int32, error)

TryMusicSequenceLoadSMFWithFlags is like MusicSequenceLoadSMFWithFlags but returns an error instead of panicking if MusicSequenceLoadSMFWithFlags is unavailable at run time.

func TryMusicSequenceNewTrack

func TryMusicSequenceNewTrack(inSequence MusicSequence, outTrack *MusicTrack) (int32, error)

TryMusicSequenceNewTrack is like MusicSequenceNewTrack but returns an error instead of panicking if MusicSequenceNewTrack is unavailable at run time.

func TryMusicSequenceReverse

func TryMusicSequenceReverse(inSequence MusicSequence) (int32, error)

TryMusicSequenceReverse is like MusicSequenceReverse but returns an error instead of panicking if MusicSequenceReverse is unavailable at run time.

func TryMusicSequenceSaveMIDIFile

func TryMusicSequenceSaveMIDIFile(inSequence MusicSequence, inParentDirectory *coreservices.FSRef, inFileName corefoundation.CFStringRef, inResolution uint16, inFlags uint32) (int32, error)

TryMusicSequenceSaveMIDIFile is like MusicSequenceSaveMIDIFile but returns an error instead of panicking if MusicSequenceSaveMIDIFile is unavailable at run time.

func TryMusicSequenceSaveSMFData

func TryMusicSequenceSaveSMFData(inSequence MusicSequence, outData *corefoundation.CFDataRef, inResolution uint16) (int32, error)

TryMusicSequenceSaveSMFData is like MusicSequenceSaveSMFData but returns an error instead of panicking if MusicSequenceSaveSMFData is unavailable at run time.

func TryMusicSequenceSetAUGraph

func TryMusicSequenceSetAUGraph(inSequence MusicSequence, inGraph AUGraph) (int32, error)

TryMusicSequenceSetAUGraph is like MusicSequenceSetAUGraph but returns an error instead of panicking if MusicSequenceSetAUGraph is unavailable at run time.

func TryMusicSequenceSetMIDIEndpoint

func TryMusicSequenceSetMIDIEndpoint(inSequence MusicSequence, inEndpoint uint32) (int32, error)

TryMusicSequenceSetMIDIEndpoint is like MusicSequenceSetMIDIEndpoint but returns an error instead of panicking if MusicSequenceSetMIDIEndpoint is unavailable at run time.

func TryMusicSequenceSetSequenceType

func TryMusicSequenceSetSequenceType(inSequence MusicSequence, inType MusicSequenceType) (int32, error)

TryMusicSequenceSetSequenceType is like MusicSequenceSetSequenceType but returns an error instead of panicking if MusicSequenceSetSequenceType is unavailable at run time.

func TryMusicSequenceSetUserCallback

func TryMusicSequenceSetUserCallback(inSequence MusicSequence, inCallback MusicSequenceUserCallback, inClientData unsafe.Pointer) (int32, error)

TryMusicSequenceSetUserCallback is like MusicSequenceSetUserCallback but returns an error instead of panicking if MusicSequenceSetUserCallback is unavailable at run time.

func TryMusicTrackClear

func TryMusicTrackClear(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) (int32, error)

TryMusicTrackClear is like MusicTrackClear but returns an error instead of panicking if MusicTrackClear is unavailable at run time.

func TryMusicTrackCopyInsert

func TryMusicTrackCopyInsert(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, inDestTrack MusicTrack, inDestInsertTime MusicTimeStamp) (int32, error)

TryMusicTrackCopyInsert is like MusicTrackCopyInsert but returns an error instead of panicking if MusicTrackCopyInsert is unavailable at run time.

func TryMusicTrackCut

func TryMusicTrackCut(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp) (int32, error)

TryMusicTrackCut is like MusicTrackCut but returns an error instead of panicking if MusicTrackCut is unavailable at run time.

func TryMusicTrackGetDestMIDIEndpoint

func TryMusicTrackGetDestMIDIEndpoint(inTrack MusicTrack, outEndpoint *coremidi.MIDIEndpointRef) (int32, error)

TryMusicTrackGetDestMIDIEndpoint is like MusicTrackGetDestMIDIEndpoint but returns an error instead of panicking if MusicTrackGetDestMIDIEndpoint is unavailable at run time.

func TryMusicTrackGetDestNode

func TryMusicTrackGetDestNode(inTrack MusicTrack, outNode *AUNode) (int32, error)

TryMusicTrackGetDestNode is like MusicTrackGetDestNode but returns an error instead of panicking if MusicTrackGetDestNode is unavailable at run time.

func TryMusicTrackGetProperty

func TryMusicTrackGetProperty(inTrack MusicTrack, inPropertyID uint32, outData unsafe.Pointer, ioLength *uint32) (int32, error)

TryMusicTrackGetProperty is like MusicTrackGetProperty but returns an error instead of panicking if MusicTrackGetProperty is unavailable at run time.

func TryMusicTrackGetSequence

func TryMusicTrackGetSequence(inTrack MusicTrack, outSequence *MusicSequence) (int32, error)

TryMusicTrackGetSequence is like MusicTrackGetSequence but returns an error instead of panicking if MusicTrackGetSequence is unavailable at run time.

func TryMusicTrackMerge

func TryMusicTrackMerge(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, inDestTrack MusicTrack, inDestInsertTime MusicTimeStamp) (int32, error)

TryMusicTrackMerge is like MusicTrackMerge but returns an error instead of panicking if MusicTrackMerge is unavailable at run time.

func TryMusicTrackMoveEvents

func TryMusicTrackMoveEvents(inTrack MusicTrack, inStartTime MusicTimeStamp, inEndTime MusicTimeStamp, inMoveTime MusicTimeStamp) (int32, error)

TryMusicTrackMoveEvents is like MusicTrackMoveEvents but returns an error instead of panicking if MusicTrackMoveEvents is unavailable at run time.

func TryMusicTrackNewAUPresetEvent

func TryMusicTrackNewAUPresetEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inPresetEvent *AUPresetEvent) (int32, error)

TryMusicTrackNewAUPresetEvent is like MusicTrackNewAUPresetEvent but returns an error instead of panicking if MusicTrackNewAUPresetEvent is unavailable at run time.

func TryMusicTrackNewExtendedControlEvent

func TryMusicTrackNewExtendedControlEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedControlEvent) (int32, error)

TryMusicTrackNewExtendedControlEvent is like MusicTrackNewExtendedControlEvent but returns an error instead of panicking if MusicTrackNewExtendedControlEvent is unavailable at run time.

func TryMusicTrackNewExtendedNoteEvent

func TryMusicTrackNewExtendedNoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ExtendedNoteOnEvent) (int32, error)

TryMusicTrackNewExtendedNoteEvent is like MusicTrackNewExtendedNoteEvent but returns an error instead of panicking if MusicTrackNewExtendedNoteEvent is unavailable at run time.

func TryMusicTrackNewExtendedTempoEvent

func TryMusicTrackNewExtendedTempoEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inBPM float64) (int32, error)

TryMusicTrackNewExtendedTempoEvent is like MusicTrackNewExtendedTempoEvent but returns an error instead of panicking if MusicTrackNewExtendedTempoEvent is unavailable at run time.

func TryMusicTrackNewMIDIChannelEvent

func TryMusicTrackNewMIDIChannelEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDIChannelMessage) (int32, error)

TryMusicTrackNewMIDIChannelEvent is like MusicTrackNewMIDIChannelEvent but returns an error instead of panicking if MusicTrackNewMIDIChannelEvent is unavailable at run time.

func TryMusicTrackNewMIDINoteEvent

func TryMusicTrackNewMIDINoteEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMessage *MIDINoteMessage) (int32, error)

TryMusicTrackNewMIDINoteEvent is like MusicTrackNewMIDINoteEvent but returns an error instead of panicking if MusicTrackNewMIDINoteEvent is unavailable at run time.

func TryMusicTrackNewMIDIRawDataEvent

func TryMusicTrackNewMIDIRawDataEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inRawData *MIDIRawData) (int32, error)

TryMusicTrackNewMIDIRawDataEvent is like MusicTrackNewMIDIRawDataEvent but returns an error instead of panicking if MusicTrackNewMIDIRawDataEvent is unavailable at run time.

func TryMusicTrackNewMetaEvent

func TryMusicTrackNewMetaEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inMetaEvent *MIDIMetaEvent) (int32, error)

TryMusicTrackNewMetaEvent is like MusicTrackNewMetaEvent but returns an error instead of panicking if MusicTrackNewMetaEvent is unavailable at run time.

func TryMusicTrackNewParameterEvent

func TryMusicTrackNewParameterEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inInfo *ParameterEvent) (int32, error)

TryMusicTrackNewParameterEvent is like MusicTrackNewParameterEvent but returns an error instead of panicking if MusicTrackNewParameterEvent is unavailable at run time.

func TryMusicTrackNewUserEvent

func TryMusicTrackNewUserEvent(inTrack MusicTrack, inTimeStamp MusicTimeStamp, inUserData *MusicEventUserData) (int32, error)

TryMusicTrackNewUserEvent is like MusicTrackNewUserEvent but returns an error instead of panicking if MusicTrackNewUserEvent is unavailable at run time.

func TryMusicTrackSetDestMIDIEndpoint

func TryMusicTrackSetDestMIDIEndpoint(inTrack MusicTrack, inEndpoint uint32) (int32, error)

TryMusicTrackSetDestMIDIEndpoint is like MusicTrackSetDestMIDIEndpoint but returns an error instead of panicking if MusicTrackSetDestMIDIEndpoint is unavailable at run time.

func TryMusicTrackSetDestNode

func TryMusicTrackSetDestNode(inTrack MusicTrack, inNode AUNode) (int32, error)

TryMusicTrackSetDestNode is like MusicTrackSetDestNode but returns an error instead of panicking if MusicTrackSetDestNode is unavailable at run time.

func TryMusicTrackSetProperty

func TryMusicTrackSetProperty(inTrack MusicTrack, inPropertyID uint32, inData unsafe.Pointer, inLength uint32) (int32, error)

TryMusicTrackSetProperty is like MusicTrackSetProperty but returns an error instead of panicking if MusicTrackSetProperty is unavailable at run time.

func TryNewAUGraph

func TryNewAUGraph(outGraph *AUGraph) (int32, error)

TryNewAUGraph is like NewAUGraph but returns an error instead of panicking if NewAUGraph is unavailable at run time.

func TryNewMusicEventIterator

func TryNewMusicEventIterator(inTrack MusicTrack, outIterator *MusicEventIterator) (int32, error)

TryNewMusicEventIterator is like NewMusicEventIterator but returns an error instead of panicking if NewMusicEventIterator is unavailable at run time.

func TryNewMusicPlayer

func TryNewMusicPlayer(outPlayer *MusicPlayer) (int32, error)

TryNewMusicPlayer is like NewMusicPlayer but returns an error instead of panicking if NewMusicPlayer is unavailable at run time.

func TryNewMusicSequence

func TryNewMusicSequence(outSequence *MusicSequence) (int32, error)

TryNewMusicSequence is like NewMusicSequence but returns an error instead of panicking if NewMusicSequence is unavailable at run time.

func TryNewMusicTrackFrom

func TryNewMusicTrackFrom(inSourceTrack MusicTrack, inSourceStartTime MusicTimeStamp, inSourceEndTime MusicTimeStamp, outNewTrack *MusicTrack) (int32, error)

TryNewMusicTrackFrom is like NewMusicTrackFrom but returns an error instead of panicking if NewMusicTrackFrom is unavailable at run time.

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 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

Returning the Audio Busses

Customizing the Audio Unit Behavior

Querying Parameters

Providing Data to the Host

Managing MIDI Events

Managing Presets

Managing the Render Cycle

Messaging Channels

Optimizing Performance

Describing the Audio Unit

Configuring the Channel Capabilities

Configuring the Device

Configuring the User Interface

Getting the Runtime Behavior

Instance properties

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 NewAUAudioUnitWithComponentDescriptionError

func NewAUAudioUnitWithComponentDescriptionError(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 NewAUAudioUnitWithComponentDescriptionOptionsError

func NewAUAudioUnitWithComponentDescriptionOptionsError(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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:options:)

func NewAudioUnit deprecated

func NewAudioUnit() AUAudioUnit

Deprecated: Use NewAUAudioUnit instead.

func NewAudioUnitWithComponentDescriptionError deprecated

func NewAudioUnitWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnit, error)

Deprecated: Use NewAUAudioUnitWithComponentDescriptionError instead.

func NewAudioUnitWithComponentDescriptionOptionsError deprecated

func NewAudioUnitWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnit, error)

Deprecated: Use NewAUAudioUnitWithComponentDescriptionOptionsError instead.

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) 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) 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) 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) 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.TimeInterval

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.TimeInterval

The audio devic’s output latency, in seconds.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/deviceOutputLatency

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) Init

func (a AUAudioUnit) Init() AUAudioUnit

Init initializes the instance.

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:options:)

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

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) 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) Latency

func (a AUAudioUnit) Latency() foundation.TimeInterval

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) 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) 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

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) 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

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) 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) 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) 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 Uint8Uint8MIDICIProfileBoolHandler)

func (AUAudioUnit) SetRenderQuality

func (a AUAudioUnit) SetRenderQuality(value int)

func (AUAudioUnit) SetRenderResourcesAllocated

func (a AUAudioUnit) SetRenderResourcesAllocated(flag bool)

Sets the Boolean value of the AUAudioUnit.RenderResourcesAllocated property.

flag: A Boolean value that determines whether the audio unit has allocated its required rendering resources..

Discussion

In the base class implementation of the AUAudioUnit.AllocateRenderResourcesAndReturnError method, the value of the AUAudioUnit.RenderResourcesAllocated property is set to true. If the AUAudioUnit.AllocateRenderResourcesAndReturnError method fails in a subclass, you must use this method to set the value of the AUAudioUnit.RenderResourcesAllocated property to false.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/setRenderResourcesAllocated(_:)

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) 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) TailTime

func (a AUAudioUnit) TailTime() foundation.TimeInterval

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) 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

Audio Unit Implementations

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 NewAUAudioUnitBusWithFormatError

func NewAUAudioUnitBusWithFormatError(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 NewAudioUnitBus deprecated

func NewAudioUnitBus() AUAudioUnitBus

Deprecated: Use NewAUAudioUnitBus instead.

func NewAudioUnitBusWithFormatError deprecated

func NewAudioUnitBusWithFormatError(format objectivec.IObject) (AUAudioUnitBus, error)

Deprecated: Use NewAUAudioUnitBusWithFormatError instead.

func (AUAudioUnitBus) Autorelease

func (a AUAudioUnitBus) Autorelease() AUAudioUnitBus

Autorelease adds the receiver to the current autorelease pool.

func (AUAudioUnitBus) ContextPresentationLatency

func (a AUAudioUnitBus) ContextPresentationLatency() foundation.TimeInterval

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.TimeInterval)

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) 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

Bus Array Methods and Properties

Audio Unit Implementations

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 NewAUAudioUnitBusArrayWithAudioUnitBusType

func NewAUAudioUnitBusArrayWithAudioUnitBusType(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 NewAUAudioUnitBusArrayWithAudioUnitBusTypeBusses

func NewAUAudioUnitBusArrayWithAudioUnitBusTypeBusses(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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/init(audioUnit:busType:busses:)

func NewAudioUnitBusArray deprecated

func NewAudioUnitBusArray() AUAudioUnitBusArray

Deprecated: Use NewAUAudioUnitBusArray instead.

func NewAudioUnitBusArrayWithAudioUnitBusType deprecated

func NewAudioUnitBusArrayWithAudioUnitBusType(owner IAUAudioUnit, busType AUAudioUnitBusType) AUAudioUnitBusArray

Deprecated: Use NewAUAudioUnitBusArrayWithAudioUnitBusType instead.

func NewAudioUnitBusArrayWithAudioUnitBusTypeBusses deprecated

func NewAudioUnitBusArrayWithAudioUnitBusTypeBusses(owner IAUAudioUnit, busType AUAudioUnitBusType, busArray []AUAudioUnitBus) AUAudioUnitBusArray

Deprecated: Use NewAUAudioUnitBusArrayWithAudioUnitBusTypeBusses instead.

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/addObserver(toAllBusses:forKeyPath:options:context:)

func (AUAudioUnitBusArray) Autorelease

func (a AUAudioUnitBusArray) Autorelease() AUAudioUnitBusArray

Autorelease adds the receiver to the current autorelease pool.

func (AUAudioUnitBusArray) BusType

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

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/init(audioUnit:busType:busses:)

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnitBusArray/removeObserver(fromAllBusses:forKeyPath: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

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

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) (*AUAudioUnit, 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 AUAudioUnitErrorHandler)

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/instantiate(with:options:completionHandler:)

func (AUAudioUnitClass) RegisterSubclassAsComponentDescriptionNameVersion

func (_AUAudioUnitClass AUAudioUnitClass) RegisterSubclassAsComponentDescriptionNameVersion(cls objc.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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/registerSubclass(_:as:name:version:)

type AUAudioUnitErrorHandler

type AUAudioUnitErrorHandler = func(*AUAudioUnit, error)

AUAudioUnitErrorHandler 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 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 (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

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 NewAudioUnitPreset deprecated

func NewAudioUnitPreset() AUAudioUnitPreset

Deprecated: Use NewAUAudioUnitPreset instead.

func NewAudioUnitPresetWithCoder deprecated

func NewAudioUnitPresetWithCoder(coder foundation.INSCoder) AUAudioUnitPreset

Deprecated: Use NewAUAudioUnitPresetWithCoder instead.

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

Init initializes the instance.

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

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 NewAUAudioUnitV2BridgeWithComponentDescriptionError

func NewAUAudioUnitV2BridgeWithComponentDescriptionError(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 NewAUAudioUnitV2BridgeWithComponentDescriptionOptionsError

func NewAUAudioUnitV2BridgeWithComponentDescriptionOptionsError(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.

See: https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/init(componentDescription:options:)

func NewAudioUnitV2Bridge deprecated

func NewAudioUnitV2Bridge() AUAudioUnitV2Bridge

Deprecated: Use NewAUAudioUnitV2Bridge instead.

func NewAudioUnitV2BridgeWithComponentDescriptionError deprecated

func NewAudioUnitV2BridgeWithComponentDescriptionError(componentDescription AudioComponentDescription) (AUAudioUnitV2Bridge, error)

Deprecated: Use NewAUAudioUnitV2BridgeWithComponentDescriptionError instead.

func NewAudioUnitV2BridgeWithComponentDescriptionOptionsError deprecated

func NewAudioUnitV2BridgeWithComponentDescriptionOptionsError(componentDescription AudioComponentDescription, options AudioComponentInstantiationOptions) (AUAudioUnitV2Bridge, error)

Deprecated: Use NewAUAudioUnitV2BridgeWithComponentDescriptionOptionsError instead.

func (AUAudioUnitV2Bridge) Autorelease

func (a AUAudioUnitV2Bridge) Autorelease() AUAudioUnitV2Bridge

Autorelease adds the receiver to the current autorelease pool.

func (AUAudioUnitV2Bridge) Init

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

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

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 AUEventSampleTime

type AUEventSampleTime = int64

AUEventSampleTime is expresses time as a sample count.

See: https://developer.apple.com/documentation/AudioToolbox/AUEventSampleTime

const (
	AUEventSampleTimeImmediate AUEventSampleTime = -4294967296
)

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

type AUHostMusicalContextBlock = func([]float64, []float64, *int, []float64, *int, []float64) bool

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

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 {
	// C: AUInputSamplesInOutputCallback (void (*)(void *, const struct AudioTimeStamp *, double, double))
	InputToOutputCallback uintptr        // 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 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 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 {
	// C: AUMIDIOutputCallback (int (*)(void *, const struct AudioTimeStamp *, unsigned int, const struct MIDIPacketList *))
	MidiOutputCallback uintptr        // 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 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

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 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

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

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

Managing Parameter Values

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 NewParameter deprecated

func NewParameter() AUParameter

Deprecated: Use NewAUParameter instead.

func NewParameterWithCoder deprecated

func NewParameterWithCoder(coder foundation.INSCoder) AUParameter

Deprecated: Use NewAUParameterWithCoder instead.

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

The parameter’s characteristic details.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/flags

func (AUParameter) Init

func (p AUParameter) Init() AUParameter

Init initializes the instance.

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameter/setValue(_:originator:atHostTime:)

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

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

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

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 NewParameterGroup deprecated

func NewParameterGroup() AUParameterGroup

Deprecated: Use NewAUParameterGroup instead.

func NewParameterGroupWithCoder deprecated

func NewParameterGroupWithCoder(coder foundation.INSCoder) AUParameterGroup

Deprecated: Use NewAUParameterGroupWithCoder instead.

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

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

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 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

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

Observers

Audio Unit Implementations

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 NewParameterNode deprecated

func NewParameterNode() AUParameterNode

Deprecated: Use NewAUParameterNode instead.

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/implementorDisplayNameWithLengthCallback

func (AUParameterNode) ImplementorStringFromValueCallback

func (p AUParameterNode) ImplementorStringFromValueCallback() StringVoidHandler

The callback for providing a string representation of a parameter value.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/implementorStringFromValueCallback

func (AUParameterNode) ImplementorValueFromStringCallback

func (p AUParameterNode) ImplementorValueFromStringCallback() Float32AUParameterStringHandler

The callback for converting a string to a parameter value.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/implementorValueFromStringCallback

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

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) 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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/token(byAddingParameterObserver:)

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterNode/token(byAddingParameterRecordingObserver:)

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

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

type AUParameterObserver = func(uint64, float32)

AUParameterObserver is a block called after the value of a parameter changes.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterObserver

type AUParameterObserverToken

type AUParameterObserverToken = unsafe.Pointer

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

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 NewParameterTree deprecated

func NewParameterTree() AUParameterTree

Deprecated: Use NewAUParameterTree instead.

func NewParameterTreeWithCoder deprecated

func NewParameterTreeWithCoder(coder foundation.INSCoder) AUParameterTree

Deprecated: Use NewAUParameterTreeWithCoder instead.

func (AUParameterTree) Autorelease

func (p AUParameterTree) Autorelease() AUParameterTree

Autorelease adds the receiver to the current autorelease pool.

func (AUParameterTree) Init

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/parameter(withID:scope:element:)

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

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/createGroup(fromTemplate:identifier:name:addressOffset:)

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/createGroup(withIdentifier:name:children:)

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.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterTree/createParameter(withIdentifier:name:address:min:max:unit:unitName:flags:valueStrings:dependentParameters:)

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 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 {
	// C: AURenderCallback (int (*)(void *, enum AudioUnitRenderActionFlags *, const struct AudioTimeStamp *, unsigned int, unsigned int, struct AudioBufferList *))
	InputProc       uintptr
	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 [74]uint32

AURenderEvent is a C union type.

func (*AURenderEvent) Head

Head returns the union interpreted as *AURenderEventHeader. The returned pointer aliases the receiver's memory.

func (*AURenderEvent) MIDI

func (u *AURenderEvent) MIDI() *AUMIDIEvent

MIDI returns the union interpreted as *AUMIDIEvent. The returned pointer aliases the receiver's memory.

func (*AURenderEvent) MIDIEventsList

func (u *AURenderEvent) MIDIEventsList() *AUMIDIEventList

MIDIEventsList returns the union interpreted as *AUMIDIEventList. The returned pointer aliases the receiver's memory.

func (*AURenderEvent) Parameter

func (u *AURenderEvent) Parameter() *AUParameterEvent

Parameter returns the union interpreted as *AUParameterEvent. The returned pointer aliases the receiver's memory.

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

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

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

type AUScheduleMIDIEventBlock = func(int64, byte, int, *uint8)

AUScheduleMIDIEventBlock is a block to schedule MIDI events.

See: https://developer.apple.com/documentation/AudioToolbox/AUScheduleMIDIEventBlock

type AUScheduleParameterBlock

type AUScheduleParameterBlock = func(int64, uint32, uint64, float32)

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

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

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

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

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

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

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

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

type AudioCodec

type AudioCodec = unsafe.Pointer

AudioCodec is an instance of a Component Manager component.

See: https://developer.apple.com/documentation/AudioToolbox/AudioCodec

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 AudioCodecPropertyID

type AudioCodecPropertyID = uint32

AudioCodecPropertyID is an integer identifying an audio codec property.

See: https://developer.apple.com/documentation/AudioToolbox/AudioCodecPropertyID

const (
	KAudioCodecBitRateFormatValue                       AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 'b'<<8 | 'f' // 'acbf'
	KAudioCodecDoesSampleRateConversion                 AudioCodecPropertyID = 'l'<<24 | 'm'<<16 | 'r'<<8 | 'c' // 'lmrc'
	KAudioCodecExtendFrequencies                        AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 'e'<<8 | 'f' // 'acef'
	KAudioCodecInputFormatsForOutputFormat              AudioCodecPropertyID = 'i'<<24 | 'f'<<16 | '4'<<8 | 'o' // 'if4o'
	KAudioCodecOutputFormatsForInputFormat              AudioCodecPropertyID = 'o'<<24 | 'f'<<16 | '4'<<8 | 'i' // 'of4i'
	KAudioCodecOutputPrecedenceValue                    AudioCodecPropertyID = 'o'<<24 | 'p'<<16 | 'p'<<8 | 'r' // 'oppr'
	KAudioCodecPropertyASPFrequency                     AudioCodecPropertyID = 'a'<<24 | 's'<<16 | 'p'<<8 | 'f' // 'aspf'
	KAudioCodecPropertyAdjustCompressionProfile         AudioCodecPropertyID = '^'<<24 | 'p'<<16 | 'r'<<8 | 'o' // '^pro'
	KAudioCodecPropertyAdjustLocalQuality               AudioCodecPropertyID = '^'<<24 | 'q'<<16 | 'a'<<8 | 'l' // '^qal'
	KAudioCodecPropertyAdjustTargetLevel                AudioCodecPropertyID = '^'<<24 | 'p'<<16 | 't'<<8 | 'l' // '^ptl'
	KAudioCodecPropertyAdjustTargetLevelConstant        AudioCodecPropertyID = '^'<<24 | 't'<<16 | 'l'<<8 | 'c' // '^tlc'
	KAudioCodecPropertyApplicableBitRateRange           AudioCodecPropertyID = 'b'<<24 | 'r'<<16 | 't'<<8 | 'a' // 'brta'
	KAudioCodecPropertyApplicableInputSampleRates       AudioCodecPropertyID = 'i'<<24 | 's'<<16 | 'r'<<8 | 'a' // 'isra'
	KAudioCodecPropertyApplicableOutputSampleRates      AudioCodecPropertyID = 'o'<<24 | 's'<<16 | 'r'<<8 | 'a' // 'osra'
	KAudioCodecPropertyAvailableBitRateRange            AudioCodecPropertyID = 'a'<<24 | 'b'<<16 | 'r'<<8 | 't' // 'abrt'
	KAudioCodecPropertyAvailableBitRates                AudioCodecPropertyID = 'b'<<24 | 'r'<<16 | 't'<<8 | '#' // 'brt#'
	KAudioCodecPropertyAvailableInputChannelLayoutTags  AudioCodecPropertyID = 'a'<<24 | 'i'<<16 | 'c'<<8 | 'l' // 'aicl'
	KAudioCodecPropertyAvailableInputChannelLayouts     AudioCodecPropertyID = 'a'<<24 | 'i'<<16 | 'c'<<8 | 'l' // 'aicl'
	KAudioCodecPropertyAvailableInputSampleRates        AudioCodecPropertyID = 'a'<<24 | 'i'<<16 | 's'<<8 | 'r' // 'aisr'
	KAudioCodecPropertyAvailableNumberChannels          AudioCodecPropertyID = 'c'<<24 | 'm'<<16 | 'n'<<8 | 'c' // 'cmnc'
	KAudioCodecPropertyAvailableOutputChannelLayoutTags AudioCodecPropertyID = 'a'<<24 | 'o'<<16 | 'c'<<8 | 'l' // 'aocl'
	KAudioCodecPropertyAvailableOutputChannelLayouts    AudioCodecPropertyID = 'a'<<24 | 'o'<<16 | 'c'<<8 | 'l' // 'aocl'
	KAudioCodecPropertyAvailableOutputSampleRates       AudioCodecPropertyID = 'a'<<24 | 'o'<<16 | 's'<<8 | 'r' // 'aosr'
	KAudioCodecPropertyBitRateControlMode               AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 'b'<<8 | 'f' // 'acbf'
	KAudioCodecPropertyBitRateForVBR                    AudioCodecPropertyID = 'v'<<24 | 'b'<<16 | 'r'<<8 | 'b' // 'vbrb'
	KAudioCodecPropertyContentSource                    AudioCodecPropertyID = 'c'<<24 | 's'<<16 | 'r'<<8 | 'c' // 'csrc'
	KAudioCodecPropertyCurrentInputChannelLayout        AudioCodecPropertyID = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl '
	KAudioCodecPropertyCurrentInputFormat               AudioCodecPropertyID = 'i'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ifmt'
	KAudioCodecPropertyCurrentInputSampleRate           AudioCodecPropertyID = 'c'<<24 | 'i'<<16 | 's'<<8 | 'r' // 'cisr'
	KAudioCodecPropertyCurrentOutputChannelLayout       AudioCodecPropertyID = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl '
	KAudioCodecPropertyCurrentOutputFormat              AudioCodecPropertyID = 'o'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ofmt'
	KAudioCodecPropertyCurrentOutputSampleRate          AudioCodecPropertyID = 'c'<<24 | 'o'<<16 | 's'<<8 | 'r' // 'cosr'
	KAudioCodecPropertyCurrentTargetBitRate             AudioCodecPropertyID = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat'
	KAudioCodecPropertyDelayMode                        AudioCodecPropertyID = 'd'<<24 | 'm'<<16 | 'o'<<8 | 'd' // 'dmod'
	KAudioCodecPropertyDoesSampleRateConversion         AudioCodecPropertyID = 'l'<<24 | 'm'<<16 | 'r'<<8 | 'c' // 'lmrc'
	KAudioCodecPropertyDynamicRangeControlConfiguration AudioCodecPropertyID = 'c'<<24 | 'd'<<16 | 'r'<<8 | 'c' // 'cdrc'
	KAudioCodecPropertyDynamicRangeControlMode          AudioCodecPropertyID = 'm'<<24 | 'd'<<16 | 'r'<<8 | 'c' // 'mdrc'
	KAudioCodecPropertyEmploysDependentPackets          AudioCodecPropertyID = 'd'<<24 | 'p'<<16 | 'k'<<8 | '?' // 'dpk?'
	KAudioCodecPropertyFormatCFString                   AudioCodecPropertyID = 'l'<<24 | 'f'<<16 | 'o'<<8 | 'r' // 'lfor'
	KAudioCodecPropertyFormatInfo                       AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 'f'<<8 | 'i' // 'acfi'
	KAudioCodecPropertyFormatList                       AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 'f'<<8 | 'l' // 'acfl'
	KAudioCodecPropertyHasVariablePacketByteSizes       AudioCodecPropertyID = 'v'<<24 | 'p'<<16 | 'k'<<8 | '?' // 'vpk?'
	KAudioCodecPropertyInputBufferSize                  AudioCodecPropertyID = 't'<<24 | 'b'<<16 | 'u'<<8 | 'f' // 'tbuf'
	KAudioCodecPropertyInputChannelLayout               AudioCodecPropertyID = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl '
	KAudioCodecPropertyInputFormatsForOutputFormat      AudioCodecPropertyID = 'i'<<24 | 'f'<<16 | '4'<<8 | 'o' // 'if4o'
	KAudioCodecPropertyIsInitialized                    AudioCodecPropertyID = 'i'<<24 | 'n'<<16 | 'i'<<8 | 't' // 'init'
	KAudioCodecPropertyMagicCookie                      AudioCodecPropertyID = 'k'<<24 | 'u'<<16 | 'k'<<8 | 'i' // 'kuki'
	KAudioCodecPropertyManufacturerCFString             AudioCodecPropertyID = 'l'<<24 | 'm'<<16 | 'a'<<8 | 'k' // 'lmak'
	KAudioCodecPropertyMaximumPacketByteSize            AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'b' // 'pakb'
	KAudioCodecPropertyMinimumDelayMode                 AudioCodecPropertyID = 'm'<<24 | 'd'<<16 | 'e'<<8 | 'l' // 'mdel'
	KAudioCodecPropertyMinimumNumberInputPackets        AudioCodecPropertyID = 'm'<<24 | 'n'<<16 | 'i'<<8 | 'p' // 'mnip'
	KAudioCodecPropertyMinimumNumberOutputPackets       AudioCodecPropertyID = 'm'<<24 | 'n'<<16 | 'o'<<8 | 'p' // 'mnop'
	KAudioCodecPropertyNameCFString                     AudioCodecPropertyID = 'l'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'lnam'
	KAudioCodecPropertyOutputChannelLayout              AudioCodecPropertyID = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl '
	KAudioCodecPropertyOutputFormatsForInputFormat      AudioCodecPropertyID = 'o'<<24 | 'f'<<16 | '4'<<8 | 'i' // 'of4i'
	KAudioCodecPropertyPacketFrameSize                  AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'f' // 'pakf'
	KAudioCodecPropertyPacketSizeLimitForVBR            AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'l' // 'pakl'
	KAudioCodecPropertyPaddedZeros                      AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'd'<<8 | '0' // 'pad0'
	KAudioCodecPropertyPrimeInfo                        AudioCodecPropertyID = 'p'<<24 | 'r'<<16 | 'i'<<8 | 'm' // 'prim'
	KAudioCodecPropertyPrimeMethod                      AudioCodecPropertyID = 'p'<<24 | 'r'<<16 | 'm'<<8 | 'm' // 'prmm'
	KAudioCodecPropertyProgramTargetLevel               AudioCodecPropertyID = 'p'<<24 | 'p'<<16 | 't'<<8 | 'l' // 'pptl'
	KAudioCodecPropertyProgramTargetLevelConstant       AudioCodecPropertyID = 'p'<<24 | 't'<<16 | 'l'<<8 | 'c' // 'ptlc'
	KAudioCodecPropertyQualitySetting                   AudioCodecPropertyID = 's'<<24 | 'r'<<16 | 'c'<<8 | 'q' // 'srcq'
	KAudioCodecPropertyRecommendedBitRateRange          AudioCodecPropertyID = 'b'<<24 | 'r'<<16 | 't'<<8 | 'r' // 'brtr'
	KAudioCodecPropertyRequiresPacketDescription        AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'k'<<8 | 'd' // 'pakd'
	KAudioCodecPropertySettings                         AudioCodecPropertyID = 'a'<<24 | 'c'<<16 | 's'<<8 | ' ' // 'acs '
	KAudioCodecPropertySoundQualityForVBR               AudioCodecPropertyID = 'v'<<24 | 'b'<<16 | 'r'<<8 | 'q' // 'vbrq'
	KAudioCodecPropertySupportedInputFormats            AudioCodecPropertyID = 'i'<<24 | 'f'<<16 | 'm'<<8 | '#' // 'ifm#'
	KAudioCodecPropertySupportedOutputFormats           AudioCodecPropertyID = 'o'<<24 | 'f'<<16 | 'm'<<8 | '#' // 'ofm#'
	KAudioCodecPropertyUsedInputBufferSize              AudioCodecPropertyID = 'u'<<24 | 'b'<<16 | 'u'<<8 | 'f' // 'ubuf'
	KAudioCodecPropertyZeroFramesPadded                 AudioCodecPropertyID = 'p'<<24 | 'a'<<16 | 'd'<<8 | '0' // 'pad0'
	KAudioCodecUseRecommendedSampleRate                 AudioCodecPropertyID = 'u'<<24 | 'r'<<16 | 's'<<8 | 'r' // 'ursr'
)

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.

It panics if AudioComponentFindNext is unavailable at run time; use TryAudioComponentFindNext to get an error instead.

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.

It panics if AudioComponentInstanceGetComponent is unavailable at run time; use TryAudioComponentInstanceGetComponent to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentInstanceGetComponent(_:)

func AudioComponentRegister

func AudioComponentRegister(inDesc *AudioComponentDescription, inName corefoundation.CFStringRef, inVersion uint32, inFactory AudioComponentFactoryFunction) AudioComponent

AudioComponentRegister.

It panics if AudioComponentRegister is unavailable at run time; use TryAudioComponentRegister to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AudioComponentRegister(_:_:_:_:)

func TryAudioComponentFindNext

func TryAudioComponentFindNext(inComponent AudioComponent, inDesc *AudioComponentDescription) (AudioComponent, error)

TryAudioComponentFindNext is like AudioComponentFindNext but returns an error instead of panicking if AudioComponentFindNext is unavailable at run time.

func TryAudioComponentInstanceGetComponent

func TryAudioComponentInstanceGetComponent(inInstance AudioComponentInstance) (AudioComponent, error)

TryAudioComponentInstanceGetComponent is like AudioComponentInstanceGetComponent but returns an error instead of panicking if AudioComponentInstanceGetComponent is unavailable at run time.

func TryAudioComponentRegister

func TryAudioComponentRegister(inDesc *AudioComponentDescription, inName corefoundation.CFStringRef, inVersion uint32, inFactory AudioComponentFactoryFunction) (AudioComponent, error)

TryAudioComponentRegister is like AudioComponentRegister but returns an error instead of panicking if AudioComponentRegister is unavailable at run time.

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 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 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

type AudioComponentPlugInInterface

type AudioComponentPlugInInterface struct {
	// C: int (*)(void *, struct ComponentInstanceRecord *)
	Open uintptr
	// C: int (*)(void *)
	Close uintptr
	// C: int (*(*)(short))(void *, ...)
	Lookup   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_UnauthorizedError_Init AudioComponentValidationResult = 5
	KAudioComponentValidationResult_UnauthorizedError_Open AudioComponentValidationResult = 4
	KAudioComponentValidationResult_Unknown                AudioComponentValidationResult = 0
)

func (AudioComponentValidationResult) 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 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

const (
	// KAudioConverterApplicableEncodeBitRates: An array of [AudioValueRange] structures that describes applicable bit rates based on current settings.
	KAudioConverterApplicableEncodeBitRates AudioConverterPropertyID = 'a'<<24 | 'e'<<16 | 'b'<<8 | 'r' // 'aebr'
	// KAudioConverterApplicableEncodeSampleRates: An array of [AudioValueRange] structures that describes applicable sample rates based on current settings.
	KAudioConverterApplicableEncodeSampleRates AudioConverterPropertyID = '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 AudioConverterPropertyID = '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 AudioConverterPropertyID = '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 AudioConverterPropertyID = 'v'<<24 | 'e'<<16 | 's'<<8 | 'r' // 'vesr'
	// KAudioConverterChannelMap: An array of [SInt32] values that specify an input-to-output channel mapping.
	KAudioConverterChannelMap AudioConverterPropertyID = 'c'<<24 | 'h'<<16 | 'm'<<8 | 'p' // 'chmp'
	// KAudioConverterCodecQuality: The rendering quality of a codec.
	KAudioConverterCodecQuality AudioConverterPropertyID = 'c'<<24 | 'd'<<16 | 'q'<<8 | 'u' // 'cdqu'
	// KAudioConverterCompressionMagicCookie: A `void*` value that points to memory set up by the caller.
	KAudioConverterCompressionMagicCookie AudioConverterPropertyID = 'c'<<24 | 'm'<<16 | 'g'<<8 | 'c' // 'cmgc'
	// KAudioConverterCurrentInputStreamDescription: The current, completely specified input [AudioStreamBasicDescription] structure.
	KAudioConverterCurrentInputStreamDescription AudioConverterPropertyID = 'a'<<24 | 'c'<<16 | 'i'<<8 | 'd' // 'acid'
	// KAudioConverterCurrentOutputStreamDescription: The current, completely specified output [AudioStreamBasicDescription] structure.
	KAudioConverterCurrentOutputStreamDescription AudioConverterPropertyID = 'a'<<24 | 'c'<<16 | 'o'<<8 | 'd' // 'acod'
	// KAudioConverterDecompressionMagicCookie: A `void*` value that points to memory set up by the caller.
	KAudioConverterDecompressionMagicCookie AudioConverterPropertyID = 'd'<<24 | 'm'<<16 | 'g'<<8 | 'c' // 'dmgc'
	// KAudioConverterEncodeAdjustableSampleRate: A [Float64] value that specifies an output sample rate.
	KAudioConverterEncodeAdjustableSampleRate AudioConverterPropertyID = '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 AudioConverterPropertyID = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat'
	// KAudioConverterInputChannelLayout: An [AudioChannelLayout] structure that specifies an audio converter’s input channel layout.
	KAudioConverterInputChannelLayout AudioConverterPropertyID = 'i'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'icl '
	// KAudioConverterOutputChannelLayout: An [AudioChannelLayout] structure that specifies an audio converter’s output channel layout.
	KAudioConverterOutputChannelLayout AudioConverterPropertyID = 'o'<<24 | 'c'<<16 | 'l'<<8 | ' ' // 'ocl '
	// KAudioConverterPrimeInfo: An AudioConverterPrimeInfo structure.
	KAudioConverterPrimeInfo AudioConverterPropertyID = 'p'<<24 | 'r'<<16 | 'i'<<8 | 'm' // 'prim'
	// KAudioConverterPrimeMethod: The priming method, usually for sample-rate conversion.
	KAudioConverterPrimeMethod AudioConverterPropertyID = 'p'<<24 | 'r'<<16 | 'm'<<8 | 'm' // 'prmm'
	// KAudioConverterPropertyBitDepthHint: A [UInt32] value that designates the source bit depth to preserve.
	KAudioConverterPropertyBitDepthHint AudioConverterPropertyID = '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 AudioConverterPropertyID = '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 AudioConverterPropertyID = 'c'<<24 | 'o'<<16 | 'b'<<8 | 's' // 'cobs'
	KAudioConverterPropertyChannelMixMap             AudioConverterPropertyID = 'm'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'mmap'
	KAudioConverterPropertyDitherBitDepth            AudioConverterPropertyID = 'd'<<24 | 'b'<<16 | 'i'<<8 | 't' // 'dbit'
	KAudioConverterPropertyDithering                 AudioConverterPropertyID = 'd'<<24 | 'i'<<16 | 't'<<8 | 'h' // 'dith'
	// KAudioConverterPropertyFormatList: An array of [AudioFormatListItem] structures that describes the set of data formats produced by the encoder end of an audio converter.
	KAudioConverterPropertyFormatList AudioConverterPropertyID = '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 AudioConverterPropertyID = 'i'<<24 | 'c'<<16 | 'd'<<8 | 'p' // 'icdp'
	// KAudioConverterPropertyMaximumInputBufferSize: Deprecated.
	KAudioConverterPropertyMaximumInputBufferSize AudioConverterPropertyID = 'x'<<24 | 'i'<<16 | 'b'<<8 | 's' // 'xibs'
	// KAudioConverterPropertyMaximumInputPacketSize: A [UInt32] value that indicates the size, in bytes, of the largest single packet of data in the input format.
	KAudioConverterPropertyMaximumInputPacketSize AudioConverterPropertyID = '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 AudioConverterPropertyID = 'x'<<24 | 'o'<<16 | 'p'<<8 | 's' // 'xops'
	// KAudioConverterPropertyMinimumInputBufferSize: 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.
	KAudioConverterPropertyMinimumInputBufferSize AudioConverterPropertyID = '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 AudioConverterPropertyID = '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 AudioConverterPropertyID = 'o'<<24 | 'c'<<16 | 'd'<<8 | 'p' // 'ocdp'
	KAudioConverterPropertyPerformDownmix        AudioConverterPropertyID = 'd'<<24 | 'm'<<16 | 'i'<<8 | 'x' // 'dmix'
	// KAudioConverterPropertySettings: An array (of type [CFArray]) of property settings for converters.
	KAudioConverterPropertySettings AudioConverterPropertyID = 'a'<<24 | 'c'<<16 | 'p'<<8 | 's' // 'acps'
	// KAudioConverterSampleRateConverterAlgorithm: A value that indicates the sample rate conversion algorithm.
	KAudioConverterSampleRateConverterAlgorithm AudioConverterPropertyID = 's'<<24 | 'r'<<16 | 'c'<<8 | 'i' // 'srci'
	// KAudioConverterSampleRateConverterComplexityValue: The sample rate conversion algorithm.
	KAudioConverterSampleRateConverterComplexityValue AudioConverterPropertyID = 's'<<24 | 'r'<<16 | 'c'<<8 | 'a' // 'srca'
	// KAudioConverterSampleRateConverterInitialPhase: A [Float64] value equal to `0.0`.
	KAudioConverterSampleRateConverterInitialPhase AudioConverterPropertyID = 's'<<24 | 'r'<<16 | 'c'<<8 | 'p' // 'srcp'
	// KAudioConverterSampleRateConverterQuality: The rendering quality of the sample rate converter.
	KAudioConverterSampleRateConverterQuality AudioConverterPropertyID = 's'<<24 | 'r'<<16 | 'c'<<8 | 'q' // 'srcq'
)

type AudioConverterRef

type AudioConverterRef uintptr

AudioConverterRef is a reference to an audio converter object.

See: https://developer.apple.com/documentation/AudioToolbox/AudioConverterRef

type AudioFileFDFTable

type AudioFileFDFTable struct {
	MComponentStorage unsafe.Pointer
	// C: ReadBytesFDF (int (*)(void *, unsigned char, long long, unsigned int *, void *))
	MReadBytesFDF uintptr
	// C: WriteBytesFDF (int (*)(void *, unsigned char, long long, unsigned int *, const void *))
	MWriteBytesFDF uintptr
	// C: ReadPacketsFDF (int (*)(void *, unsigned char, unsigned int *, struct AudioStreamPacketDescription *, long long, unsigned int *, void *))
	MReadPacketsFDF uintptr
	// C: WritePacketsFDF (int (*)(void *, unsigned char, unsigned int, const struct AudioStreamPacketDescription *, long long, unsigned int *, const void *))
	MWritePacketsFDF uintptr
	// C: GetPropertyInfoFDF (int (*)(void *, unsigned int, unsigned int *, unsigned int *))
	MGetPropertyInfoFDF uintptr
	// C: GetPropertyFDF (int (*)(void *, unsigned int, unsigned int *, void *))
	MGetPropertyFDF uintptr
	// C: SetPropertyFDF (int (*)(void *, unsigned int, unsigned int, const void *))
	MSetPropertyFDF uintptr
	// C: CountUserDataFDF (int (*)(void *, unsigned int, unsigned int *))
	MCountUserDataFDF uintptr
	// C: GetUserDataSizeFDF (int (*)(void *, unsigned int, unsigned int, unsigned int *))
	MGetUserDataSizeFDF uintptr
	// C: GetUserDataFDF (int (*)(void *, unsigned int, unsigned int, unsigned int *, void *))
	MGetUserDataFDF uintptr
	// C: SetUserDataFDF (int (*)(void *, unsigned int, unsigned int, unsigned int, const void *))
	MSetUserDataFDF uintptr
}

AudioFileFDFTable

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioFileFDFTable

type AudioFileFDFTableExtended

type AudioFileFDFTableExtended struct {
	MComponentStorage unsafe.Pointer
	// C: ReadBytesFDF (int (*)(void *, unsigned char, long long, unsigned int *, void *))
	MReadBytesFDF uintptr
	// C: WriteBytesFDF (int (*)(void *, unsigned char, long long, unsigned int *, const void *))
	MWriteBytesFDF uintptr
	// C: ReadPacketsFDF (int (*)(void *, unsigned char, unsigned int *, struct AudioStreamPacketDescription *, long long, unsigned int *, void *))
	MReadPacketsFDF uintptr
	// C: WritePacketsFDF (int (*)(void *, unsigned char, unsigned int, const struct AudioStreamPacketDescription *, long long, unsigned int *, const void *))
	MWritePacketsFDF uintptr
	// C: GetPropertyInfoFDF (int (*)(void *, unsigned int, unsigned int *, unsigned int *))
	MGetPropertyInfoFDF uintptr
	// C: GetPropertyFDF (int (*)(void *, unsigned int, unsigned int *, void *))
	MGetPropertyFDF uintptr
	// C: SetPropertyFDF (int (*)(void *, unsigned int, unsigned int, const void *))
	MSetPropertyFDF uintptr
	// C: CountUserDataFDF (int (*)(void *, unsigned int, unsigned int *))
	MCountUserDataFDF uintptr
	// C: GetUserDataSizeFDF (int (*)(void *, unsigned int, unsigned int, unsigned int *))
	MGetUserDataSizeFDF uintptr
	// C: GetUserDataFDF (int (*)(void *, unsigned int, unsigned int, unsigned int *, void *))
	MGetUserDataFDF uintptr
	// C: SetUserDataFDF (int (*)(void *, unsigned int, unsigned int, unsigned int, const void *))
	MSetUserDataFDF uintptr
	// C: ReadPacketDataFDF (int (*)(void *, unsigned char, unsigned int *, struct AudioStreamPacketDescription *, long long, unsigned int *, void *))
	MReadPacketDataFDF uintptr
}

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

const (
	KAudioFileComponent_AvailableFormatIDs                   AudioFilePropertyID = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'd' // 'fmid'
	KAudioFileComponent_AvailableStreamDescriptionsForFormat AudioFilePropertyID = 's'<<24 | 'd'<<16 | 'i'<<8 | 'd' // 'sdid'
	KAudioFileComponent_CanRead                              AudioFilePropertyID = 'c'<<24 | 'n'<<16 | 'r'<<8 | 'd' // 'cnrd'
	KAudioFileComponent_CanWrite                             AudioFilePropertyID = 'c'<<24 | 'n'<<16 | 'w'<<8 | 'r' // 'cnwr'
	KAudioFileComponent_ExtensionsForType                    AudioFilePropertyID = 'f'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'fext'
	KAudioFileComponent_FastDispatchTable                    AudioFilePropertyID = 'f'<<24 | 'd'<<16 | 'f'<<8 | 't' // 'fdft'
	KAudioFileComponent_FileTypeName                         AudioFilePropertyID = 'f'<<24 | 't'<<16 | 'n'<<8 | 'm' // 'ftnm'
	KAudioFileComponent_HFSTypeCodesForType                  AudioFilePropertyID = 'f'<<24 | 'h'<<16 | 'f'<<8 | 's' // 'fhfs'
	KAudioFileComponent_MIMETypesForType                     AudioFilePropertyID = 'f'<<24 | 'm'<<16 | 'i'<<8 | 'm' // 'fmim'
	KAudioFileComponent_UTIsForType                          AudioFilePropertyID = 'f'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'futi'
	// KAudioFileGlobalInfo_AllExtensions: A [CFArray] of [CFStrings] containing all recognized file extensions.
	KAudioFileGlobalInfo_AllExtensions AudioFilePropertyID = 'a'<<24 | 'l'<<16 | 'x'<<8 | 't' // 'alxt'
	// KAudioFileGlobalInfo_AllHFSTypeCodes: An array of HFS type codes containing all recognized HFS type codes.
	KAudioFileGlobalInfo_AllHFSTypeCodes AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = 'a'<<24 | 'u'<<16 | 't'<<8 | 'i' // 'auti'
	// KAudioFileGlobalInfo_AvailableFormatIDs: An array of format IDs for formats that can be read.
	KAudioFileGlobalInfo_AvailableFormatIDs AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = 'f'<<24 | 'e'<<16 | 'x'<<8 | 't' // 'fext'
	// KAudioFileGlobalInfo_FileTypeName: The name for the file type.
	KAudioFileGlobalInfo_FileTypeName AudioFilePropertyID = 'f'<<24 | 't'<<16 | 'n'<<8 | 'm' // 'ftnm'
	// KAudioFileGlobalInfo_HFSTypeCodesForType: An array of HFS type codes corresponding to a specified file type.
	KAudioFileGlobalInfo_HFSTypeCodesForType AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = 'a'<<24 | 'f'<<16 | 'w'<<8 | 'f' // 'afwf'
	// KAudioFilePropertyAlbumArtwork: An object containing the image data for the album artwork associated with an audio file.
	KAudioFilePropertyAlbumArtwork AudioFilePropertyID = 'a'<<24 | 'a'<<16 | 'r'<<8 | 't' // 'aart'
	// KAudioFilePropertyAudioDataByteCount: Indicates the number of bytes of audio data in the designated file.
	KAudioFilePropertyAudioDataByteCount AudioFilePropertyID = 'b'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'bcnt'
	// KAudioFilePropertyAudioDataPacketCount: Indicates the number of packets of audio data in the designated file.
	KAudioFilePropertyAudioDataPacketCount AudioFilePropertyID = 'p'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'pcnt'
	KAudioFilePropertyAudioTrackCount      AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = 'b'<<24 | 'y'<<16 | 'p'<<8 | 'k' // 'bypk'
	// KAudioFilePropertyChannelLayout: An audio channel layout structure.
	KAudioFilePropertyChannelLayout AudioFilePropertyID = 'c'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'cmap'
	// KAudioFilePropertyChunkIDs: An array of  four-character codes for each kind of chunk in the file.
	KAudioFilePropertyChunkIDs AudioFilePropertyID = 'c'<<24 | 'h'<<16 | 'i'<<8 | 'd' // 'chid'
	// KAudioFilePropertyDataFormat: An audio stream basic description containing the format of the audio data.
	KAudioFilePropertyDataFormat AudioFilePropertyID = 'd'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'dfmt'
	// KAudioFilePropertyDataFormatName: This constant is deprecated in macOS 10.5 and later.
	KAudioFilePropertyDataFormatName AudioFilePropertyID = 'f'<<24 | 'n'<<16 | 'm'<<8 | 'e' // 'fnme'
	// KAudioFilePropertyDataOffset: Indicates the byte offset in the file of the designated audio data.
	KAudioFilePropertyDataOffset AudioFilePropertyID = 'd'<<24 | 'o'<<16 | 'f'<<8 | 'f' // 'doff'
	// KAudioFilePropertyDeferSizeUpdates: The default value (`0`) always updates header.
	KAudioFilePropertyDeferSizeUpdates AudioFilePropertyID = 'd'<<24 | 's'<<16 | 'z'<<8 | 'u' // 'dszu'
	// KAudioFilePropertyEstimatedDuration: An estimated duration in seconds.
	KAudioFilePropertyEstimatedDuration AudioFilePropertyID = 'e'<<24 | 'd'<<16 | 'u'<<8 | 'r' // 'edur'
	// KAudioFilePropertyFileFormat: The format of the audio data file.
	KAudioFilePropertyFileFormat AudioFilePropertyID = '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 AudioFilePropertyID = '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 AudioFilePropertyID = '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       AudioFilePropertyID = 'i'<<24 | 'd'<<16 | '3'<<8 | 't' // 'id3t'
	KAudioFilePropertyID3TagOffset AudioFilePropertyID = 'i'<<24 | 'd'<<16 | '3'<<8 | 'o' // 'id3o'
	// KAudioFilePropertyInfoDictionary: A CF Dictionary with information about the data in the file.
	KAudioFilePropertyInfoDictionary AudioFilePropertyID = '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 AudioFilePropertyID = 'o'<<24 | 'p'<<16 | 't'<<8 | 'm' // 'optm'
	// KAudioFilePropertyMagicCookieData: A pointer to memory set up by the caller.
	KAudioFilePropertyMagicCookieData AudioFilePropertyID = 'm'<<24 | 'g'<<16 | 'i'<<8 | 'c' // 'mgic'
	// KAudioFilePropertyMarkerList: A list of audio file markers defined in the file.
	KAudioFilePropertyMarkerList AudioFilePropertyID = 'm'<<24 | 'k'<<16 | 'l'<<8 | 's' // 'mkls'
	// KAudioFilePropertyMaximumPacketSize: Indicates the maximum size of a packet for the data in the designated file.
	KAudioFilePropertyMaximumPacketSize              AudioFilePropertyID = 'p'<<24 | 's'<<16 | 'z'<<8 | 'e' // 'psze'
	KAudioFilePropertyNextIndependentPacket          AudioFilePropertyID = 'n'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'nind'
	KAudioFilePropertyPacketRangeByteCountUpperBound AudioFilePropertyID = 'p'<<24 | 'r'<<16 | 'u'<<8 | 'b' // 'prub'
	// KAudioFilePropertyPacketSizeUpperBound: The theoretical maximum packet size in the file.
	KAudioFilePropertyPacketSizeUpperBound AudioFilePropertyID = '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 AudioFilePropertyID = '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           AudioFilePropertyID = 'p'<<24 | 'k'<<16 | 'b'<<8 | 'y' // 'pkby'
	KAudioFilePropertyPacketToDependencyInfo AudioFilePropertyID = '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             AudioFilePropertyID = 'p'<<24 | 'k'<<16 | 'f'<<8 | 'r' // 'pkfr'
	KAudioFilePropertyPacketToRollDistance      AudioFilePropertyID = 'p'<<24 | 'k'<<16 | 'r'<<8 | 'l' // 'pkrl'
	KAudioFilePropertyPreviousIndependentPacket AudioFilePropertyID = 'p'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'pind'
	// KAudioFilePropertyRegionList: The list of audio file region values defined in the file.
	KAudioFilePropertyRegionList AudioFilePropertyID = 'r'<<24 | 'g'<<16 | 'l'<<8 | 's' // 'rgls'
	// KAudioFilePropertyReserveDuration: The duration in seconds of the data expected to be written.
	KAudioFilePropertyReserveDuration       AudioFilePropertyID = 'r'<<24 | 's'<<16 | 'r'<<8 | 'v' // 'rsrv'
	KAudioFilePropertyRestrictsRandomAccess AudioFilePropertyID = '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 AudioFilePropertyID = 's'<<24 | 'b'<<16 | 't'<<8 | 'd' // 'sbtd'
	KAudioFilePropertyUseAudioTrack  AudioFilePropertyID = 'u'<<24 | 'a'<<16 | 't'<<8 | 'k' // 'uatk'
)

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

type AudioFileStreamPropertyID

type AudioFileStreamPropertyID = uint32

AudioFileStreamPropertyID is uniquely identifies an audio file stream property.

See: https://developer.apple.com/documentation/AudioToolbox/AudioFileStreamPropertyID

const (
	// KAudioFileStreamProperty_AudioDataByteCount: A [UInt64] value indicating the number of bytes of audio data in the streamed file.
	KAudioFileStreamProperty_AudioDataByteCount AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = 'p'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'pcnt'
	// KAudioFileStreamProperty_AverageBytesPerPacket: A [Float64] value indicating the average bytes per packet.
	KAudioFileStreamProperty_AverageBytesPerPacket AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = 'b'<<24 | 'r'<<16 | 'a'<<8 | 't' // 'brat'
	// KAudioFileStreamProperty_ByteToPacket: Obtains the packet number corresponding to a byte number.
	KAudioFileStreamProperty_ByteToPacket AudioFileStreamPropertyID = 'b'<<24 | 'y'<<16 | 'p'<<8 | 'k' // 'bypk'
	// KAudioFileStreamProperty_ChannelLayout: An [AudioChannelLayout] structure.
	KAudioFileStreamProperty_ChannelLayout AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = 'd'<<24 | 'o'<<16 | 'f'<<8 | 'f' // 'doff'
	// KAudioFileStreamProperty_FileFormat: A four-character code that identifies the audio data format.
	KAudioFileStreamProperty_FileFormat AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst'
	// KAudioFileStreamProperty_FrameToPacket: Obtains the packet number corresponding to a frame number.
	KAudioFileStreamProperty_FrameToPacket  AudioFileStreamPropertyID = 'f'<<24 | 'r'<<16 | 'p'<<8 | 'k' // 'frpk'
	KAudioFileStreamProperty_InfoDictionary AudioFileStreamPropertyID = 'i'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'info'
	// KAudioFileStreamProperty_MagicCookieData: A pointer (`void *`) to a magic cookie.
	KAudioFileStreamProperty_MagicCookieData AudioFileStreamPropertyID = '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     AudioFileStreamPropertyID = 'p'<<24 | 's'<<16 | 'z'<<8 | 'e' // 'psze'
	KAudioFileStreamProperty_NextIndependentPacket AudioFileStreamPropertyID = '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 AudioFileStreamPropertyID = 'p'<<24 | 'k'<<16 | 'u'<<8 | 'b' // 'pkub'
	// KAudioFileStreamProperty_PacketTableInfo: An [AudioFilePacketTableInfo] structure.
	KAudioFileStreamProperty_PacketTableInfo AudioFileStreamPropertyID = 'p'<<24 | 'n'<<16 | 'f'<<8 | 'o' // 'pnfo'
	// KAudioFileStreamProperty_PacketToByte: Obtains the byte number corresponding to a packet number.
	KAudioFileStreamProperty_PacketToByte           AudioFileStreamPropertyID = 'p'<<24 | 'k'<<16 | 'b'<<8 | 'y' // 'pkby'
	KAudioFileStreamProperty_PacketToDependencyInfo AudioFileStreamPropertyID = 'p'<<24 | 'k'<<16 | 'd'<<8 | 'p' // 'pkdp'
	// KAudioFileStreamProperty_PacketToFrame: Obtains the frame number corresponding to a packet number.
	KAudioFileStreamProperty_PacketToFrame             AudioFileStreamPropertyID = 'p'<<24 | 'k'<<16 | 'f'<<8 | 'r' // 'pkfr'
	KAudioFileStreamProperty_PacketToRollDistance      AudioFileStreamPropertyID = 'p'<<24 | 'k'<<16 | 'r'<<8 | 'l' // 'pkrl'
	KAudioFileStreamProperty_PreviousIndependentPacket AudioFileStreamPropertyID = 'p'<<24 | 'i'<<16 | 'n'<<8 | 'd' // 'pind'
	// KAudioFileStreamProperty_ReadyToProducePackets: # Discussion
	KAudioFileStreamProperty_ReadyToProducePackets AudioFileStreamPropertyID = 'r'<<24 | 'e'<<16 | 'd'<<8 | 'y' // 'redy'
	KAudioFileStreamProperty_RestrictsRandomAccess AudioFileStreamPropertyID = 'r'<<24 | 'r'<<16 | 'a'<<8 | 'p' // 'rrap'
)

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

const (
	// KAudioFile3GP2Type: A 3GPP2 file, suitable for video content on CDMA mobile phones.
	KAudioFile3GP2Type AudioFileTypeID = '3'<<24 | 'g'<<16 | 'p'<<8 | '2' // '3gp2'
	// KAudioFile3GPType: A 3GPP file, suitable for video content on GSM mobile phones.
	KAudioFile3GPType AudioFileTypeID = '3'<<24 | 'g'<<16 | 'p'<<8 | 'p' // '3gpp'
	// KAudioFileAAC_ADTSType: An Advanced Audio Coding (AAC) Audio Data Transport Stream (ADTS) file.
	KAudioFileAAC_ADTSType AudioFileTypeID = 'a'<<24 | 'd'<<16 | 't'<<8 | 's' // 'adts'
	// KAudioFileAC3Type: An AC-3 file.
	KAudioFileAC3Type AudioFileTypeID = 'a'<<24 | 'c'<<16 | '-'<<8 | '3' // 'ac-3'
	// KAudioFileAIFCType: An Audio Interchange File Format Compressed (AIFF-C) file.
	KAudioFileAIFCType AudioFileTypeID = 'A'<<24 | 'I'<<16 | 'F'<<8 | 'C' // 'AIFC'
	// KAudioFileAIFFType: An Audio Interchange File Format (AIFF) file.
	KAudioFileAIFFType AudioFileTypeID = 'A'<<24 | 'I'<<16 | 'F'<<8 | 'F' // 'AIFF'
	// KAudioFileAMRType: An AMR (Adaptive Multi-Rate) file suitable for compressed speech.
	KAudioFileAMRType  AudioFileTypeID = 'a'<<24 | 'm'<<16 | 'r'<<8 | 'f' // 'amrf'
	KAudioFileBW64Type AudioFileTypeID = 'B'<<24 | 'W'<<16 | '6'<<8 | '4' // 'BW64'
	// KAudioFileCAFType: A Core Audio File Format file.
	KAudioFileCAFType        AudioFileTypeID = 'c'<<24 | 'a'<<16 | 'f'<<8 | 'f' // 'caff'
	KAudioFileFLACType       AudioFileTypeID = 'f'<<24 | 'l'<<16 | 'a'<<8 | 'c' // 'flac'
	KAudioFileLATMInLOASType AudioFileTypeID = 'l'<<24 | 'o'<<16 | 'a'<<8 | 's' // 'loas'
	// KAudioFileM4AType: An M4A file.
	KAudioFileM4AType AudioFileTypeID = 'm'<<24 | '4'<<16 | 'a'<<8 | 'f' // 'm4af'
	KAudioFileM4BType AudioFileTypeID = 'm'<<24 | '4'<<16 | 'b'<<8 | 'f' // 'm4bf'
	// KAudioFileMP1Type: An MPEG Audio Layer 1 (`XCUIElementTypeMp1`) file.
	KAudioFileMP1Type AudioFileTypeID = 'M'<<24 | 'P'<<16 | 'G'<<8 | '1' // 'MPG1'
	// KAudioFileMP2Type: An MPEG Audio Layer 2 (`XCUIElementTypeMp2`) file.
	KAudioFileMP2Type AudioFileTypeID = 'M'<<24 | 'P'<<16 | 'G'<<8 | '2' // 'MPG2'
	// KAudioFileMP3Type: An MPEG Audio Layer 3 (`XCUIElementTypeMp3`) file.
	KAudioFileMP3Type AudioFileTypeID = 'M'<<24 | 'P'<<16 | 'G'<<8 | '3' // 'MPG3'
	// KAudioFileMPEG4Type: An MPEG 4 file.
	KAudioFileMPEG4Type AudioFileTypeID = 'm'<<24 | 'p'<<16 | '4'<<8 | 'f' // 'mp4f'
	// KAudioFileNextType: A NeXT or Sun Microsystems file.
	KAudioFileNextType AudioFileTypeID = 'N'<<24 | 'e'<<16 | 'X'<<8 | 'T' // 'NeXT'
	KAudioFileRF64Type AudioFileTypeID = 'R'<<24 | 'F'<<16 | '6'<<8 | '4' // 'RF64'
	// KAudioFileSoundDesigner2Type: A Sound Designer II file.
	KAudioFileSoundDesigner2Type AudioFileTypeID = 'S'<<24 | 'd'<<16 | '2'<<8 | 'f' // 'Sd2f'
	// KAudioFileWAVEType: A Microsoft WAVE file.
	KAudioFileWAVEType   AudioFileTypeID = 'W'<<24 | 'A'<<16 | 'V'<<8 | 'E' // 'WAVE'
	KAudioFileWave64Type AudioFileTypeID = 'W'<<24 | '6'<<16 | '4'<<8 | 'f' // 'W64f'
)

type AudioFileWriteProc

type AudioFileWriteProc = AudioFile_WriteProc

AudioFileWriteProc is a Go-name alias for AudioFile_WriteProc.

type AudioFile_GetSizeProc

type AudioFile_GetSizeProc = func(inClientData unsafe.Pointer) int64

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

type AudioFile_SetSizeProc = func(unsafe.Pointer, int64) int32

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

const (
	// KAudioFormatProperty_ASBDFromESDS: An [AudioStreamBasicDescription] structure for a given elementary stream descriptor (ESDS).
	KAudioFormatProperty_ASBDFromESDS AudioFormatPropertyID = 'e'<<24 | 's'<<16 | 's'<<8 | 'd' // 'essd'
	// KAudioFormatProperty_ASBDFromMPEGPacket: An [AudioStreamBasicDescription] structure for a given MPEG Packet.
	KAudioFormatProperty_ASBDFromMPEGPacket            AudioFormatPropertyID = 'a'<<24 | 'd'<<16 | 'm'<<8 | 'p' // 'admp'
	KAudioFormatProperty_AreChannelLayoutsEquivalent   AudioFormatPropertyID = 'c'<<24 | 'h'<<16 | 'e'<<8 | 'q' // 'cheq'
	KAudioFormatProperty_AvailableDecodeNumberChannels AudioFormatPropertyID = 'a'<<24 | 'd'<<16 | 'n'<<8 | 'c' // 'adnc'
	// KAudioFormatProperty_AvailableEncodeBitRates: An array of [AudioValueRange] structures describing all available bit rates.
	KAudioFormatProperty_AvailableEncodeBitRates AudioFormatPropertyID = '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 AudioFormatPropertyID = '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 AudioFormatPropertyID = 'a'<<24 | 'v'<<16 | 'n'<<8 | 'c' // 'avnc'
	// KAudioFormatProperty_AvailableEncodeSampleRates: An array of [AudioValueRange] structures.
	KAudioFormatProperty_AvailableEncodeSampleRates AudioFormatPropertyID = '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 AudioFormatPropertyID = 'b'<<24 | 'a'<<16 | 'l'<<8 | 'f' // 'balf'
	// KAudioFormatProperty_BitmapForLayoutTag: A bitmap for an [AudioChannelLayoutTag] value.
	KAudioFormatProperty_BitmapForLayoutTag AudioFormatPropertyID = 'b'<<24 | 'm'<<16 | 't'<<8 | 'g' // 'bmtg'
	// KAudioFormatProperty_ChannelLayoutForBitmap: The channel descriptions for a standard channel layout,
	KAudioFormatProperty_ChannelLayoutForBitmap AudioFormatPropertyID = 'c'<<24 | 'm'<<16 | 'p'<<8 | 'b' // 'cmpb'
	// KAudioFormatProperty_ChannelLayoutForTag: The channel descriptions for a standard channel layout.
	KAudioFormatProperty_ChannelLayoutForTag AudioFormatPropertyID = 'c'<<24 | 'm'<<16 | 'p'<<8 | 'l' // 'cmpl'
	// KAudioFormatProperty_ChannelLayoutFromESDS: An [AudioChannelLayout] structure for a given elementary stream descriptor (ESDS).
	KAudioFormatProperty_ChannelLayoutFromESDS AudioFormatPropertyID = 'e'<<24 | 's'<<16 | 'c'<<8 | 'l' // 'escl'
	KAudioFormatProperty_ChannelLayoutHash     AudioFormatPropertyID = 'c'<<24 | 'h'<<16 | 'h'<<8 | 'a' // 'chha'
	// KAudioFormatProperty_ChannelLayoutName: The a name for a particular channel layout.
	KAudioFormatProperty_ChannelLayoutName AudioFormatPropertyID = 'l'<<24 | 'o'<<16 | 'n'<<8 | 'm' // 'lonm'
	// KAudioFormatProperty_ChannelLayoutSimpleName: A simplified name for channel layout.
	KAudioFormatProperty_ChannelLayoutSimpleName AudioFormatPropertyID = 'l'<<24 | 's'<<16 | 'n'<<8 | 'm' // 'lsnm'
	// KAudioFormatProperty_ChannelMap: An array of [SInt32] values for reordering input channels.
	KAudioFormatProperty_ChannelMap AudioFormatPropertyID = 'c'<<24 | 'h'<<16 | 'm'<<8 | 'p' // 'chmp'
	// KAudioFormatProperty_ChannelName: The name for a particular channel.
	KAudioFormatProperty_ChannelName AudioFormatPropertyID = 'c'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'cnam'
	// KAudioFormatProperty_ChannelShortName: An abbreviated name for a particular channel.
	KAudioFormatProperty_ChannelShortName AudioFormatPropertyID = '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 AudioFormatPropertyID = '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 AudioFormatPropertyID = '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 AudioFormatPropertyID = '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 AudioFormatPropertyID = 'a'<<24 | 'v'<<16 | 'e'<<8 | 'n' // 'aven'
	// KAudioFormatProperty_FirstPlayableFormatFromList: The index of the first [AudioFormatListItem] that represents an audio format.
	KAudioFormatProperty_FirstPlayableFormatFromList   AudioFormatPropertyID = 'f'<<24 | 'p'<<16 | 'f'<<8 | 'l' // 'fpfl'
	KAudioFormatProperty_FormatEmploysDependentPackets AudioFormatPropertyID = 'f'<<24 | 'd'<<16 | 'e'<<8 | 'p' // 'fdep'
	// KAudioFormatProperty_FormatInfo: General information about a format.
	KAudioFormatProperty_FormatInfo        AudioFormatPropertyID = 'f'<<24 | 'm'<<16 | 't'<<8 | 'i' // 'fmti'
	KAudioFormatProperty_FormatIsEncrypted AudioFormatPropertyID = 'c'<<24 | 'r'<<16 | 'y'<<8 | 'p' // 'cryp'
	// KAudioFormatProperty_FormatIsExternallyFramed: Indicates whether or not a format requires external framing information.
	KAudioFormatProperty_FormatIsExternallyFramed AudioFormatPropertyID = '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 AudioFormatPropertyID = 'f'<<24 | 'v'<<16 | 'b'<<8 | 'r' // 'fvbr'
	// KAudioFormatProperty_FormatList: A list of structures describing the audio formats.
	KAudioFormatProperty_FormatList AudioFormatPropertyID = 'f'<<24 | 'l'<<16 | 's'<<8 | 't' // 'flst'
	// KAudioFormatProperty_FormatName: A name for a given format.
	KAudioFormatProperty_FormatName AudioFormatPropertyID = 'f'<<24 | 'n'<<16 | 'a'<<8 | 'm' // 'fnam'
	// KAudioFormatProperty_ID3TagSize: A [UInt32] value indicating the ID3 tag size.
	KAudioFormatProperty_ID3TagSize AudioFormatPropertyID = '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 AudioFormatPropertyID = '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 AudioFormatPropertyID = 'm'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'mmap'
	// KAudioFormatProperty_NumberOfChannelsForLayout: The number of valid channels.
	KAudioFormatProperty_NumberOfChannelsForLayout AudioFormatPropertyID = 'n'<<24 | 'c'<<16 | 'h'<<8 | 'm' // 'nchm'
	// KAudioFormatProperty_OutputFormatList: A list of structures describing the audio formats.
	KAudioFormatProperty_OutputFormatList AudioFormatPropertyID = '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 AudioFormatPropertyID = 'p'<<24 | 'a'<<16 | 'n'<<8 | 'm' // 'panm'
	// KAudioFormatProperty_TagForChannelLayout: An [AudioChannelLayoutTag] value for a layout.
	KAudioFormatProperty_TagForChannelLayout AudioFormatPropertyID = 'c'<<24 | 'm'<<16 | 'p'<<8 | 't' // 'cmpt'
	// KAudioFormatProperty_TagsForNumberOfChannels: An array of AudioChannelLayoutTag values for the number of channels specified.
	KAudioFormatProperty_TagsForNumberOfChannels AudioFormatPropertyID = 't'<<24 | 'a'<<16 | 'g'<<8 | 'c' // 'tagc'
	// KAudioFormatProperty_ValidateChannelLayout: The validity of an audio channel layout structure.
	KAudioFormatProperty_ValidateChannelLayout AudioFormatPropertyID = 'v'<<24 | 'a'<<16 | 'c'<<8 | 'l' // 'vacl'
)

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

type AudioIndependentPacketTranslation struct {
	MPacket                       int64
	MIndependentlyDecodablePacket int64
}

AudioIndependentPacketTranslation

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioIndependentPacketTranslation

type AudioOutputUnitMIDICallbacks

type AudioOutputUnitMIDICallbacks struct {
	UserData unsafe.Pointer
	// C: void (*)(void *, unsigned int, unsigned int, unsigned int, unsigned int)
	MIDIEventProc uintptr
	// C: void (*)(void *, const unsigned char *, unsigned int)
	MIDISysExProc uintptr
}

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 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

type AudioPacketRollDistanceTranslation struct {
	MPacket       int64
	MRollDistance int64
}

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 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 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

const (
	// KAudioQueueParam_Pan: The stereo panning position of a source.
	KAudioQueueParam_Pan AudioQueueParameterID = 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 AudioQueueParameterID = 3
	// KAudioQueueParam_PlayRate: The playback rate for the audio queue, in the range `0.5` through `2.0`.
	KAudioQueueParam_PlayRate AudioQueueParameterID = 2
	// KAudioQueueParam_Volume: The playback volume for the audio queue, ranging from `0.0` through `1.0` on a linear scale.
	KAudioQueueParam_Volume AudioQueueParameterID = 1
	// KAudioQueueParam_VolumeRampTime: The number of seconds over which a volume change is ramped.
	KAudioQueueParam_VolumeRampTime AudioQueueParameterID = 4
)

type AudioQueueParameterValue

type AudioQueueParameterValue = float32

AudioQueueParameterValue is a [Float32] value for an audio queue parameter.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueueParameterValue

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

type AudioQueuePropertyID

type AudioQueuePropertyID = uint32

AudioQueuePropertyID is identifiers for audio queue properties.

See: https://developer.apple.com/documentation/AudioToolbox/AudioQueuePropertyID

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 AudioQueuePropertyID = '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   AudioQueuePropertyID = 'a'<<24 | 'q'<<16 | 's'<<8 | 'r' // 'aqsr'
	KAudioQueueProperty_ChannelAssignments AudioQueuePropertyID = 'a'<<24 | 'q'<<16 | 'c'<<8 | 'a' // 'aqca'
	// KAudioQueueProperty_ChannelLayout: Describes an audio queue channel layout.
	KAudioQueueProperty_ChannelLayout AudioQueuePropertyID = '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 AudioQueuePropertyID = 'q'<<24 | 'c'<<16 | 'v'<<8 | 'e' // 'qcve'
	// KAudioQueueProperty_CurrentDevice: The unique identifier (UID) of the audio hardware device.
	KAudioQueueProperty_CurrentDevice AudioQueuePropertyID = 'a'<<24 | 'q'<<16 | 'c'<<8 | 'd' // 'aqcd'
	// KAudioQueueProperty_CurrentLevelMeter: A read-only array of level meter status structures.
	KAudioQueueProperty_CurrentLevelMeter AudioQueuePropertyID = '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 AudioQueuePropertyID = '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 AudioQueuePropertyID = '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       AudioQueuePropertyID = 'a'<<24 | 'q'<<16 | 'm'<<8 | 'e' // 'aqme'
	KAudioQueueProperty_EnableTimePitch           AudioQueuePropertyID = 'q'<<24 | '_'<<16 | 't'<<8 | 'p' // 'q_tp'
	KAudioQueueProperty_IntendedSpatialExperience AudioQueuePropertyID = '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 AudioQueuePropertyID = '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 AudioQueuePropertyID = '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 AudioQueuePropertyID = 'x'<<24 | 'o'<<16 | 'p'<<8 | 's' // 'xops'
	// KAudioQueueProperty_StreamDescription: An audio queue’s data format.
	KAudioQueueProperty_StreamDescription  AudioQueuePropertyID = 'a'<<24 | 'q'<<16 | 'f'<<8 | 't' // 'aqft'
	KAudioQueueProperty_TimePitchAlgorithm AudioQueuePropertyID = 'q'<<24 | 't'<<16 | 'p'<<8 | 'a' // 'qtpa'
	KAudioQueueProperty_TimePitchBypass    AudioQueuePropertyID = 'q'<<24 | 't'<<16 | 'p'<<8 | 'b' // 'qtpb'
)

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

type AudioQueueRef uintptr

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

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 AudioServicesPropertyID = '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 AudioServicesPropertyID = 'i'<<24 | 's'<<16 | 'u'<<8 | 'i' // 'isui'
)

type AudioServicesSystemSoundCompletionProc

type AudioServicesSystemSoundCompletionProc = func(ssID uint32, clientData unsafe.Pointer)

AudioServicesSystemSoundCompletionProc is a function the system invokes when a system sound finishes playing.

See: https://developer.apple.com/documentation/AudioToolbox/AudioServicesSystemSoundCompletionProc

type AudioSessionInterruptionListener

type AudioSessionInterruptionListener = func(inClientData unsafe.Pointer, inInterruptionState uint32)

AudioSessionInterruptionListener is invoked when an audio interruption in iOS begins or ends.

See: https://developer.apple.com/documentation/AudioToolbox/AudioSessionInterruptionListener

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 AudioSessionPropertyID

type AudioSessionPropertyID = uint32

AudioSessionPropertyID is the data type for an audio session property identifier.

See: https://developer.apple.com/documentation/AudioToolbox/AudioSessionPropertyID

type AudioSessionPropertyListener

type AudioSessionPropertyListener = func(inClientData unsafe.Pointer, inID uint32, inDataSize uint32, inData unsafe.Pointer)

AudioSessionPropertyListener is invoked when an audio session property changes in iOS.

See: https://developer.apple.com/documentation/AudioToolbox/AudioSessionPropertyListener

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

type AudioUnit = unsafe.Pointer

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 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 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

type AudioUnitExternalBuffer struct {
	Buffer *uint8
	Size   uint32
}

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

type AudioUnitFrequencyResponseBin struct {
	MFrequency float64
	MMagnitude float64
}

AudioUnitFrequencyResponseBin - An audio unit’s audio level at a particular frequency.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/AudioUnitFrequencyResponseBin

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

const (
	KAUAudioMixParameter_RemixAmount           AudioUnitParameterID = 1
	KAUAudioMixParameter_Style                 AudioUnitParameterID = 0
	KAUGroupParameterID_AllNotesOff            AudioUnitParameterID = 123
	KAUGroupParameterID_AllSoundOff            AudioUnitParameterID = 120
	KAUGroupParameterID_ChannelPressure        AudioUnitParameterID = 0xd0
	KAUGroupParameterID_DataEntry              AudioUnitParameterID = 6
	KAUGroupParameterID_DataEntry_LSB          AudioUnitParameterID = 38
	KAUGroupParameterID_Expression             AudioUnitParameterID = 11
	KAUGroupParameterID_Expression_LSB         AudioUnitParameterID = 43
	KAUGroupParameterID_Foot                   AudioUnitParameterID = 4
	KAUGroupParameterID_Foot_LSB               AudioUnitParameterID = 36
	KAUGroupParameterID_KeyPressure            AudioUnitParameterID = 0xa0
	KAUGroupParameterID_KeyPressure_FirstKey   AudioUnitParameterID = 256
	KAUGroupParameterID_KeyPressure_LastKey    AudioUnitParameterID = 383
	KAUGroupParameterID_ModWheel               AudioUnitParameterID = 1
	KAUGroupParameterID_ModWheel_LSB           AudioUnitParameterID = 33
	KAUGroupParameterID_Pan                    AudioUnitParameterID = 10
	KAUGroupParameterID_Pan_LSB                AudioUnitParameterID = 42
	KAUGroupParameterID_PitchBend              AudioUnitParameterID = 0xe0
	KAUGroupParameterID_ResetAllControllers    AudioUnitParameterID = 121
	KAUGroupParameterID_Sostenuto              AudioUnitParameterID = 66
	KAUGroupParameterID_Sustain                AudioUnitParameterID = 64
	KAUGroupParameterID_Volume                 AudioUnitParameterID = 7
	KAUGroupParameterID_Volume_LSB             AudioUnitParameterID = 39
	KAULowShelfParam_CutoffFrequency           AudioUnitParameterID = 0
	KAULowShelfParam_Gain                      AudioUnitParameterID = 1
	KAUNBandEQParam_Bandwidth                  AudioUnitParameterID = 5000
	KAUNBandEQParam_BypassBand                 AudioUnitParameterID = 1000
	KAUNBandEQParam_FilterType                 AudioUnitParameterID = 2000
	KAUNBandEQParam_Frequency                  AudioUnitParameterID = 3000
	KAUNBandEQParam_Gain                       AudioUnitParameterID = 4000
	KAUNBandEQParam_GlobalGain                 AudioUnitParameterID = 0
	KAUNetReceiveParam_NumParameters           AudioUnitParameterID = 1
	KAUNetReceiveParam_Status                  AudioUnitParameterID = 0
	KAUNetSendParam_NumParameters              AudioUnitParameterID = 1
	KAUNetSendParam_Status                     AudioUnitParameterID = 0
	KAUParameterListener_AnyParameter          AudioUnitParameterID = 0xffffffff
	KAUSamplerParam_CoarseTuning               AudioUnitParameterID = 901
	KAUSamplerParam_FineTuning                 AudioUnitParameterID = 902
	KAUSamplerParam_Gain                       AudioUnitParameterID = 900
	KAUSamplerParam_Pan                        AudioUnitParameterID = 903
	KAUSoundIsolationParam_SoundToIsolate      AudioUnitParameterID = 1
	KAUSoundIsolationParam_WetDryMixPercent    AudioUnitParameterID = 0
	KBandpassParam_Bandwidth                   AudioUnitParameterID = 1
	KBandpassParam_CenterFrequency             AudioUnitParameterID = 0
	KDelayParam_DelayTime                      AudioUnitParameterID = 1
	KDelayParam_Feedback                       AudioUnitParameterID = 2
	KDelayParam_LopassCutoff                   AudioUnitParameterID = 3
	KDelayParam_WetDryMix                      AudioUnitParameterID = 0
	KDistortionParam_CubicTerm                 AudioUnitParameterID = 8
	KDistortionParam_Decay                     AudioUnitParameterID = 1
	KDistortionParam_Decimation                AudioUnitParameterID = 3
	KDistortionParam_DecimationMix             AudioUnitParameterID = 5
	KDistortionParam_Delay                     AudioUnitParameterID = 0
	KDistortionParam_DelayMix                  AudioUnitParameterID = 2
	KDistortionParam_FinalMix                  AudioUnitParameterID = 15
	KDistortionParam_LinearTerm                AudioUnitParameterID = 6
	KDistortionParam_PolynomialMix             AudioUnitParameterID = 9
	KDistortionParam_RingModBalance            AudioUnitParameterID = 12
	KDistortionParam_RingModFreq1              AudioUnitParameterID = 10
	KDistortionParam_RingModFreq2              AudioUnitParameterID = 11
	KDistortionParam_RingModMix                AudioUnitParameterID = 13
	KDistortionParam_Rounding                  AudioUnitParameterID = 4
	KDistortionParam_SoftClipGain              AudioUnitParameterID = 14
	KDistortionParam_SquaredTerm               AudioUnitParameterID = 7
	KDynamicsProcessorParam_AttackTime         AudioUnitParameterID = 4
	KDynamicsProcessorParam_CompressionAmount  AudioUnitParameterID = 1000
	KDynamicsProcessorParam_ExpansionRatio     AudioUnitParameterID = 2
	KDynamicsProcessorParam_ExpansionThreshold AudioUnitParameterID = 3
	KDynamicsProcessorParam_HeadRoom           AudioUnitParameterID = 1
	KDynamicsProcessorParam_InputAmplitude     AudioUnitParameterID = 2000
	KDynamicsProcessorParam_OutputAmplitude    AudioUnitParameterID = 3000
	KDynamicsProcessorParam_OverallGain        AudioUnitParameterID = 6
	KDynamicsProcessorParam_ReleaseTime        AudioUnitParameterID = 5
	KDynamicsProcessorParam_Threshold          AudioUnitParameterID = 0
	KGraphicEQParam_NumberOfBands              AudioUnitParameterID = 10000
	KHALOutputParam_Volume                     AudioUnitParameterID = 14
	KHighShelfParam_CutOffFrequency            AudioUnitParameterID = 0
	KHighShelfParam_Gain                       AudioUnitParameterID = 1
	KHipassParam_CutoffFrequency               AudioUnitParameterID = 0
	KHipassParam_Resonance                     AudioUnitParameterID = 1
	KLimiterParam_AttackTime                   AudioUnitParameterID = 0
	KLimiterParam_DecayTime                    AudioUnitParameterID = 1
	KLimiterParam_PreGain                      AudioUnitParameterID = 2
	KLowPassParam_CutoffFrequency              AudioUnitParameterID = 0
	KLowPassParam_Resonance                    AudioUnitParameterID = 1
	KMatrixMixerParam_Enable                   AudioUnitParameterID = 1
	KMatrixMixerParam_PostAveragePower         AudioUnitParameterID = 3000
	KMatrixMixerParam_PostAveragePowerLinear   AudioUnitParameterID = 7000
	KMatrixMixerParam_PostPeakHoldLevel        AudioUnitParameterID = 4000
	KMatrixMixerParam_PostPeakHoldLevelLinear  AudioUnitParameterID = 8000
	KMatrixMixerParam_PreAveragePower          AudioUnitParameterID = 1000
	KMatrixMixerParam_PreAveragePowerLinear    AudioUnitParameterID = 5000
	KMatrixMixerParam_PrePeakHoldLevel         AudioUnitParameterID = 2000
	KMatrixMixerParam_PrePeakHoldLevelLinear   AudioUnitParameterID = 6000
	KMatrixMixerParam_Volume                   AudioUnitParameterID = 0
	// KMultiChannelMixerParam_Enable: Enables a channel.
	KMultiChannelMixerParam_Enable AudioUnitParameterID = 1
	// KMultiChannelMixerParam_Pan: The panning value for the mixer.
	KMultiChannelMixerParam_Pan AudioUnitParameterID = 2
	// KMultiChannelMixerParam_PostAveragePower: The average power level of the channel, after the mixer, in decibels.
	KMultiChannelMixerParam_PostAveragePower AudioUnitParameterID = 3000
	// KMultiChannelMixerParam_PostPeakHoldLevel: The peak hold level of the channel, after the mixer, in decibels.
	KMultiChannelMixerParam_PostPeakHoldLevel AudioUnitParameterID = 4000
	// KMultiChannelMixerParam_PreAveragePower: The average power level of the channel, prior to the mixer, in decibels.
	KMultiChannelMixerParam_PreAveragePower AudioUnitParameterID = 1000
	// KMultiChannelMixerParam_PrePeakHoldLevel: The peak hold level of the channel, prior to the mixer, in decibels.
	KMultiChannelMixerParam_PrePeakHoldLevel AudioUnitParameterID = 2000
	// KMultiChannelMixerParam_Volume: The linear gain of the channel.
	KMultiChannelMixerParam_Volume                 AudioUnitParameterID = 0
	KMultibandCompressorParam_AttackTime           AudioUnitParameterID = 13
	KMultibandCompressorParam_CompressionAmount1   AudioUnitParameterID = 1000
	KMultibandCompressorParam_CompressionAmount2   AudioUnitParameterID = 2000
	KMultibandCompressorParam_CompressionAmount3   AudioUnitParameterID = 3000
	KMultibandCompressorParam_CompressionAmount4   AudioUnitParameterID = 4000
	KMultibandCompressorParam_Crossover1           AudioUnitParameterID = 2
	KMultibandCompressorParam_Crossover2           AudioUnitParameterID = 3
	KMultibandCompressorParam_Crossover3           AudioUnitParameterID = 4
	KMultibandCompressorParam_EQ1                  AudioUnitParameterID = 15
	KMultibandCompressorParam_EQ2                  AudioUnitParameterID = 16
	KMultibandCompressorParam_EQ3                  AudioUnitParameterID = 17
	KMultibandCompressorParam_EQ4                  AudioUnitParameterID = 18
	KMultibandCompressorParam_Headroom1            AudioUnitParameterID = 9
	KMultibandCompressorParam_Headroom2            AudioUnitParameterID = 10
	KMultibandCompressorParam_Headroom3            AudioUnitParameterID = 11
	KMultibandCompressorParam_Headroom4            AudioUnitParameterID = 12
	KMultibandCompressorParam_InputAmplitude1      AudioUnitParameterID = 5000
	KMultibandCompressorParam_InputAmplitude2      AudioUnitParameterID = 6000
	KMultibandCompressorParam_InputAmplitude3      AudioUnitParameterID = 7000
	KMultibandCompressorParam_InputAmplitude4      AudioUnitParameterID = 8000
	KMultibandCompressorParam_OutputAmplitude1     AudioUnitParameterID = 9000
	KMultibandCompressorParam_OutputAmplitude2     AudioUnitParameterID = 10000
	KMultibandCompressorParam_OutputAmplitude3     AudioUnitParameterID = 11000
	KMultibandCompressorParam_OutputAmplitude4     AudioUnitParameterID = 12000
	KMultibandCompressorParam_Postgain             AudioUnitParameterID = 1
	KMultibandCompressorParam_Pregain              AudioUnitParameterID = 0
	KMultibandCompressorParam_ReleaseTime          AudioUnitParameterID = 14
	KMultibandCompressorParam_Threshold1           AudioUnitParameterID = 5
	KMultibandCompressorParam_Threshold2           AudioUnitParameterID = 6
	KMultibandCompressorParam_Threshold3           AudioUnitParameterID = 7
	KMultibandCompressorParam_Threshold4           AudioUnitParameterID = 8
	KMultibandFilter_Bandwidth1                    AudioUnitParameterID = 5
	KMultibandFilter_Bandwidth2                    AudioUnitParameterID = 8
	KMultibandFilter_Bandwidth3                    AudioUnitParameterID = 11
	KMultibandFilter_CenterFreq1                   AudioUnitParameterID = 3
	KMultibandFilter_CenterFreq2                   AudioUnitParameterID = 6
	KMultibandFilter_CenterFreq3                   AudioUnitParameterID = 9
	KMultibandFilter_CenterGain1                   AudioUnitParameterID = 4
	KMultibandFilter_CenterGain2                   AudioUnitParameterID = 7
	KMultibandFilter_CenterGain3                   AudioUnitParameterID = 10
	KMultibandFilter_HighFilterType                AudioUnitParameterID = 12
	KMultibandFilter_HighFrequency                 AudioUnitParameterID = 13
	KMultibandFilter_HighGain                      AudioUnitParameterID = 14
	KMultibandFilter_LowFilterType                 AudioUnitParameterID = 0
	KMultibandFilter_LowFrequency                  AudioUnitParameterID = 1
	KMultibandFilter_LowGain                       AudioUnitParameterID = 2
	KMusicDeviceParam_ReverbVolume                 AudioUnitParameterID = 2
	KMusicDeviceParam_Tuning                       AudioUnitParameterID = 0
	KMusicDeviceParam_Volume                       AudioUnitParameterID = 1
	KNewTimePitchParam_EnableSpectralCoherence     AudioUnitParameterID = 6
	KNewTimePitchParam_EnableTransientPreservation AudioUnitParameterID = 7
	KNewTimePitchParam_Pitch                       AudioUnitParameterID = 1
	KNewTimePitchParam_Rate                        AudioUnitParameterID = 0
	KNewTimePitchParam_Smoothness                  AudioUnitParameterID = 4
	KPannerParam_Azimuth                           AudioUnitParameterID = 1
	KPannerParam_CoordScale                        AudioUnitParameterID = 4
	KPannerParam_Distance                          AudioUnitParameterID = 3
	KPannerParam_Elevation                         AudioUnitParameterID = 2
	KPannerParam_Gain                              AudioUnitParameterID = 0
	KPannerParam_RefDistance                       AudioUnitParameterID = 5
	KParametricEQParam_CenterFreq                  AudioUnitParameterID = 0
	KParametricEQParam_Gain                        AudioUnitParameterID = 2
	KParametricEQParam_Q                           AudioUnitParameterID = 1
	KRandomParam_BoundA                            AudioUnitParameterID = 0
	KRandomParam_BoundB                            AudioUnitParameterID = 1
	KRandomParam_Curve                             AudioUnitParameterID = 2
	KReverbParam_DryWetMix                         AudioUnitParameterID = 0
	KReverbParam_FilterBandwidth                   AudioUnitParameterID = 15
	KReverbParam_FilterEnable                      AudioUnitParameterID = 18
	KReverbParam_FilterFrequency                   AudioUnitParameterID = 14
	KReverbParam_FilterGain                        AudioUnitParameterID = 16
	KReverbParam_FilterType                        AudioUnitParameterID = 17
	KReverbParam_LargeBrightness                   AudioUnitParameterID = 10
	KReverbParam_LargeDelay                        AudioUnitParameterID = 5
	KReverbParam_LargeDelayRange                   AudioUnitParameterID = 8
	KReverbParam_LargeDensity                      AudioUnitParameterID = 7
	KReverbParam_LargeSize                         AudioUnitParameterID = 3
	KReverbParam_ModulationDepth                   AudioUnitParameterID = 13
	KReverbParam_ModulationRate                    AudioUnitParameterID = 12
	KReverbParam_PreDelay                          AudioUnitParameterID = 4
	KReverbParam_SmallBrightness                   AudioUnitParameterID = 9
	KReverbParam_SmallDelayRange                   AudioUnitParameterID = 11
	KReverbParam_SmallDensity                      AudioUnitParameterID = 6
	KReverbParam_SmallLargeMix                     AudioUnitParameterID = 1
	KReverbParam_SmallSize                         AudioUnitParameterID = 2
	KRogerBeepParam_InGateThreshold                AudioUnitParameterID = 0
	KRogerBeepParam_InGateThresholdTime            AudioUnitParameterID = 1
	KRogerBeepParam_OutGateThreshold               AudioUnitParameterID = 2
	KRogerBeepParam_OutGateThresholdTime           AudioUnitParameterID = 3
	KRogerBeepParam_RogerGain                      AudioUnitParameterID = 6
	KRogerBeepParam_RogerType                      AudioUnitParameterID = 5
	KRogerBeepParam_Sensitivity                    AudioUnitParameterID = 4
	KRoundTripAACParam_BitRate                     AudioUnitParameterID = 1
	KRoundTripAACParam_CompressedFormatSampleRate  AudioUnitParameterID = 3
	KRoundTripAACParam_EncodingStrategy            AudioUnitParameterID = 1
	KRoundTripAACParam_Format                      AudioUnitParameterID = 0
	KRoundTripAACParam_Quality                     AudioUnitParameterID = 2
	KRoundTripAACParam_RateOrQuality               AudioUnitParameterID = 2
	KSampleDelayParam_DelayFrames                  AudioUnitParameterID = 0
	KSpatialMixerParam_Azimuth                     AudioUnitParameterID = 0
	KSpatialMixerParam_Distance                    AudioUnitParameterID = 2
	KSpatialMixerParam_Elevation                   AudioUnitParameterID = 1
	KSpatialMixerParam_Enable                      AudioUnitParameterID = 5
	KSpatialMixerParam_Gain                        AudioUnitParameterID = 3
	KSpatialMixerParam_GlobalReverbGain            AudioUnitParameterID = 9
	KSpatialMixerParam_HeadPitch                   AudioUnitParameterID = 20
	KSpatialMixerParam_HeadRoll                    AudioUnitParameterID = 21
	KSpatialMixerParam_HeadYaw                     AudioUnitParameterID = 19
	KSpatialMixerParam_MaxGain                     AudioUnitParameterID = 7
	KSpatialMixerParam_MinGain                     AudioUnitParameterID = 6
	KSpatialMixerParam_ObstructionAttenuation      AudioUnitParameterID = 11
	KSpatialMixerParam_OcclusionAttenuation        AudioUnitParameterID = 10
	KSpatialMixerParam_PlaybackRate                AudioUnitParameterID = 4
	KSpatialMixerParam_ReverbBlend                 AudioUnitParameterID = 8
	KStereoMixerParam_Pan                          AudioUnitParameterID = 1
	KStereoMixerParam_PostAveragePower             AudioUnitParameterID = 3000
	KStereoMixerParam_PostPeakHoldLevel            AudioUnitParameterID = 4000
	KStereoMixerParam_PreAveragePower              AudioUnitParameterID = 1000
	KStereoMixerParam_PrePeakHoldLevel             AudioUnitParameterID = 2000
	KStereoMixerParam_Volume                       AudioUnitParameterID = 0
	KTimePitchParam_EffectBlend                    AudioUnitParameterID = 2
	KTimePitchParam_Pitch                          AudioUnitParameterID = 1
	KTimePitchParam_Rate                           AudioUnitParameterID = 0
	KVarispeedParam_PlaybackCents                  AudioUnitParameterID = 1
	KVarispeedParam_PlaybackRate                   AudioUnitParameterID = 0
	// Deprecated: use KDynamicsProcessorParam_OverallGain.
	KDynamicsProcessorParam_MasterGain AudioUnitParameterID = 6
	// Deprecated: use KNewTimePitchParam_EnableSpectralCoherence.
	KNewTimePitchParam_EnablePeakLocking AudioUnitParameterID = 6
	// Deprecated: use KNewTimePitchParam_Smoothness.
	KNewTimePitchParam_Overlap AudioUnitParameterID = 4
)

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.

It panics if AUParameterValueFromLinear is unavailable at run time; use TryAUParameterValueFromLinear to get an error instead.

See: https://developer.apple.com/documentation/AudioToolbox/AUParameterValueFromLinear(_:_:)

func TryAUParameterValueFromLinear

func TryAUParameterValueFromLinear(inLinearValue float32, inParameter *AudioUnitParameter) (AudioUnitParameterValue, error)

TryAUParameterValueFromLinear is like AUParameterValueFromLinear but returns an error instead of panicking if AUParameterValueFromLinear is unavailable at run time.

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 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

const (
	KAUAudioMixProperty_EnableSpatialization    AudioUnitPropertyID = 5001
	KAUAudioMixProperty_SpatialAudioMixMetadata AudioUnitPropertyID = 5000
	KAUMIDISynthProperty_EnablePreload          AudioUnitPropertyID = 4119
	KAUNBandEQProperty_BiquadCoefficients       AudioUnitPropertyID = 2203
	KAUNBandEQProperty_MaxNumberOfBands         AudioUnitPropertyID = 2201
	KAUNBandEQProperty_NumberOfBands            AudioUnitPropertyID = 2200
	KAUNetReceiveProperty_Hostname              AudioUnitPropertyID = 3511
	KAUNetReceiveProperty_Password              AudioUnitPropertyID = 3512
	KAUNetSendNumPresetFormats                  AudioUnitPropertyID = 18
	KAUNetSendPresetFormat_AAC_128kbpspc        AudioUnitPropertyID = 7
	KAUNetSendPresetFormat_AAC_32kbpspc         AudioUnitPropertyID = 13
	KAUNetSendPresetFormat_AAC_40kbpspc         AudioUnitPropertyID = 12
	KAUNetSendPresetFormat_AAC_48kbpspc         AudioUnitPropertyID = 11
	KAUNetSendPresetFormat_AAC_64kbpspc         AudioUnitPropertyID = 10
	KAUNetSendPresetFormat_AAC_80kbpspc         AudioUnitPropertyID = 9
	KAUNetSendPresetFormat_AAC_96kbpspc         AudioUnitPropertyID = 8
	KAUNetSendPresetFormat_AAC_LD_32kbpspc      AudioUnitPropertyID = 17
	KAUNetSendPresetFormat_AAC_LD_40kbpspc      AudioUnitPropertyID = 16
	KAUNetSendPresetFormat_AAC_LD_48kbpspc      AudioUnitPropertyID = 15
	KAUNetSendPresetFormat_AAC_LD_64kbpspc      AudioUnitPropertyID = 14
	KAUNetSendPresetFormat_IMA4                 AudioUnitPropertyID = 6
	KAUNetSendPresetFormat_Lossless16           AudioUnitPropertyID = 4
	KAUNetSendPresetFormat_Lossless24           AudioUnitPropertyID = 3
	KAUNetSendPresetFormat_PCMFloat32           AudioUnitPropertyID = 0
	KAUNetSendPresetFormat_PCMInt16             AudioUnitPropertyID = 2
	KAUNetSendPresetFormat_PCMInt24             AudioUnitPropertyID = 1
	KAUNetSendPresetFormat_ULaw                 AudioUnitPropertyID = 5
	KAUNetSendProperty_Disconnect               AudioUnitPropertyID = 3517
	KAUNetSendProperty_Password                 AudioUnitPropertyID = 3518
	KAUNetSendProperty_PortNum                  AudioUnitPropertyID = 3513
	KAUNetSendProperty_ServiceName              AudioUnitPropertyID = 3516
	KAUNetSendProperty_TransmissionFormat       AudioUnitPropertyID = 3514
	KAUNetSendProperty_TransmissionFormatIndex  AudioUnitPropertyID = 3515
	KAUSamplerProperty_BankAndPreset            AudioUnitPropertyID = 4100
	KAUSamplerProperty_LoadAudioFiles           AudioUnitPropertyID = 4101
	KAUSamplerProperty_LoadInstrument           AudioUnitPropertyID = 4102
	KAUSamplerProperty_LoadPresetFromBank       AudioUnitPropertyID = 4100
	// KAUVoiceIOProperty_BypassVoiceProcessing: A property that bypasses all processing for microphone uplink done by the voice processing unit.
	KAUVoiceIOProperty_BypassVoiceProcessing AudioUnitPropertyID = 2100
	// KAUVoiceIOProperty_MuteOutput: A property to mute the output of the processed microphone uplink.
	KAUVoiceIOProperty_MuteOutput AudioUnitPropertyID = 2104
	// 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 AudioUnitPropertyID = 2106
	KAUVoiceIOProperty_OtherAudioDuckingConfiguration   AudioUnitPropertyID = 2108
	// KAUVoiceIOProperty_VoiceProcessingEnableAGC: A property to enable automatic gain control on the processed microphone uplink.
	KAUVoiceIOProperty_VoiceProcessingEnableAGC AudioUnitPropertyID = 2101
	KAUVoiceIOProperty_VoiceProcessingQuality   AudioUnitPropertyID = 2103
	KAudioOfflineUnitProperty_InputSize         AudioUnitPropertyID = 3020
	KAudioOfflineUnitProperty_OutputSize        AudioUnitPropertyID = 3021
	KAudioOutputUnitProperty_ChannelMap         AudioUnitPropertyID = 2002
	// KAudioOutputUnitProperty_CurrentDevice: A read/write audio device ID object, of type [AudioDeviceID], valid on the audio unit global scope.
	KAudioOutputUnitProperty_CurrentDevice AudioUnitPropertyID = 2000
	// KAudioOutputUnitProperty_EnableIO: Specifies whether audio I/O is enabled for an I/O unit bus-scope combination.
	KAudioOutputUnitProperty_EnableIO                        AudioUnitPropertyID = 2003
	KAudioOutputUnitProperty_HasIO                           AudioUnitPropertyID = 2006
	KAudioOutputUnitProperty_HostReceivesRemoteControlEvents AudioUnitPropertyID = 2011
	KAudioOutputUnitProperty_HostTransportState              AudioUnitPropertyID = 2013
	KAudioOutputUnitProperty_IntendedSpatialExperience       AudioUnitPropertyID = 2016
	// KAudioOutputUnitProperty_IsRunning: Indicates whether an audio unit is running ([TRUE]) or not ([FALSE]).
	KAudioOutputUnitProperty_IsRunning                AudioUnitPropertyID = 2001
	KAudioOutputUnitProperty_MIDICallbacks            AudioUnitPropertyID = 2010
	KAudioOutputUnitProperty_NodeComponentDescription AudioUnitPropertyID = 2014
	// KAudioOutputUnitProperty_OSWorkgroup: The workgroup associated with the audio device underlying this Audio Unit.
	KAudioOutputUnitProperty_OSWorkgroup         AudioUnitPropertyID = 2015
	KAudioOutputUnitProperty_RemoteControlToHost AudioUnitPropertyID = 2012
	// KAudioOutputUnitProperty_SetInputCallback: A read/write [AURenderCallbackStruct] data structure valid on the audio unit global scope.
	KAudioOutputUnitProperty_SetInputCallback AudioUnitPropertyID = 2005
	// KAudioOutputUnitProperty_StartTime: A write-only [AudioOutputUnitStartAtTimeParams] data structure valid on the audio unit global scope.
	KAudioOutputUnitProperty_StartTime AudioUnitPropertyID = 2004
	// KAudioOutputUnitProperty_StartTimestampsAtZero: A read/write [UInt32] value valid on the audio unit global scope.
	KAudioOutputUnitProperty_StartTimestampsAtZero  AudioUnitPropertyID = 2007
	KAudioUnitMigrateProperty_FromPlugin            AudioUnitPropertyID = 4000
	KAudioUnitMigrateProperty_OldAutomation         AudioUnitPropertyID = 4001
	KAudioUnitOfflineProperty_InputSize             AudioUnitPropertyID = 3020
	KAudioUnitOfflineProperty_OutputSize            AudioUnitPropertyID = 3021
	KAudioUnitOfflineProperty_PreflightName         AudioUnitPropertyID = 3024
	KAudioUnitOfflineProperty_PreflightRequirements AudioUnitPropertyID = 3023
	KAudioUnitOfflineProperty_StartOffset           AudioUnitPropertyID = 3022
	KAudioUnitProperty_3DMixerAttenuationCurve      AudioUnitPropertyID = 3013
	KAudioUnitProperty_3DMixerDistanceAtten         AudioUnitPropertyID = 3004
	KAudioUnitProperty_3DMixerDistanceParams        AudioUnitPropertyID = 3010
	KAudioUnitProperty_3DMixerRenderingFlags        AudioUnitPropertyID = 3003
	KAudioUnitProperty_AUHostIdentifier             AudioUnitPropertyID = 46
	KAudioUnitProperty_AddParameterMIDIMapping      AudioUnitPropertyID = 42
	KAudioUnitProperty_AllParameterMIDIMappings     AudioUnitPropertyID = 41
	// KAudioUnitProperty_AudioChannelLayout: A read/write [AudioChannelLayout] data structure valid on the audio unit input and output scopes.
	KAudioUnitProperty_AudioChannelLayout    AudioUnitPropertyID = 19
	KAudioUnitProperty_AudioUnitMIDIProtocol AudioUnitPropertyID = 64
	KAudioUnitProperty_BusCount              AudioUnitPropertyID = 11
	// KAudioUnitProperty_BypassEffect: A read/write [UInt32] value, representing a Boolean value, valid on the audio unit global scope.
	KAudioUnitProperty_BypassEffect AudioUnitPropertyID = 21
	// KAudioUnitProperty_CPULoad: A read-only [Float64] value valid on the audio unit global scope.
	KAudioUnitProperty_CPULoad AudioUnitPropertyID = 6
	// KAudioUnitProperty_ClassInfo: Describes the state of an audio unit.
	KAudioUnitProperty_ClassInfo AudioUnitPropertyID = 0
	// KAudioUnitProperty_ClassInfoFromDocument: A read/write CFDictionary object, valid on the audio unit global scope.
	KAudioUnitProperty_ClassInfoFromDocument AudioUnitPropertyID = 50
	// KAudioUnitProperty_CocoaUI: A read-only [AudioUnitCocoaViewInfo] data structure valid on the audio unit global scope.
	KAudioUnitProperty_CocoaUI                      AudioUnitPropertyID = 31
	KAudioUnitProperty_ContextName                  AudioUnitPropertyID = 25
	KAudioUnitProperty_CurrentPlayTime              AudioUnitPropertyID = 3302
	KAudioUnitProperty_CurrentPreset                AudioUnitPropertyID = 28
	KAudioUnitProperty_DeferredRendererExtraLatency AudioUnitPropertyID = 3321
	KAudioUnitProperty_DeferredRendererPullSize     AudioUnitPropertyID = 3320
	KAudioUnitProperty_DeferredRendererWaitFrames   AudioUnitPropertyID = 3322
	KAudioUnitProperty_DependentParameters          AudioUnitPropertyID = 45
	KAudioUnitProperty_DistanceAttenuationData      AudioUnitPropertyID = 3600
	KAudioUnitProperty_DopplerShift                 AudioUnitPropertyID = 3002
	// KAudioUnitProperty_ElementCount: A read/write [UInt32] value valid on any audio unit scope.
	KAudioUnitProperty_ElementCount AudioUnitPropertyID = 11
	// KAudioUnitProperty_ElementName: The name of the specified element.
	KAudioUnitProperty_ElementName AudioUnitPropertyID = 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 AudioUnitPropertyID = 24
	// KAudioUnitProperty_FastDispatch: A read-only `void *` value valid on the audio unit global scope.
	KAudioUnitProperty_FastDispatch               AudioUnitPropertyID = 5
	KAudioUnitProperty_FrequencyResponse          AudioUnitPropertyID = 52
	KAudioUnitProperty_GetUIComponentList         AudioUnitPropertyID = 18
	KAudioUnitProperty_HostCallbacks              AudioUnitPropertyID = 27
	KAudioUnitProperty_HostMIDIProtocol           AudioUnitPropertyID = 65
	KAudioUnitProperty_HotMapParameterMIDIMapping AudioUnitPropertyID = 44
	KAudioUnitProperty_IconLocation               AudioUnitPropertyID = 39
	// KAudioUnitProperty_InPlaceProcessing: A read/write [UInt32] value, representing a Boolean value, valid on the audio unit global scope.
	KAudioUnitProperty_InPlaceProcessing    AudioUnitPropertyID = 29
	KAudioUnitProperty_InputAnchorTimeStamp AudioUnitPropertyID = 3016
	// KAudioUnitProperty_InputSamplesInOutput: A read/write AUInputSamplesInOutputCallbackStruct struct, valid on the audio unit global scope.
	KAudioUnitProperty_InputSamplesInOutput AudioUnitPropertyID = 49
	KAudioUnitProperty_IsInterAppConnected  AudioUnitPropertyID = 101
	// KAudioUnitProperty_LastRenderError: A read-only [OSStatus] value valid on the audio unit global scope.
	KAudioUnitProperty_LastRenderError      AudioUnitPropertyID = 22
	KAudioUnitProperty_LastRenderSampleTime AudioUnitPropertyID = 61
	// KAudioUnitProperty_Latency: A read-only [Float64] value valid on the audio unit global scope.
	KAudioUnitProperty_Latency                  AudioUnitPropertyID = 12
	KAudioUnitProperty_LoadedOutOfProcess       AudioUnitPropertyID = 62
	KAudioUnitProperty_MIDIControlMapping       AudioUnitPropertyID = 17
	KAudioUnitProperty_MIDIOutputBufferSizeHint AudioUnitPropertyID = 66
	// KAudioUnitProperty_MIDIOutputCallback: A write-only AUMIDIOutputCallbackStruct struct, valid on the audio unit global scope.
	KAudioUnitProperty_MIDIOutputCallback AudioUnitPropertyID = 48
	// KAudioUnitProperty_MIDIOutputCallbackInfo: A read-only CFArray object valid on the audio unit global scope.
	KAudioUnitProperty_MIDIOutputCallbackInfo      AudioUnitPropertyID = 47
	KAudioUnitProperty_MIDIOutputEventListCallback AudioUnitPropertyID = 63
	// KAudioUnitProperty_MakeConnection: A write-only AudioUnitConnection data structure valid on the audio unit input scope.
	KAudioUnitProperty_MakeConnection AudioUnitPropertyID = 1
	// KAudioUnitProperty_MatrixDimensions: Indicates the total number of channels for input and output of a given matrix mixer.
	KAudioUnitProperty_MatrixDimensions AudioUnitPropertyID = 3009
	// KAudioUnitProperty_MatrixLevels: Describes the internal state of a matrix mixer.
	KAudioUnitProperty_MatrixLevels AudioUnitPropertyID = 3006
	// 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 AudioUnitPropertyID = 14
	// KAudioUnitProperty_MeterClipping: Indicates audio clipping that has occurred since this property was last accessed.
	KAudioUnitProperty_MeterClipping AudioUnitPropertyID = 3011
	// KAudioUnitProperty_MeteringMode: Specifies whether metering is enabled or disabled for a particular scope-element combination.
	KAudioUnitProperty_MeteringMode  AudioUnitPropertyID = 3007
	KAudioUnitProperty_NickName      AudioUnitPropertyID = 54
	KAudioUnitProperty_OfflineRender AudioUnitPropertyID = 37
	KAudioUnitProperty_PannerMode    AudioUnitPropertyID = 3008
	// KAudioUnitProperty_ParameterClumpName: A read-only [AudioUnitParameterNameInfo] struct, valid on any audio unit scope.
	KAudioUnitProperty_ParameterClumpName AudioUnitPropertyID = 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 AudioUnitPropertyID = 53
	// KAudioUnitProperty_ParameterIDName: A shortened version of an audio unit parameter name, suitable for compact display situations.
	KAudioUnitProperty_ParameterIDName AudioUnitPropertyID = 34
	KAudioUnitProperty_ParameterInfo   AudioUnitPropertyID = 4
	// KAudioUnitProperty_ParameterList: A list of read-only parameter ID values valid on any audio unit scope.
	KAudioUnitProperty_ParameterList AudioUnitPropertyID = 3
	// KAudioUnitProperty_ParameterStringFromValue: A read-only AudioUnitParameterStringFromValue struct, valid on any audio unit scope.
	KAudioUnitProperty_ParameterStringFromValue AudioUnitPropertyID = 33
	KAudioUnitProperty_ParameterValueFromString AudioUnitPropertyID = 38
	KAudioUnitProperty_ParameterValueName       AudioUnitPropertyID = 33
	// KAudioUnitProperty_ParameterValueStrings: An array of names for a named, indexed audio unit parameter.
	KAudioUnitProperty_ParameterValueStrings AudioUnitPropertyID = 16
	KAudioUnitProperty_ParametersForOverview AudioUnitPropertyID = 57
	KAudioUnitProperty_PeerURL               AudioUnitPropertyID = 102
	// KAudioUnitProperty_PresentPreset: The active factory preset for an audio unit.
	KAudioUnitProperty_PresentPreset              AudioUnitPropertyID = 36
	KAudioUnitProperty_PresentationLatency        AudioUnitPropertyID = 40
	KAudioUnitProperty_RemoteControlEventListener AudioUnitPropertyID = 100
	KAudioUnitProperty_RemoveParameterMIDIMapping AudioUnitPropertyID = 43
	// KAudioUnitProperty_RenderContextObserver: The block that the system calls when the rendering context changes.
	KAudioUnitProperty_RenderContextObserver AudioUnitPropertyID = 60
	// KAudioUnitProperty_RenderQuality: A read/write [UInt32] value valid on the audio unit global scope.
	KAudioUnitProperty_RenderQuality                 AudioUnitPropertyID = 26
	KAudioUnitProperty_RequestViewController         AudioUnitPropertyID = 56
	KAudioUnitProperty_ReverbPreset                  AudioUnitPropertyID = 3012
	KAudioUnitProperty_ReverbRoomType                AudioUnitPropertyID = 10
	KAudioUnitProperty_SRCAlgorithm                  AudioUnitPropertyID = 9
	KAudioUnitProperty_SampleRate                    AudioUnitPropertyID = 2
	KAudioUnitProperty_SampleRateConverterComplexity AudioUnitPropertyID = 3014
	KAudioUnitProperty_ScheduleAudioSlice            AudioUnitPropertyID = 3300
	KAudioUnitProperty_ScheduleStartTimeStamp        AudioUnitPropertyID = 3301
	KAudioUnitProperty_ScheduledFileBufferSizeFrames AudioUnitPropertyID = 3313
	KAudioUnitProperty_ScheduledFileIDs              AudioUnitPropertyID = 3310
	KAudioUnitProperty_ScheduledFileNumberBuffers    AudioUnitPropertyID = 3314
	KAudioUnitProperty_ScheduledFilePrime            AudioUnitPropertyID = 3312
	KAudioUnitProperty_ScheduledFileRegion           AudioUnitPropertyID = 3311
	KAudioUnitProperty_SetExternalBuffer             AudioUnitPropertyID = 15
	KAudioUnitProperty_SetRenderCallback             AudioUnitPropertyID = 23
	// KAudioUnitProperty_ShouldAllocateBuffer: A read/write [UInt32] value valid on the audio unit input and output scopes, settable individually on each element.
	KAudioUnitProperty_ShouldAllocateBuffer                        AudioUnitPropertyID = 51
	KAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF AudioUnitPropertyID = 3116
	KAudioUnitProperty_SpatialMixerAttenuationCurve                AudioUnitPropertyID = 3013
	KAudioUnitProperty_SpatialMixerDistanceParams                  AudioUnitPropertyID = 3010
	KAudioUnitProperty_SpatialMixerEnableHeadTracking              AudioUnitPropertyID = 3111
	KAudioUnitProperty_SpatialMixerOutputType                      AudioUnitPropertyID = 3100
	KAudioUnitProperty_SpatialMixerPersonalizedHRTFMode            AudioUnitPropertyID = 3113
	KAudioUnitProperty_SpatialMixerPointSourceInHeadMode           AudioUnitPropertyID = 3103
	KAudioUnitProperty_SpatialMixerRenderingFlags                  AudioUnitPropertyID = 3003
	KAudioUnitProperty_SpatialMixerSourceMode                      AudioUnitPropertyID = 3005
	KAudioUnitProperty_SpatializationAlgorithm                     AudioUnitPropertyID = 3000
	KAudioUnitProperty_SpeakerConfiguration                        AudioUnitPropertyID = 3001
	KAudioUnitProperty_StreamFormat                                AudioUnitPropertyID = 8
	// KAudioUnitProperty_SupportedChannelLayoutTags: A read-only array on [AudioChannelLayoutTag] structures, valid on the audio unit input and output scopes.
	KAudioUnitProperty_SupportedChannelLayoutTags AudioUnitPropertyID = 32
	// KAudioUnitProperty_SupportedNumChannels: A read-only array of channel information structures valid on the audio unit global scope.
	KAudioUnitProperty_SupportedNumChannels AudioUnitPropertyID = 13
	KAudioUnitProperty_SupportsMPE          AudioUnitPropertyID = 58
	// KAudioUnitProperty_TailTime: A read-only [Float64] value valid on the audio unit global scope.
	KAudioUnitProperty_TailTime                AudioUnitPropertyID = 20
	KAudioUnitProperty_UsesInternalReverb      AudioUnitPropertyID = 1005
	KMusicDeviceProperty_BankName              AudioUnitPropertyID = 1007
	KMusicDeviceProperty_DualSchedulingMode    AudioUnitPropertyID = 1013
	KMusicDeviceProperty_GroupOutputBus        AudioUnitPropertyID = 1002
	KMusicDeviceProperty_InstrumentCount       AudioUnitPropertyID = 1000
	KMusicDeviceProperty_InstrumentName        AudioUnitPropertyID = 1001
	KMusicDeviceProperty_InstrumentNumber      AudioUnitPropertyID = 1004
	KMusicDeviceProperty_MIDIXMLNames          AudioUnitPropertyID = 1006
	KMusicDeviceProperty_PartGroup             AudioUnitPropertyID = 1010
	KMusicDeviceProperty_SoundBankData         AudioUnitPropertyID = 1008
	KMusicDeviceProperty_SoundBankFSRef        AudioUnitPropertyID = 1012
	KMusicDeviceProperty_SoundBankFSSpec       AudioUnitPropertyID = 1003
	KMusicDeviceProperty_SoundBankURL          AudioUnitPropertyID = 1100
	KMusicDeviceProperty_StreamFromDisk        AudioUnitPropertyID = 1011
	KMusicDeviceProperty_SupportsStartStopNote AudioUnitPropertyID = 1014
	KMusicDeviceProperty_UsesInternalReverb    AudioUnitPropertyID = 1005
)

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

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

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 AudioUnitScope

type AudioUnitScope = uint32

AudioUnitScope is the data type for audio unit scope identifiers.

See: https://developer.apple.com/documentation/AudioToolbox/AudioUnitScope

const (
	KAudioUnitScope_Global AudioUnitScope = 0
	// KAudioUnitScope_Group: In macOS, a context specific to the control scope of audio unit parameters.
	KAudioUnitScope_Group AudioUnitScope = 3
	// KAudioUnitScope_Input: The context for audio data coming into an audio unit.
	KAudioUnitScope_Input     AudioUnitScope = 1
	KAudioUnitScope_Layer     AudioUnitScope = 6
	KAudioUnitScope_LayerItem AudioUnitScope = 7
	// KAudioUnitScope_Note: In macOS, a scope for changes to an individual musical note.
	KAudioUnitScope_Note AudioUnitScope = 5
	// KAudioUnitScope_Output: The context for audio data leaving an audio unit.
	KAudioUnitScope_Output AudioUnitScope = 2
	KAudioUnitScope_Part   AudioUnitScope = 4
)

type BoolAUHostTransportStateFlagsHandler

type BoolAUHostTransportStateFlagsHandler = func([]float64, []float64, []float64) bool

BoolAUHostTransportStateFlagsHandler is the signature for a completion handler block.

type BoolFloat64Handler

type BoolFloat64Handler = func([]float64, *int, []float64, *int, []float64) bool

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 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 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 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

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

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) MChannel

func (s *CAFMarker) MChannel() uint32

MChannel returns the MChannel field from the record's packed storage.

func (*CAFMarker) MFramePosition

func (s *CAFMarker) MFramePosition() float64

MFramePosition returns the MFramePosition field from the record's packed storage.

func (*CAFMarker) MMarkerID

func (s *CAFMarker) MMarkerID() uint32

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) MType

func (s *CAFMarker) MType() uint32

MType returns the MType field from the record's packed storage.

func (*CAFMarker) SetMChannel

func (s *CAFMarker) SetMChannel(v uint32)

SetMChannel updates the MChannel field in the record's packed storage.

func (*CAFMarker) SetMFramePosition

func (s *CAFMarker) SetMFramePosition(v float64)

SetMFramePosition updates the MFramePosition field in the record's packed storage.

func (*CAFMarker) SetMMarkerID

func (s *CAFMarker) SetMMarkerID(v uint32)

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.

func (*CAFMarker) SetMType

func (s *CAFMarker) SetMType(v uint32)

SetMType updates the MType 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) MMarkers

func (s *CAFRegion) MMarkers() [1]CAFMarker

MMarkers returns the MMarkers field from the record's packed storage.

func (*CAFRegion) MNumberMarkers

func (s *CAFRegion) MNumberMarkers() uint32

MNumberMarkers returns the MNumberMarkers field from the record's packed storage.

func (*CAFRegion) MRegionID

func (s *CAFRegion) MRegionID() uint32

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

func (s *CAFRegion) SetMMarkers(v [1]CAFMarker)

SetMMarkers updates the MMarkers field in the record's packed storage.

func (*CAFRegion) SetMNumberMarkers

func (s *CAFRegion) SetMNumberMarkers(v uint32)

SetMNumberMarkers updates the MNumberMarkers field in the record's packed storage.

func (*CAFRegion) SetMRegionID

func (s *CAFRegion) SetMRegionID(v uint32)

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 ExtAudioFilePacketTableInfoOverride

type ExtAudioFilePacketTableInfoOverride = int32

See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFilePacketTableInfoOverride

const (
	KExtAudioFilePacketTableInfoOverride_UseFileValue        ExtAudioFilePacketTableInfoOverride = -1
	KExtAudioFilePacketTableInfoOverride_UseFileValueIfValid ExtAudioFilePacketTableInfoOverride = -2
)

type ExtAudioFilePropertyID

type ExtAudioFilePropertyID = uint32

ExtAudioFilePropertyID is an audio file object property identifier.

See: https://developer.apple.com/documentation/AudioToolbox/ExtAudioFilePropertyID

const (
	// KExtAudioFileProperty_AudioConverter: The audio converter object associated with the extended audio file object, if a converter is associated.
	KExtAudioFileProperty_AudioConverter ExtAudioFilePropertyID = 'a'<<24 | 'c'<<16 | 'n'<<8 | 'v' // 'acnv'
	// KExtAudioFileProperty_AudioFile: The audio file object associated with the extended audio file object.
	KExtAudioFileProperty_AudioFile ExtAudioFilePropertyID = 'a'<<24 | 'f'<<16 | 'i'<<8 | 'l' // 'afil'
	// KExtAudioFileProperty_ClientChannelLayout: The audio channel layout for your application.
	KExtAudioFileProperty_ClientChannelLayout ExtAudioFilePropertyID = 'c'<<24 | 'c'<<16 | 'l'<<8 | 'o' // 'cclo'
	// KExtAudioFileProperty_ClientDataFormat: The audio stream format for your application.
	KExtAudioFileProperty_ClientDataFormat ExtAudioFilePropertyID = 'c'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'cfmt'
	// KExtAudioFileProperty_ClientMaxPacketSize: Your application audio data format’s maximum packet size, in bytes.
	KExtAudioFileProperty_ClientMaxPacketSize ExtAudioFilePropertyID = '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 ExtAudioFilePropertyID = '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 ExtAudioFilePropertyID = 'a'<<24 | 'c'<<16 | 'c'<<8 | 'f' // 'accf'
	// KExtAudioFileProperty_FileChannelLayout: A file’s channel layout.
	KExtAudioFileProperty_FileChannelLayout ExtAudioFilePropertyID = 'f'<<24 | 'c'<<16 | 'l'<<8 | 'o' // 'fclo'
	// KExtAudioFileProperty_FileDataFormat: A file’s data format.
	KExtAudioFileProperty_FileDataFormat ExtAudioFilePropertyID = 'f'<<24 | 'f'<<16 | 'm'<<8 | 't' // 'ffmt'
	// KExtAudioFileProperty_FileLengthFrames: The associated audio file’s length in sample frames.
	KExtAudioFileProperty_FileLengthFrames ExtAudioFilePropertyID = '#'<<24 | 'f'<<16 | 'r'<<8 | 'm' // '#frm'
	// KExtAudioFileProperty_FileMaxPacketSize: The file data format’s maximum packet size, in bytes.
	KExtAudioFileProperty_FileMaxPacketSize ExtAudioFilePropertyID = 'f'<<24 | 'm'<<16 | 'p'<<8 | 's' // 'fmps'
	// KExtAudioFileProperty_IOBuffer: An audio data buffer.
	KExtAudioFileProperty_IOBuffer ExtAudioFilePropertyID = '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 ExtAudioFilePropertyID = '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 ExtAudioFilePropertyID = 'x'<<24 | 'p'<<16 | 't'<<8 | 'i' // 'xpti'
)

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 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].
	// C: HostCallback_GetBeatAndTempo (int (*)(void *, double *, double *))
	BeatAndTempoProc uintptr // Your callback function that provides beat and tempo information to an audio unit. May be [NULL].
	// C: HostCallback_GetMusicalTimeLocation (int (*)(void *, unsigned int *, float *, unsigned int *, double *))
	MusicalTimeLocationProc uintptr // Your callback function that provides musical timeline information to an audio unit. May be [NULL].
	// C: HostCallback_GetTransportState (int (*)(void *, unsigned char *, unsigned char *, double *, unsigned char *, double *, double *))
	TransportStateProc uintptr // Your callback function that provides audio transport state information (play, rewind, and so on) to an audio unit. May be [NULL].
	// C: HostCallback_GetTransportState2 (int (*)(void *, unsigned char *, unsigned char *, unsigned char *, double *, unsigned char *, double *, double *))
	TransportStateProc2 uintptr
}

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 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
	// Sets the Boolean value of the [renderResourcesAllocated](<https://developer.apple.com/documentation/AudioToolbox/AUAudioUnit/renderResourcesAllocated>) property.
	SetRenderResourcesAllocated(flag 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.TimeInterval
	// The audio unit’s tail time, in seconds.
	TailTime() foundation.TimeInterval
	// 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() Uint8Uint8MIDICIProfileBoolHandler
	SetProfileChangedBlock(value Uint8Uint8MIDICIProfileBoolHandler)

	// 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.TimeInterval
	// The audio devic’s output latency, in seconds.
	DeviceOutputLatency() foundation.TimeInterval
	// 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

Returning the Audio Busses

Customizing the Audio Unit Behavior

Querying Parameters

Providing Data to the Host

Managing MIDI Events

Managing Presets

Managing the Render Cycle

Messaging Channels

Optimizing Performance

Describing the Audio Unit

Configuring the Channel Capabilities

Configuring the Device

Configuring the User Interface

Getting the Runtime Behavior

Instance properties

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.TimeInterval
	SetContextPresentationLatency(value foundation.TimeInterval)
	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

Audio Unit Implementations

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

Bus Array Methods and Properties

Audio Unit Implementations

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

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

Managing Parameter Values

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

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

Observers

Audio Unit Implementations

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

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

type Int64Uint32Uint64Float32Handler = func(int64, uint32, uint64, float32)

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

IntAudioUnitRenderActionFlagsHandler handles completion with primitive and object results.

type IntInt64Handler

type IntInt64Handler = func(int64) int

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 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 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 KAUSoundIsolationSoundType

type KAUSoundIsolationSoundType int
const (
	KAUSoundIsolationSoundType_HighQualityVoice KAUSoundIsolationSoundType = 0
	KAUSoundIsolationSoundType_Voice            KAUSoundIsolationSoundType = 1
)

func (KAUSoundIsolationSoundType) 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

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

type KAudioCodecGetPropertyInfoSelectConstants

type KAudioCodecGetPropertyInfoSelectConstants uint32
const (
	KAudioCodecAppendInputBufferListSelect   KAudioCodecGetPropertyInfoSelectConstants = 0x9
	KAudioCodecAppendInputDataSelect         KAudioCodecGetPropertyInfoSelectConstants = 0x6
	KAudioCodecGetPropertyInfoSelect         KAudioCodecGetPropertyInfoSelectConstants = 0x1
	KAudioCodecGetPropertySelect             KAudioCodecGetPropertyInfoSelectConstants = 0x2
	KAudioCodecInitializeSelect              KAudioCodecGetPropertyInfoSelectConstants = 0x4
	KAudioCodecProduceOutputBufferListSelect KAudioCodecGetPropertyInfoSelectConstants = 0xa
	KAudioCodecProduceOutputDataSelect       KAudioCodecGetPropertyInfoSelectConstants = 0x7
	KAudioCodecResetSelect                   KAudioCodecGetPropertyInfoSelectConstants = 0x8
	KAudioCodecSetPropertySelect             KAudioCodecGetPropertyInfoSelectConstants = 0x3
	KAudioCodecUninitializeSelect            KAudioCodecGetPropertyInfoSelectConstants = 0x5
)

func (KAudioCodecGetPropertyInfoSelectConstants) String

type KAudioCodecNoErrorConstants

type KAudioCodecNoErrorConstants int32
const (
	KAudioCodecBadDataError              KAudioCodecNoErrorConstants = 'b'<<24 | 'a'<<16 | 'd'<<8 | 'a' // 'bada'
	KAudioCodecBadPropertySizeError      KAudioCodecNoErrorConstants = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz'
	KAudioCodecIllegalOperationError     KAudioCodecNoErrorConstants = 'n'<<24 | 'o'<<16 | 'p'<<8 | 'e' // 'nope'
	KAudioCodecNoError                   KAudioCodecNoErrorConstants = 0
	KAudioCodecNotEnoughBufferSpaceError KAudioCodecNoErrorConstants = '!'<<24 | 'b'<<16 | 'u'<<8 | 'f' // '!buf'
	KAudioCodecStateError                KAudioCodecNoErrorConstants = '!'<<24 | 's'<<16 | 't'<<8 | 't' // '!stt'
	KAudioCodecUnknownPropertyError      KAudioCodecNoErrorConstants = 'w'<<24 | 'h'<<16 | 'o'<<8 | '?' // 'who?'
	KAudioCodecUnspecifiedError          KAudioCodecNoErrorConstants = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what'
	KAudioCodecUnsupportedFormatError    KAudioCodecNoErrorConstants = '!'<<24 | 'd'<<16 | 'a'<<8 | 't' // '!dat'
)

func (KAudioCodecNoErrorConstants) String

type KAudioCodecOutputPrecedence

type KAudioCodecOutputPrecedence uint32
const (
	KAudioCodecOutputPrecedenceBitRate    KAudioCodecOutputPrecedence = 1
	KAudioCodecOutputPrecedenceNone       KAudioCodecOutputPrecedence = 0
	KAudioCodecOutputPrecedenceSampleRate KAudioCodecOutputPrecedence = 2
)

func (KAudioCodecOutputPrecedence) 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

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 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

type KAudioDecoderComponentTypeConstants

type KAudioDecoderComponentTypeConstants uint32
const (
	// KAudioDecoderComponentType: A codec that translates data in some other format into linear PCM.
	KAudioDecoderComponentType KAudioDecoderComponentTypeConstants = 'a'<<24 | 'd'<<16 | 'e'<<8 | 'c' // 'adec'
	// KAudioEncoderComponentType: A codec that translates linear PCM data into some other format
	KAudioEncoderComponentType    KAudioDecoderComponentTypeConstants = 'a'<<24 | 'e'<<16 | 'n'<<8 | 'c' // 'aenc'
	KAudioUnityCodecComponentType KAudioDecoderComponentTypeConstants = 'a'<<24 | 'c'<<16 | 'd'<<8 | 'c' // 'acdc'
)

func (KAudioDecoderComponentTypeConstants) String

type KAudioFileCreateSelectConstants

type KAudioFileCreateSelectConstants uint32
const (
	KAudioFileCloseSelect                   KAudioFileCreateSelectConstants = 0x6
	KAudioFileCountUserDataSelect           KAudioFileCreateSelectConstants = 0x14
	KAudioFileCreateSelect                  KAudioFileCreateSelectConstants = 0x1
	KAudioFileCreateURLSelect               KAudioFileCreateSelectConstants = 0x19
	KAudioFileDataIsThisFormatSelect        KAudioFileCreateSelectConstants = 0x11
	KAudioFileExtensionIsThisFormatSelect   KAudioFileCreateSelectConstants = 0xf
	KAudioFileFileDataIsThisFormatSelect    KAudioFileCreateSelectConstants = 0x1b
	KAudioFileFileIsThisFormatSelect        KAudioFileCreateSelectConstants = 0x10
	KAudioFileGetGlobalInfoSelect           KAudioFileCreateSelectConstants = 0x13
	KAudioFileGetGlobalInfoSizeSelect       KAudioFileCreateSelectConstants = 0x12
	KAudioFileGetPropertyInfoSelect         KAudioFileCreateSelectConstants = 0xc
	KAudioFileGetPropertySelect             KAudioFileCreateSelectConstants = 0xd
	KAudioFileGetUserDataAtOffsetSelect     KAudioFileCreateSelectConstants = 0x1e
	KAudioFileGetUserDataSelect             KAudioFileCreateSelectConstants = 0x16
	KAudioFileGetUserDataSize64Select       KAudioFileCreateSelectConstants = 0x1d
	KAudioFileGetUserDataSizeSelect         KAudioFileCreateSelectConstants = 0x15
	KAudioFileInitializeSelect              KAudioFileCreateSelectConstants = 0x3
	KAudioFileInitializeWithCallbacksSelect KAudioFileCreateSelectConstants = 0x5
	KAudioFileOpenSelect                    KAudioFileCreateSelectConstants = 0x2
	KAudioFileOpenURLSelect                 KAudioFileCreateSelectConstants = 0x1a
	KAudioFileOpenWithCallbacksSelect       KAudioFileCreateSelectConstants = 0x4
	KAudioFileOptimizeSelect                KAudioFileCreateSelectConstants = 0x7
	KAudioFileReadBytesSelect               KAudioFileCreateSelectConstants = 0x8
	KAudioFileReadPacketDataSelect          KAudioFileCreateSelectConstants = 0x1c
	KAudioFileReadPacketsSelect             KAudioFileCreateSelectConstants = 0xa
	KAudioFileRemoveUserDataSelect          KAudioFileCreateSelectConstants = 0x18
	KAudioFileSetPropertySelect             KAudioFileCreateSelectConstants = 0xe
	KAudioFileSetUserDataSelect             KAudioFileCreateSelectConstants = 0x17
	KAudioFileWriteBytesSelect              KAudioFileCreateSelectConstants = 0x9
	KAudioFileWritePacketsSelect            KAudioFileCreateSelectConstants = 0xb
)

func (KAudioFileCreateSelectConstants) 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 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: The amount of data provided to the parser was insufficient to produce any result.
	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 KAudioFileUnspecifiedErrorConstants

type KAudioFileUnspecifiedErrorConstants int32
const (
	// KAudioFileBadPropertySizeError: The size of the property data was not correct.
	KAudioFileBadPropertySizeError KAudioFileUnspecifiedErrorConstants = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz'
	// KAudioFileDoesNotAllow64BitDataSizeError: The file offset was too large for the file type.
	KAudioFileDoesNotAllow64BitDataSizeError KAudioFileUnspecifiedErrorConstants = 'o'<<24 | 'f'<<16 | 'f'<<8 | '?' // 'off?'
	// KAudioFileEndOfFileError: End of file.
	KAudioFileEndOfFileError KAudioFileUnspecifiedErrorConstants = -39
	// KAudioFileFileNotFoundError: File not found.
	KAudioFileFileNotFoundError KAudioFileUnspecifiedErrorConstants = -43
	// KAudioFileInvalidChunkError: Either the chunk does not exist in the file or it is not supported by the file.
	KAudioFileInvalidChunkError KAudioFileUnspecifiedErrorConstants = '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             KAudioFileUnspecifiedErrorConstants = 'd'<<24 | 't'<<16 | 'a'<<8 | '?' // 'dta?'
	KAudioFileInvalidPacketDependencyError KAudioFileUnspecifiedErrorConstants = '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 KAudioFileUnspecifiedErrorConstants = 'p'<<24 | 'c'<<16 | 'k'<<8 | '?' // 'pck?'
	// KAudioFileNotOpenError: The file is closed.
	KAudioFileNotOpenError KAudioFileUnspecifiedErrorConstants = -38
	// KAudioFileNotOptimizedError: The chunks following the audio data chunk are preventing the extension of the audio data chunk.
	KAudioFileNotOptimizedError KAudioFileUnspecifiedErrorConstants = 'o'<<24 | 'p'<<16 | 't'<<8 | 'm' // 'optm'
	// KAudioFileOperationNotSupportedError: The operation cannot be performed.
	KAudioFileOperationNotSupportedError KAudioFileUnspecifiedErrorConstants = 0x6f703f3f
	// KAudioFilePermissionsError: The operation violated the file permissions.
	KAudioFilePermissionsError KAudioFileUnspecifiedErrorConstants = 'p'<<24 | 'r'<<16 | 'm'<<8 | '?' // 'prm?'
	// KAudioFilePositionError: Invalid file position.
	KAudioFilePositionError KAudioFileUnspecifiedErrorConstants = -40
	// KAudioFileUnspecifiedError: An unspecified error has occurred.
	KAudioFileUnspecifiedError KAudioFileUnspecifiedErrorConstants = 'w'<<24 | 'h'<<16 | 't'<<8 | '?' // 'wht?'
	// KAudioFileUnsupportedDataFormatError: The data format is not supported by this file type.
	KAudioFileUnsupportedDataFormatError KAudioFileUnspecifiedErrorConstants = 'f'<<24 | 'm'<<16 | 't'<<8 | '?' // 'fmt?'
	// KAudioFileUnsupportedFileTypeError: The file type is not supported.
	KAudioFileUnsupportedFileTypeError KAudioFileUnspecifiedErrorConstants = 't'<<24 | 'y'<<16 | 'p'<<8 | '?' // 'typ?'
	// KAudioFileUnsupportedPropertyError: The property is not supported.
	KAudioFileUnsupportedPropertyError KAudioFileUnspecifiedErrorConstants = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?'
)

func (KAudioFileUnspecifiedErrorConstants) 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 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 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 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

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 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 KAudioSessionNoErrorConstants

type KAudioSessionNoErrorConstants uint32
const (
	// KAudioServicesNoHardwareError: The audio operation failed because the device has no audio input available.
	KAudioServicesNoHardwareError KAudioSessionNoErrorConstants = 'n'<<24 | 'o'<<16 | 'h'<<8 | 'w' // 'nohw'
	// KAudioSessionAlreadyInitialized: The [AudioSessionInitialize] function was called more than once during the lifetime of your application.
	KAudioSessionAlreadyInitialized KAudioSessionNoErrorConstants = 'i'<<24 | 'n'<<16 | 'i'<<8 | 't' // 'init'
	// KAudioSessionBadPropertySizeError: The size of the audio session property data was not correct.
	KAudioSessionBadPropertySizeError KAudioSessionNoErrorConstants = '!'<<24 | 's'<<16 | 'i'<<8 | 'z' // '!siz'
	// KAudioSessionIncompatibleCategory: The specified audio session category cannot be used for the attempted audio operation.
	KAudioSessionIncompatibleCategory KAudioSessionNoErrorConstants = '!'<<24 | 'c'<<16 | 'a'<<8 | 't' // '!cat'
	// KAudioSessionInitializationError: There was an error during audio session initialization.
	KAudioSessionInitializationError KAudioSessionNoErrorConstants = '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 KAudioSessionNoErrorConstants = '?'<<24 | 'c'<<16 | 'a'<<8 | 't' // '?cat'
	// KAudioSessionNoError: No error has occurred.
	KAudioSessionNoError KAudioSessionNoErrorConstants = 0
	// KAudioSessionNotActiveError: The audio operation failed because your application’s audio session was not active.
	KAudioSessionNotActiveError KAudioSessionNoErrorConstants = '!'<<24 | 'a'<<16 | 'c'<<8 | 't' // '!act'
	// KAudioSessionNotInitialized: An Audio Session function was called without first initializing the session.
	KAudioSessionNotInitialized KAudioSessionNoErrorConstants = '!'<<24 | 'i'<<16 | 'n'<<8 | 'i' // '!ini'
	// KAudioSessionUnspecifiedError: An unspecified audio session error has occurred.
	KAudioSessionUnspecifiedError KAudioSessionNoErrorConstants = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what'
	// KAudioSessionUnsupportedPropertyError: The audio session property is not supported.
	KAudioSessionUnsupportedPropertyError KAudioSessionNoErrorConstants = 'p'<<24 | 't'<<16 | 'y'<<8 | '?' // 'pty?'
)

func (KAudioSessionNoErrorConstants) 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

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: The previously-used audio hardware device is now unavailable; for example, a headset was unplugged.
	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

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 KAudioUnitCarbonViewComponentTypeConstants

type KAudioUnitCarbonViewComponentTypeConstants uint
const (
	KAUCarbonViewSubType_Generic      KAudioUnitCarbonViewComponentTypeConstants = 0
	KAudioUnitCarbonViewComponentType KAudioUnitCarbonViewComponentTypeConstants = 0
)

func (KAudioUnitCarbonViewComponentTypeConstants) String

type KAudioUnitErr

type KAudioUnitErr int32
const (
	KAudioUnitErr_IllegalInstrument      KAudioUnitErr = -10873
	KAudioUnitErr_InstrumentTypeNotFound KAudioUnitErr = -10872
)

func (KAudioUnitErr) String

func (e KAudioUnitErr) 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

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 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
)

func (KCAClock) String

func (e KCAClock) String() string

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'
)

func (KCAF) String

func (e KCAF) String() string

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 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

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 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 KHint

type KHint uint32
const (
	KHintAdvanced KHint = 1
	KHintBasic    KHint = 0
	KHintHidden   KHint = 2
)

func (KHint) String

func (e KHint) 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 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 KMusicDeviceSampleFrameMask

type KMusicDeviceSampleFrameMask uint32
const (
	KMusicDeviceSampleFrameMask_IsScheduled  KMusicDeviceSampleFrameMask = 0x1000000
	KMusicDeviceSampleFrameMask_SampleOffset KMusicDeviceSampleFrameMask = 0xffffff
)

func (KMusicDeviceSampleFrameMask) 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 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 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 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 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 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 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

type KaudiofilemarkertypeGeneric

type KaudiofilemarkertypeGeneric uint32
const (
	// KAudioFileMarkerType_Generic: A generic marker.
	KAudioFileMarkerType_Generic KaudiofilemarkertypeGeneric = 0
)

func (KaudiofilemarkertypeGeneric) 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

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

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

type KaudiosessionpropertyAudioroute

type KaudiosessionpropertyAudioroute uint32
const (
	KAudioSessionProperty_AudioRoute KaudiosessionpropertyAudioroute = 'r'<<24 | 'o'<<16 | 'u'<<8 | 't' // 'rout'
)

func (KaudiosessionpropertyAudioroute) 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

type KaudiounitcarbonvieweventMouse

type KaudiounitcarbonvieweventMouse uint
const (
	KAudioUnitCarbonViewEvent_MouseDownInControl KaudiounitcarbonvieweventMouse = 0
	KAudioUnitCarbonViewEvent_MouseUpInControl   KaudiounitcarbonvieweventMouse = 0
)

func (KaudiounitcarbonvieweventMouse) 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_Unauthorized                 KaudiouniterrInvalidproperty = -10847
	KAudioUnitErr_Uninitialized                KaudiouniterrInvalidproperty = -10867
	KAudioUnitErr_UnknownFileType              KaudiouniterrInvalidproperty = -10870
)

func (KaudiouniterrInvalidproperty) String

type KaudiounitmanufacturerApple

type KaudiounitmanufacturerApple uint32
const (
	KAudioUnitManufacturer_Apple KaudiounitmanufacturerApple = 'a'<<24 | 'p'<<16 | 'p'<<8 | 'l' // 'appl'
)

func (KaudiounitmanufacturerApple) 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

type KaudiounitparameterflagHasname

type KaudiounitparameterflagHasname uint32
const (
	KAudioUnitParameterFlag_HasName KaudiounitparameterflagHasname = 2097152
)

func (KaudiounitparameterflagHasname) String

type KaudiounitparameternameFull

type KaudiounitparameternameFull int32
const (
	KAudioUnitParameterName_Full KaudiounitparameternameFull = -1
)

func (KaudiounitparameternameFull) 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

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

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

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

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

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

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

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

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

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

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 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

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 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

type KcafFile

type KcafFile uint32
const (
	KCAF_FileType            KcafFile = 'c'<<24 | 'a'<<16 | 'f'<<8 | 'f' // 'caff'
	KCAF_FileVersion_Initial KcafFile = 1
)

func (KcafFile) String

func (e KcafFile) 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
)

func (KcafSmpte) String

func (e KcafSmpte) String() string

type KmusiceventtypeExtendedcontrol

type KmusiceventtypeExtendedcontrol uint32
const (
	KMusicEventType_ExtendedControl KmusiceventtypeExtendedcontrol = 2
)

func (KmusiceventtypeExtendedcontrol) 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

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

MIDIRawData - Describes a MIDI system-exclusive (SysEx) message.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MIDIRawData

type MagicCookieInfo

type MagicCookieInfo = AudioCodecMagicCookieInfo

MagicCookieInfo is a structure holding magic cookie information.

See: https://developer.apple.com/documentation/AudioToolbox/MagicCookieInfo

type MixerDistanceParams

type MixerDistanceParams struct {
	MReferenceDistance float32
	MMaxDistance       float32
	MMaxAttenuation    float32
}

MixerDistanceParams

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MixerDistanceParams

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 MusicDeviceStdNoteParams

type MusicDeviceStdNoteParams struct {
	ArgCount  uint32
	MPitch    float32
	MVelocity float32
}

MusicDeviceStdNoteParams

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/AudioToolbox/MusicDeviceStdNoteParams

type MusicEventIterator

type MusicEventIterator = uintptr

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 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 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 ScheduledAudioFileRegion

type ScheduledAudioFileRegion struct {
	MTimeStamp coreaudiotypes.AudioTimeStamp
	// C: ScheduledAudioFileRegionCompletionProc (void (*)(void *, struct ScheduledAudioFileRegion *, int))
	MCompletionProc         uintptr // 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 ScheduledAudioSlice

type ScheduledAudioSlice struct {
	MTimeStamp coreaudiotypes.AudioTimeStamp
	// C: ScheduledAudioSliceCompletionProc (void (*)(void *, struct ScheduledAudioSlice *))
	MCompletionProc         uintptr
	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 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

const (
	// KSystemSoundID_FlashScreen: On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to display a flash of light on the screen.
	KSystemSoundID_FlashScreen SystemSoundID = 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 SystemSoundID = 0x1000
	// KSystemSoundID_Vibrate: On the iPhone, use this constant with the AudioServicesPlayAlertSound(_:) function to invoke a brief vibration.
	KSystemSoundID_Vibrate SystemSoundID = 0xfff
	// KUserPreferredAlert: A deprecated sound identifier.
	KUserPreferredAlert SystemSoundID = 4096
)

type Uint8Uint8MIDICIProfileBoolHandler

type Uint8Uint8MIDICIProfileBoolHandler = func(uint8, uint8, *coremidi.MIDICIProfile, bool)

Uint8Uint8MIDICIProfileBoolHandler handles completion with primitive and object results.

type Uint64Float32Handler

type Uint64Float32Handler = func(uint64, float32)

Uint64Float32Handler handles A block called after the value of a parameter has changed.

Used by:

Jump to

Keyboard shortcuts

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