coreaudiotypes

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: 4 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 coreaudiotypes provides Go bindings for the CoreAudioTypes framework.

Use specialized data types to interact with audio streams, complex buffers, and audiovisual timestamps.

The Core Audio Types framework declares common data types and constants that other Core Audio interfaces use. This framework also includes several convenience functions.

Buffers

  • AudioBuffer: A structure that holds a buffer of audio data.
  • AudioBufferList: A structure that stores a variable-length array of audio buffers.

Channels

Codecs

Audio Time

SMPTE Time

Values

Streams

Common Types

Enumerations

  • AVAudioSessionErrorCode: Codes that describe error conditions that may occur when performing audio session operations.

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

View Source
const KAudioFormatFlagIsFloatValue = KAudioFormatFlagIsFloat

KAudioFormatFlagIsFloatValue is the pre-v0.7.0 name of KAudioFormatFlagIsFloat.

Deprecated: use KAudioFormatFlagIsFloat.

View Source
const KAudioFormatLinearPCMValue = KAudioFormatLinearPCM

KAudioFormatLinearPCMValue is the pre-v0.7.0 name of KAudioFormatLinearPCM.

Deprecated: use KAudioFormatLinearPCM.

View Source
const (

	// KAudioStreamAnyRate is a value that indicates that an audio stream can use any sample rate.
	//
	// See: https://developer.apple.com/documentation/CoreAudioTypes/kAudioStreamAnyRate
	KAudioStreamAnyRate float64 = 0.0
)

float64 values.

Variables

This section is empty.

Functions

func BindFunc

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

BindFunc binds the CoreAudioTypes 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 SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in CoreAudioTypes, 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.

Types

type AVAudioInteger

type AVAudioInteger = int

AVAudioInteger is an integer type for audio operations.

See: https://developer.apple.com/documentation/CoreAudioTypes/AVAudioInteger

type AVAudioSessionErrorCode

type AVAudioSessionErrorCode int

See: https://developer.apple.com/documentation/CoreAudioTypes/AVAudioSession/ErrorCode

const (
	// AVAudioSessionErrorCodeBadParam: An error code that indicates an attempt to set a property to an illegal value.
	AVAudioSessionErrorCodeBadParam AVAudioSessionErrorCode = -50
	// AVAudioSessionErrorCodeCannotInterruptOthers: An error code that indictates an attempt to make a nonmixable audio session active while the app was in the background.
	AVAudioSessionErrorCodeCannotInterruptOthers AVAudioSessionErrorCode = '!'<<24 | 'i'<<16 | 'n'<<8 | 't' // '!int'
	// AVAudioSessionErrorCodeCannotStartPlaying: An error code that indicates an attempt to start audio playback when it wasn’t allowed.
	AVAudioSessionErrorCodeCannotStartPlaying AVAudioSessionErrorCode = '!'<<24 | 'p'<<16 | 'l'<<8 | 'a' // '!pla'
	// AVAudioSessionErrorCodeCannotStartRecording: An error code that indicates an attempt to start audio recording, but the operation failed.
	AVAudioSessionErrorCodeCannotStartRecording AVAudioSessionErrorCode = '!'<<24 | 'r'<<16 | 'e'<<8 | 'c' // '!rec'
	// AVAudioSessionErrorCodeExpiredSession: An error code that indicates that an operation failed because the system deallocated the associated session.
	AVAudioSessionErrorCodeExpiredSession AVAudioSessionErrorCode = '!'<<24 | 's'<<16 | 'e'<<8 | 's' // '!ses'
	// AVAudioSessionErrorCodeIncompatibleCategory: An error code that indicates an attempt to perform an operation that the current audio session category doesn’t support.
	AVAudioSessionErrorCodeIncompatibleCategory AVAudioSessionErrorCode = '!'<<24 | 'c'<<16 | 'a'<<8 | 't' // '!cat'
	// AVAudioSessionErrorCodeInsufficientPriority: An error code that indicates the app isn’t allowed to set the audio category because it’s in use by another app.
	AVAudioSessionErrorCodeInsufficientPriority AVAudioSessionErrorCode = '!'<<24 | 'p'<<16 | 'r'<<8 | 'i' // '!pri'
	// AVAudioSessionErrorCodeIsBusy: An error code that indicates an attempt to deactivate the audio session while it’s still playing or recording.
	AVAudioSessionErrorCodeIsBusy AVAudioSessionErrorCode = '!'<<24 | 'a'<<16 | 'c'<<8 | 't' // '!act'
	// AVAudioSessionErrorCodeMediaServicesFailed: An error code that indictates an attempt to use the audio session during or after a Media Services failure.
	AVAudioSessionErrorCodeMediaServicesFailed AVAudioSessionErrorCode = 'm'<<24 | 's'<<16 | 'r'<<8 | 'v' // 'msrv'
	// AVAudioSessionErrorCodeMissingEntitlement: An error code that indicates an attempt to perform an operation for which the app doesn’t have the required entitlements.
	AVAudioSessionErrorCodeMissingEntitlement AVAudioSessionErrorCode = 'e'<<24 | 'n'<<16 | 't'<<8 | '?' // 'ent?'
	// AVAudioSessionErrorCodeNone: An error code that indicates the operation succeeded.
	AVAudioSessionErrorCodeNone AVAudioSessionErrorCode = 0
	// AVAudioSessionErrorCodeResourceNotAvailable: An error code that indicates that an operation failed because the device doesn’t have sufficient hardware resources to complete the action.
	AVAudioSessionErrorCodeResourceNotAvailable AVAudioSessionErrorCode = '!'<<24 | 'r'<<16 | 'e'<<8 | 's' // '!res'
	// AVAudioSessionErrorCodeSessionNotActive: An error code that indicates the operation failed because the session isn’t active.
	AVAudioSessionErrorCodeSessionNotActive AVAudioSessionErrorCode = 'i'<<24 | 'n'<<16 | 'a'<<8 | 'c' // 'inac'
	// AVAudioSessionErrorCodeSiriIsRecording: An error code that indicates an attempt to perform an operation that isn’t allowed while Siri is recording.
	AVAudioSessionErrorCodeSiriIsRecording AVAudioSessionErrorCode = 's'<<24 | 'i'<<16 | 'r'<<8 | 'i' // 'siri'
	// AVAudioSessionErrorCodeUnspecified: An error code that indicates an unspecified error occurred.
	AVAudioSessionErrorCodeUnspecified AVAudioSessionErrorCode = 'w'<<24 | 'h'<<16 | 'a'<<8 | 't' // 'what'
)

func (AVAudioSessionErrorCode) String

func (e AVAudioSessionErrorCode) String() string

type AVAudioSessionErrorInsufficient

type AVAudioSessionErrorInsufficient uint32
const (
	// Deprecated: use AVAudioSession.ErrorCode.insufficientPriority.
	AVAudioSessionErrorInsufficientPriority AVAudioSessionErrorInsufficient = '!'<<24 | 'p'<<16 | 'r'<<8 | 'i' // '!pri'
)

func (AVAudioSessionErrorInsufficient) String

type AVAudioUInteger

type AVAudioUInteger = uint

AVAudioUInteger is an unsigned integer type for audio operations.

See: https://developer.apple.com/documentation/CoreAudioTypes/AVAudioUInteger

type AppleLosslessFormatFlag

type AppleLosslessFormatFlag uint32
const (
	// KAppleLosslessFormatFlag_16BitSourceData: A flag that indicates Apple Lossless data sourced from 16-bit native endian signed integer data.
	KAppleLosslessFormatFlag_16BitSourceData AppleLosslessFormatFlag = 1
	// KAppleLosslessFormatFlag_20BitSourceData: A flag that indicates Apple Lossless data sourced from 20-bit native endian signed integer data aligned high in 24 bits.
	KAppleLosslessFormatFlag_20BitSourceData AppleLosslessFormatFlag = 2
	// KAppleLosslessFormatFlag_24BitSourceData: A flag that indicates Apple Lossless data sourced from 24-bit native endian signed integer data.
	KAppleLosslessFormatFlag_24BitSourceData AppleLosslessFormatFlag = 3
	// KAppleLosslessFormatFlag_32BitSourceData: A flag that indicates Apple Lossless data sourced from 32-bit native endian signed integer data.
	KAppleLosslessFormatFlag_32BitSourceData AppleLosslessFormatFlag = 4
)

func (AppleLosslessFormatFlag) String

func (e AppleLosslessFormatFlag) String() string

type AudioBuffer

type AudioBuffer struct {
	MNumberChannels uint32         // The number of interleaved channels in the buffer.
	MDataByteSize   uint32         // The number of bytes in the buffer.
	MData           unsafe.Pointer // A pointer to a buffer of audio data.

}

AudioBuffer - A structure that holds a buffer of audio data.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioBuffer

type AudioBufferList

type AudioBufferList struct {
	MNumberBuffers uint32         // The number of audio buffers in the list.
	MBuffers       [1]AudioBuffer // A variable-length array of audio buffers.

}

AudioBufferList - A structure that stores a variable-length array of audio buffers.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioBufferList

type AudioChannelBitmap

type AudioChannelBitmap uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelBitmap

const (
	// KAudioChannelBit_Center: The center channel.
	KAudioChannelBit_Center AudioChannelBitmap = 4
	// KAudioChannelBit_CenterSurround: The center surround channel.
	KAudioChannelBit_CenterSurround AudioChannelBitmap = 256
	// KAudioChannelBit_CenterTopFront: The top-front center channel.
	KAudioChannelBit_CenterTopFront AudioChannelBitmap = 8192
	// KAudioChannelBit_CenterTopMiddle: The top-middle center channel.
	KAudioChannelBit_CenterTopMiddle AudioChannelBitmap = 2048
	// KAudioChannelBit_CenterTopRear: The top-right center channel.
	KAudioChannelBit_CenterTopRear AudioChannelBitmap = 33554432
	// KAudioChannelBit_LFEScreen: The Low Frequency Effects (LFE) screen channel.
	KAudioChannelBit_LFEScreen AudioChannelBitmap = 8
	// KAudioChannelBit_Left: The left channel.
	KAudioChannelBit_Left AudioChannelBitmap = 1
	// KAudioChannelBit_LeftCenter: The left center channel.
	KAudioChannelBit_LeftCenter AudioChannelBitmap = 64
	// KAudioChannelBit_LeftSurround: The left surround channel.
	KAudioChannelBit_LeftSurround AudioChannelBitmap = 16
	// KAudioChannelBit_LeftSurroundDirect: The left surround direct channel.
	KAudioChannelBit_LeftSurroundDirect AudioChannelBitmap = 512
	// KAudioChannelBit_LeftTopFront: The left-top front channel.
	KAudioChannelBit_LeftTopFront AudioChannelBitmap = 4096
	// KAudioChannelBit_LeftTopMiddle: The left-top middle channel.
	KAudioChannelBit_LeftTopMiddle AudioChannelBitmap = 2097152
	// KAudioChannelBit_LeftTopRear: The left-top rear channel.
	KAudioChannelBit_LeftTopRear AudioChannelBitmap = 16777216
	// KAudioChannelBit_Right: The right channel.
	KAudioChannelBit_Right AudioChannelBitmap = 2
	// KAudioChannelBit_RightCenter: The right center channel.
	KAudioChannelBit_RightCenter AudioChannelBitmap = 128
	// KAudioChannelBit_RightSurround: The rIght surround channel.
	KAudioChannelBit_RightSurround AudioChannelBitmap = 32
	// KAudioChannelBit_RightSurroundDirect: The right surround direct channel.
	KAudioChannelBit_RightSurroundDirect AudioChannelBitmap = 1024
	// KAudioChannelBit_RightTopFront: The top-front front channel.
	KAudioChannelBit_RightTopFront AudioChannelBitmap = 16384
	// KAudioChannelBit_RightTopMiddle: The top-middle right channel.
	KAudioChannelBit_RightTopMiddle AudioChannelBitmap = 8388608
	// KAudioChannelBit_RightTopRear: The top-rear right channel.
	KAudioChannelBit_RightTopRear AudioChannelBitmap = 67108864
	// KAudioChannelBit_TopBackCenter: The top-back center channel.
	KAudioChannelBit_TopBackCenter AudioChannelBitmap = 65536
	// KAudioChannelBit_TopBackLeft: The top-back left channel.
	KAudioChannelBit_TopBackLeft AudioChannelBitmap = 32768
	// KAudioChannelBit_TopBackRight: The top-back right channel.
	KAudioChannelBit_TopBackRight AudioChannelBitmap = 131072
	// KAudioChannelBit_TopCenterSurround: The top center surround channel.
	KAudioChannelBit_TopCenterSurround AudioChannelBitmap = 2048
	// KAudioChannelBit_VerticalHeightCenter: The vertical height center channel.
	KAudioChannelBit_VerticalHeightCenter AudioChannelBitmap = 8192
	// KAudioChannelBit_VerticalHeightLeft: The vertical height left channel.
	KAudioChannelBit_VerticalHeightLeft AudioChannelBitmap = 4096
	// KAudioChannelBit_VerticalHeightRight: The vertical height right channel.
	KAudioChannelBit_VerticalHeightRight AudioChannelBitmap = 16384
)

func (AudioChannelBitmap) String

func (e AudioChannelBitmap) String() string

type AudioChannelCoordinateIndex

type AudioChannelCoordinateIndex uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelCoordinateIndex

const (
	// KAudioChannelCoordinates_Azimuth: For spherical coordinates, `0` is front center, positive is right, negative is left, and measurements are in degrees.
	KAudioChannelCoordinates_Azimuth AudioChannelCoordinateIndex = 0
	// KAudioChannelCoordinates_BackFront: For rectangular coordinates, negative is back and positive is front.
	KAudioChannelCoordinates_BackFront AudioChannelCoordinateIndex = 1
	// KAudioChannelCoordinates_Distance: For spherical coordinates, distance is radially from the center.
	KAudioChannelCoordinates_Distance AudioChannelCoordinateIndex = 2
	// KAudioChannelCoordinates_DownUp: For rectangular coordinates, negative is below ground level, `0` is ground level, and positive is above ground level.
	KAudioChannelCoordinates_DownUp AudioChannelCoordinateIndex = 2
	// KAudioChannelCoordinates_Elevation: For spherical coordinates, `+90` is zenith, `0` is horizontal, `-90` is nadir, and measurements are in degrees.
	KAudioChannelCoordinates_Elevation AudioChannelCoordinateIndex = 1
	// KAudioChannelCoordinates_LeftRight: For rectangular coordinates, negative is left and positive is right.
	KAudioChannelCoordinates_LeftRight AudioChannelCoordinateIndex = 0
)

func (AudioChannelCoordinateIndex) String

type AudioChannelDescription

type AudioChannelDescription struct {
	MChannelLabel AudioChannelLabel // A label that describes the audio channel.
	MChannelFlags AudioChannelFlags // The audio channel flags that indicate how to interpret the channel coordinates.
	MCoordinates  [3]float32        // The coordinates that specify a precise speaker location.

}

AudioChannelDescription - A structure that describes a channel of audio data.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelDescription

type AudioChannelFlags

type AudioChannelFlags uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelFlags

const (
	// KAudioChannelFlags_AllOff: All flags are clear.
	KAudioChannelFlags_AllOff AudioChannelFlags = 0
	// KAudioChannelFlags_Meters: A flag that indicates that unit values are in meters.
	KAudioChannelFlags_Meters AudioChannelFlags = 4
	// KAudioChannelFlags_RectangularCoordinates: A flag that indicates the channel uses the speaker position’s cartesian coordinates.
	KAudioChannelFlags_RectangularCoordinates AudioChannelFlags = 1
	// KAudioChannelFlags_SphericalCoordinates: A flag that indicates the channel uses the speaker position’s spherical coordinates.
	KAudioChannelFlags_SphericalCoordinates AudioChannelFlags = 2
)

func (AudioChannelFlags) String

func (e AudioChannelFlags) String() string

type AudioChannelLabel

type AudioChannelLabel = uint32

AudioChannelLabel is identifies how an audio data channel is to be used.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelLabel

const (
	// KAudioChannelLabel_Ambisonic_W: First order Ambisonic channel W.
	KAudioChannelLabel_Ambisonic_W AudioChannelLabel = 200
	// KAudioChannelLabel_Ambisonic_X: First order Ambisonic channel X.
	KAudioChannelLabel_Ambisonic_X AudioChannelLabel = 201
	// KAudioChannelLabel_Ambisonic_Y: First order Ambisonic channel Y.
	KAudioChannelLabel_Ambisonic_Y AudioChannelLabel = 202
	// KAudioChannelLabel_Ambisonic_Z: First order Ambisonic channel Z.
	KAudioChannelLabel_Ambisonic_Z   AudioChannelLabel = 203
	KAudioChannelLabel_BeginReserved AudioChannelLabel = 0xf0000000
	KAudioChannelLabel_BinauralLeft  AudioChannelLabel = 208
	KAudioChannelLabel_BinauralRight AudioChannelLabel = 209
	// KAudioChannelLabel_Center: Center channel.
	KAudioChannelLabel_Center       AudioChannelLabel = 3
	KAudioChannelLabel_CenterBottom AudioChannelLabel = 59
	// KAudioChannelLabel_CenterSurround: Center surround channel; or for WAVE (.wav) files, back center or rear surround.
	KAudioChannelLabel_CenterSurround AudioChannelLabel = 9
	// KAudioChannelLabel_CenterSurroundDirect: Back center, non diffuse channel.
	KAudioChannelLabel_CenterSurroundDirect AudioChannelLabel = 44
	KAudioChannelLabel_CenterTopFront       AudioChannelLabel = 14
	KAudioChannelLabel_CenterTopMiddle      AudioChannelLabel = 12
	KAudioChannelLabel_CenterTopRear        AudioChannelLabel = 53
	// KAudioChannelLabel_ClickTrack: Click track channel.
	KAudioChannelLabel_ClickTrack       AudioChannelLabel = 304
	KAudioChannelLabel_DialogCentricMix AudioChannelLabel = 43
	// KAudioChannelLabel_Discrete: Generic discrete channel.
	KAudioChannelLabel_Discrete AudioChannelLabel = 400
	// KAudioChannelLabel_Discrete_0: Discrete channel 0.
	KAudioChannelLabel_Discrete_0 AudioChannelLabel = 65536
	// KAudioChannelLabel_Discrete_1: Discrete channel 1.
	KAudioChannelLabel_Discrete_1 AudioChannelLabel = 65537
	// KAudioChannelLabel_Discrete_10: Discrete channel 10.
	KAudioChannelLabel_Discrete_10 AudioChannelLabel = 65546
	// KAudioChannelLabel_Discrete_11: Discrete channel 11.
	KAudioChannelLabel_Discrete_11 AudioChannelLabel = 65547
	// KAudioChannelLabel_Discrete_12: Discrete channel 12.
	KAudioChannelLabel_Discrete_12 AudioChannelLabel = 65548
	// KAudioChannelLabel_Discrete_13: Discrete channel 13.
	KAudioChannelLabel_Discrete_13 AudioChannelLabel = 65549
	// KAudioChannelLabel_Discrete_14: Discrete channel 14.
	KAudioChannelLabel_Discrete_14 AudioChannelLabel = 65550
	// KAudioChannelLabel_Discrete_15: Discrete channel 15.
	KAudioChannelLabel_Discrete_15 AudioChannelLabel = 65551
	// KAudioChannelLabel_Discrete_2: Discrete channel 2.
	KAudioChannelLabel_Discrete_2 AudioChannelLabel = 65538
	// KAudioChannelLabel_Discrete_3: Discrete channel 3.
	KAudioChannelLabel_Discrete_3 AudioChannelLabel = 65539
	// KAudioChannelLabel_Discrete_4: Discrete channel 4.
	KAudioChannelLabel_Discrete_4 AudioChannelLabel = 65540
	// KAudioChannelLabel_Discrete_5: Discrete channel 5.
	KAudioChannelLabel_Discrete_5 AudioChannelLabel = 65541
	// KAudioChannelLabel_Discrete_6: Discrete channel 6.
	KAudioChannelLabel_Discrete_6 AudioChannelLabel = 65542
	// KAudioChannelLabel_Discrete_65535: Discrete channel 65536.
	KAudioChannelLabel_Discrete_65535 AudioChannelLabel = 131071
	// KAudioChannelLabel_Discrete_7: Discrete channel 7.
	KAudioChannelLabel_Discrete_7 AudioChannelLabel = 65543
	// KAudioChannelLabel_Discrete_8: Discrete channel 8.
	KAudioChannelLabel_Discrete_8 AudioChannelLabel = 65544
	// KAudioChannelLabel_Discrete_9: Discrete channel 9.
	KAudioChannelLabel_Discrete_9  AudioChannelLabel = 65545
	KAudioChannelLabel_EndReserved AudioChannelLabel = 0xfffffffe
	// KAudioChannelLabel_ForeignLanguage: Foreign language channel.
	KAudioChannelLabel_ForeignLanguage AudioChannelLabel = 305
	KAudioChannelLabel_HOA_ACN         AudioChannelLabel = 500
	KAudioChannelLabel_HOA_ACN_0       AudioChannelLabel = 131072
	KAudioChannelLabel_HOA_ACN_1       AudioChannelLabel = 131073
	KAudioChannelLabel_HOA_ACN_10      AudioChannelLabel = 131082
	KAudioChannelLabel_HOA_ACN_11      AudioChannelLabel = 131083
	KAudioChannelLabel_HOA_ACN_12      AudioChannelLabel = 131084
	KAudioChannelLabel_HOA_ACN_13      AudioChannelLabel = 131085
	KAudioChannelLabel_HOA_ACN_14      AudioChannelLabel = 131086
	KAudioChannelLabel_HOA_ACN_15      AudioChannelLabel = 131087
	KAudioChannelLabel_HOA_ACN_2       AudioChannelLabel = 131074
	KAudioChannelLabel_HOA_ACN_3       AudioChannelLabel = 131075
	KAudioChannelLabel_HOA_ACN_4       AudioChannelLabel = 131076
	KAudioChannelLabel_HOA_ACN_5       AudioChannelLabel = 131077
	KAudioChannelLabel_HOA_ACN_6       AudioChannelLabel = 131078
	KAudioChannelLabel_HOA_ACN_65024   AudioChannelLabel = 196096
	KAudioChannelLabel_HOA_ACN_7       AudioChannelLabel = 131079
	KAudioChannelLabel_HOA_ACN_8       AudioChannelLabel = 131080
	KAudioChannelLabel_HOA_ACN_9       AudioChannelLabel = 131081
	KAudioChannelLabel_HOA_N3D         AudioChannelLabel = 196608
	KAudioChannelLabel_HOA_SN3D        AudioChannelLabel = 131072
	// KAudioChannelLabel_Haptic: A channel for haptic (touch) data.
	KAudioChannelLabel_Haptic AudioChannelLabel = 45
	// KAudioChannelLabel_HeadphonesLeft: Left channel of stereo headphones.
	KAudioChannelLabel_HeadphonesLeft AudioChannelLabel = 301
	// KAudioChannelLabel_HeadphonesRight: Right channel of stereo headphones.
	KAudioChannelLabel_HeadphonesRight AudioChannelLabel = 302
	// KAudioChannelLabel_HearingImpaired: Channel carrying audio for people who are deaf or hard of hearing.
	KAudioChannelLabel_HearingImpaired AudioChannelLabel = 40
	// KAudioChannelLabel_LFE2: Low Frequency Effects 2.
	KAudioChannelLabel_LFE2 AudioChannelLabel = 37
	KAudioChannelLabel_LFE3 AudioChannelLabel = 62
	// KAudioChannelLabel_LFEScreen: Low Frequency Effects Screen; a subwoofer located in front of the theater.
	KAudioChannelLabel_LFEScreen AudioChannelLabel = 4
	// KAudioChannelLabel_Left: Left channel.
	KAudioChannelLabel_Left             AudioChannelLabel = 1
	KAudioChannelLabel_LeftBackSurround AudioChannelLabel = 63
	KAudioChannelLabel_LeftBottom       AudioChannelLabel = 57
	// KAudioChannelLabel_LeftCenter: Left center channel.
	KAudioChannelLabel_LeftCenter       AudioChannelLabel = 7
	KAudioChannelLabel_LeftEdgeOfScreen AudioChannelLabel = 65
	KAudioChannelLabel_LeftSideSurround AudioChannelLabel = 55
	// KAudioChannelLabel_LeftSurround: Left surround channel; or for WAVE (.wav) files, back left.
	KAudioChannelLabel_LeftSurround AudioChannelLabel = 5
	// KAudioChannelLabel_LeftSurroundDirect: Left surround direct channel; or for WAVE (.wav) files, side left.
	KAudioChannelLabel_LeftSurroundDirect AudioChannelLabel = 10
	KAudioChannelLabel_LeftTopFront       AudioChannelLabel = 13
	KAudioChannelLabel_LeftTopMiddle      AudioChannelLabel = 49
	KAudioChannelLabel_LeftTopRear        AudioChannelLabel = 52
	KAudioChannelLabel_LeftTopSurround    AudioChannelLabel = 60
	// KAudioChannelLabel_LeftTotal: The left channel of matrix encoded 4 channel audio.
	KAudioChannelLabel_LeftTotal AudioChannelLabel = 38
	// KAudioChannelLabel_LeftWide: Left wide channel.
	KAudioChannelLabel_LeftWide AudioChannelLabel = 35
	// KAudioChannelLabel_MS_Mid: Mid channel of a Mid/Side recording.
	KAudioChannelLabel_MS_Mid AudioChannelLabel = 204
	// KAudioChannelLabel_MS_Side: Side channel of a Mid/Side recording.
	KAudioChannelLabel_MS_Side AudioChannelLabel = 205
	// KAudioChannelLabel_Mono: Monaural channel.
	KAudioChannelLabel_Mono AudioChannelLabel = 42
	// KAudioChannelLabel_Narration: Narration channel.
	KAudioChannelLabel_Narration AudioChannelLabel = 41
	KAudioChannelLabel_Object    AudioChannelLabel = 262144
	// KAudioChannelLabel_RearSurroundLeft: Rear surround left channel.
	KAudioChannelLabel_RearSurroundLeft AudioChannelLabel = 33
	// KAudioChannelLabel_RearSurroundRight: Rear surround right channel.
	KAudioChannelLabel_RearSurroundRight AudioChannelLabel = 34
	// KAudioChannelLabel_Right: Right channel.
	KAudioChannelLabel_Right             AudioChannelLabel = 2
	KAudioChannelLabel_RightBackSurround AudioChannelLabel = 64
	KAudioChannelLabel_RightBottom       AudioChannelLabel = 58
	// KAudioChannelLabel_RightCenter: Right center channel.
	KAudioChannelLabel_RightCenter       AudioChannelLabel = 8
	KAudioChannelLabel_RightEdgeOfScreen AudioChannelLabel = 66
	KAudioChannelLabel_RightSideSurround AudioChannelLabel = 56
	// KAudioChannelLabel_RightSurround: Right surround channel; or for WAVE (.wav) files, back right.
	KAudioChannelLabel_RightSurround AudioChannelLabel = 6
	// KAudioChannelLabel_RightSurroundDirect: Right surround direct channel; or for WAVE (.wav) files, side right.
	KAudioChannelLabel_RightSurroundDirect AudioChannelLabel = 11
	KAudioChannelLabel_RightTopFront       AudioChannelLabel = 15
	KAudioChannelLabel_RightTopMiddle      AudioChannelLabel = 51
	KAudioChannelLabel_RightTopRear        AudioChannelLabel = 54
	KAudioChannelLabel_RightTopSurround    AudioChannelLabel = 61
	// KAudioChannelLabel_RightTotal: The right channel of matrix encoded 4 channel audio.
	KAudioChannelLabel_RightTotal AudioChannelLabel = 39
	// KAudioChannelLabel_RightWide: Right wide channel.
	KAudioChannelLabel_RightWide AudioChannelLabel = 36
	// KAudioChannelLabel_TopBackCenter: Top back center channel.
	KAudioChannelLabel_TopBackCenter AudioChannelLabel = 17
	// KAudioChannelLabel_TopBackLeft: Top back left channel.
	KAudioChannelLabel_TopBackLeft AudioChannelLabel = 16
	// KAudioChannelLabel_TopBackRight: Top back right channel.
	KAudioChannelLabel_TopBackRight AudioChannelLabel = 18
	// KAudioChannelLabel_TopCenterSurround: Top center surround-sound channel.
	KAudioChannelLabel_TopCenterSurround AudioChannelLabel = 12
	// KAudioChannelLabel_Unknown: Unknown role or unspecified other use for channel.
	KAudioChannelLabel_Unknown AudioChannelLabel = 0xffffffff
	// KAudioChannelLabel_Unused: The channel is present, but has no intended role or destination.
	KAudioChannelLabel_Unused AudioChannelLabel = 0
	// KAudioChannelLabel_UseCoordinates: The channel is described solely by the `mCoordinates` field of the [AudioChannelDescription] structure.
	KAudioChannelLabel_UseCoordinates AudioChannelLabel = 100
	// KAudioChannelLabel_VerticalHeightCenter: Vertical height center channel; or for WAVE (.wav) files, top front center.
	KAudioChannelLabel_VerticalHeightCenter AudioChannelLabel = 14
	// KAudioChannelLabel_VerticalHeightLeft: Vertical height left channel; or for WAVE (.wav) files, top front left.
	KAudioChannelLabel_VerticalHeightLeft AudioChannelLabel = 13
	// KAudioChannelLabel_VerticalHeightRight: Vertical height right channel; or for WAVE (.wav) files, top front right.
	KAudioChannelLabel_VerticalHeightRight AudioChannelLabel = 15
	// KAudioChannelLabel_XY_X: X channel of an X-Y recording.
	KAudioChannelLabel_XY_X AudioChannelLabel = 206
	// KAudioChannelLabel_XY_Y: Y channel of an X-Y recording.
	KAudioChannelLabel_XY_Y AudioChannelLabel = 207
)

type AudioChannelLayout

type AudioChannelLayout struct {
	MChannelLayoutTag          AudioChannelLayoutTag      // The [AudioChannelLayoutTag] value that indicates the layout. See [Audio Channel Layout Tags](<https://developer.apple.com/documentation/CoreAudioTypes/audio-channel-layout-tags>) for possible values.
	MChannelBitmap             AudioChannelBitmap         // If `mChannelLayoutTag` is set to `kAudioChannelLayoutTag_UseChannelBitmap`, this field is the channel-use bitmap.
	MNumberChannelDescriptions uint32                     // The number of items in the `mChannelDescriptions` array.
	MChannelDescriptions       [1]AudioChannelDescription // A variable length array of `mNumberChannelDescription` elements that describes a layout. If the `mChannelLayoutTag` field is set to `kAudioChannelLayoutTag_UseChannelDescriptions`, use this field to describe the layout.

}

AudioChannelLayout - A structure that specifies a channel layout in a file or in hardware.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelLayout

type AudioChannelLayoutTag

type AudioChannelLayoutTag = uint32

AudioChannelLayoutTag is identifies a previously-defined channel layout.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioChannelLayoutTag

const (
	// KAudioChannelLayoutTag_AAC_3_0: An AAC 3-channel audio layout.
	KAudioChannelLayoutTag_AAC_3_0 AudioChannelLayoutTag = 7471107
	// KAudioChannelLayoutTag_AAC_4_0: An AAC 4-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_4_0 AudioChannelLayoutTag = 7602180
	// KAudioChannelLayoutTag_AAC_5_0: An AAC 5-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_5_0 AudioChannelLayoutTag = 7864325
	// KAudioChannelLayoutTag_AAC_5_1: An AAC 5.1-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_5_1 AudioChannelLayoutTag = 8126470
	// KAudioChannelLayoutTag_AAC_6_0: An AAC 6-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_6_0 AudioChannelLayoutTag = 9240582
	// KAudioChannelLayoutTag_AAC_6_1: An AAC 6.1-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_6_1 AudioChannelLayoutTag = 9306119
	// KAudioChannelLayoutTag_AAC_7_0: An AAC 7-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_7_0 AudioChannelLayoutTag = 9371655
	// KAudioChannelLayoutTag_AAC_7_1: An AAC 7.1-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_7_1 AudioChannelLayoutTag = 8323080
	// KAudioChannelLayoutTag_AAC_7_1_B: An AAC 7.1-channel, configuration B, surround-based layout.
	KAudioChannelLayoutTag_AAC_7_1_B AudioChannelLayoutTag = 11993096
	// KAudioChannelLayoutTag_AAC_7_1_C: An AAC 7.1-channel, configuration C, surround-based layout.
	KAudioChannelLayoutTag_AAC_7_1_C AudioChannelLayoutTag = 12058632
	// KAudioChannelLayoutTag_AAC_Octagonal: An AAC 8-channel surround-based layout.
	KAudioChannelLayoutTag_AAC_Octagonal AudioChannelLayoutTag = 9437192
	// KAudioChannelLayoutTag_AAC_Quadraphonic: An AAC quadraphonic surround-based layout.
	KAudioChannelLayoutTag_AAC_Quadraphonic AudioChannelLayoutTag = 7077892
	// KAudioChannelLayoutTag_AC3_1_0_1: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_1_0_1 AudioChannelLayoutTag = 9764866
	// KAudioChannelLayoutTag_AC3_2_1_1: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_2_1_1 AudioChannelLayoutTag = 10027012
	// KAudioChannelLayoutTag_AC3_3_0: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_3_0 AudioChannelLayoutTag = 9830403
	// KAudioChannelLayoutTag_AC3_3_0_1: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_3_0_1 AudioChannelLayoutTag = 9961476
	// KAudioChannelLayoutTag_AC3_3_1: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_3_1 AudioChannelLayoutTag = 9895940
	// KAudioChannelLayoutTag_AC3_3_1_1: An AC-3 layout.
	KAudioChannelLayoutTag_AC3_3_1_1 AudioChannelLayoutTag = 10092549
	// KAudioChannelLayoutTag_Ambisonic_B_Format: An ambisonic B-format audio layout.
	KAudioChannelLayoutTag_Ambisonic_B_Format AudioChannelLayoutTag = 7012356
	KAudioChannelLayoutTag_Atmos_5_1_2        AudioChannelLayoutTag = 12713992
	KAudioChannelLayoutTag_Atmos_5_1_4        AudioChannelLayoutTag = 12779530
	KAudioChannelLayoutTag_Atmos_7_1_2        AudioChannelLayoutTag = 12845066
	KAudioChannelLayoutTag_Atmos_7_1_4        AudioChannelLayoutTag = 12582924
	KAudioChannelLayoutTag_Atmos_9_1_6        AudioChannelLayoutTag = 12648464
	// KAudioChannelLayoutTag_AudioUnit_4: A quadraphonic symmetrical layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_4 AudioChannelLayoutTag = 7077892
	// KAudioChannelLayoutTag_AudioUnit_5: A pentagonal symmetrical layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_5 AudioChannelLayoutTag = 7143429
	// KAudioChannelLayoutTag_AudioUnit_5_0: A 5-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_5_0 AudioChannelLayoutTag = 7733253
	// KAudioChannelLayoutTag_AudioUnit_5_1: A 5.1-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_5_1 AudioChannelLayoutTag = 7929862
	// KAudioChannelLayoutTag_AudioUnit_6: A hexagonal symmetrical layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_6 AudioChannelLayoutTag = 7208966
	// KAudioChannelLayoutTag_AudioUnit_6_0: A 6-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_6_0 AudioChannelLayoutTag = 9109510
	// KAudioChannelLayoutTag_AudioUnit_6_1: A 6.1-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_6_1 AudioChannelLayoutTag = 8192007
	// KAudioChannelLayoutTag_AudioUnit_7_0: A 7-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_7_0 AudioChannelLayoutTag = 9175047
	// KAudioChannelLayoutTag_AudioUnit_7_0_Front: An alternate 7-channel surround-based layout, for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_7_0_Front AudioChannelLayoutTag = 9699335
	// KAudioChannelLayoutTag_AudioUnit_7_1: A 7.1-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_7_1 AudioChannelLayoutTag = 8388616
	// KAudioChannelLayoutTag_AudioUnit_7_1_Front: A 7.1-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_7_1_Front AudioChannelLayoutTag = 8257544
	// KAudioChannelLayoutTag_AudioUnit_8: An octagonal symmetrical layout, recommended for use by audio units.
	KAudioChannelLayoutTag_AudioUnit_8 AudioChannelLayoutTag = 7274504
	// KAudioChannelLayoutTag_BeginReserved: The beginning value for a reserved range of layout tags.
	KAudioChannelLayoutTag_BeginReserved AudioChannelLayoutTag = 0xf0000000
	// KAudioChannelLayoutTag_Binaural: A binaural stereo audio layout.
	KAudioChannelLayoutTag_Binaural AudioChannelLayoutTag = 6946818
	KAudioChannelLayoutTag_CICP_1   AudioChannelLayoutTag = 6553601
	KAudioChannelLayoutTag_CICP_10  AudioChannelLayoutTag = 8650756
	KAudioChannelLayoutTag_CICP_11  AudioChannelLayoutTag = 8192007
	KAudioChannelLayoutTag_CICP_12  AudioChannelLayoutTag = 8388616
	KAudioChannelLayoutTag_CICP_13  AudioChannelLayoutTag = 13369368
	KAudioChannelLayoutTag_CICP_14  AudioChannelLayoutTag = 13434888
	KAudioChannelLayoutTag_CICP_15  AudioChannelLayoutTag = 13500428
	KAudioChannelLayoutTag_CICP_16  AudioChannelLayoutTag = 13565962
	KAudioChannelLayoutTag_CICP_17  AudioChannelLayoutTag = 13631500
	KAudioChannelLayoutTag_CICP_18  AudioChannelLayoutTag = 13697038
	KAudioChannelLayoutTag_CICP_19  AudioChannelLayoutTag = 13762572
	KAudioChannelLayoutTag_CICP_2   AudioChannelLayoutTag = 6619138
	KAudioChannelLayoutTag_CICP_20  AudioChannelLayoutTag = 13828110
	KAudioChannelLayoutTag_CICP_3   AudioChannelLayoutTag = 7405571
	KAudioChannelLayoutTag_CICP_4   AudioChannelLayoutTag = 7536644
	KAudioChannelLayoutTag_CICP_5   AudioChannelLayoutTag = 7667717
	KAudioChannelLayoutTag_CICP_6   AudioChannelLayoutTag = 7929862
	KAudioChannelLayoutTag_CICP_7   AudioChannelLayoutTag = 8323080
	KAudioChannelLayoutTag_CICP_9   AudioChannelLayoutTag = 8585219
	// KAudioChannelLayoutTag_Cube: A cubic audio layout.
	KAudioChannelLayoutTag_Cube AudioChannelLayoutTag = 7340040
	// KAudioChannelLayoutTag_DTS_3_1: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_3_1 AudioChannelLayoutTag = 11010052
	// KAudioChannelLayoutTag_DTS_4_1: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_4_1 AudioChannelLayoutTag = 11075589
	// KAudioChannelLayoutTag_DTS_6_0_A: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_0_A AudioChannelLayoutTag = 11141126
	// KAudioChannelLayoutTag_DTS_6_0_B: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_0_B AudioChannelLayoutTag = 11206662
	// KAudioChannelLayoutTag_DTS_6_0_C: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_0_C AudioChannelLayoutTag = 11272198
	// KAudioChannelLayoutTag_DTS_6_1_A: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_1_A AudioChannelLayoutTag = 11337735
	// KAudioChannelLayoutTag_DTS_6_1_B: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_1_B AudioChannelLayoutTag = 11403271
	// KAudioChannelLayoutTag_DTS_6_1_C: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_1_C AudioChannelLayoutTag = 11468807
	// KAudioChannelLayoutTag_DTS_6_1_D: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_6_1_D AudioChannelLayoutTag = 11927559
	// KAudioChannelLayoutTag_DTS_7_0: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_7_0 AudioChannelLayoutTag = 11534343
	// KAudioChannelLayoutTag_DTS_7_1: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_7_1 AudioChannelLayoutTag = 11599880
	// KAudioChannelLayoutTag_DTS_8_0_A: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_8_0_A AudioChannelLayoutTag = 11665416
	// KAudioChannelLayoutTag_DTS_8_0_B: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_8_0_B AudioChannelLayoutTag = 11730952
	// KAudioChannelLayoutTag_DTS_8_1_A: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_8_1_A AudioChannelLayoutTag = 11796489
	// KAudioChannelLayoutTag_DTS_8_1_B: A Blu-ray Disc audio layout, defined by DTS (Digital Theater Systems Ltd.).
	KAudioChannelLayoutTag_DTS_8_1_B AudioChannelLayoutTag = 11862025
	// KAudioChannelLayoutTag_DVD_0: A DVD monaural audio layout.
	KAudioChannelLayoutTag_DVD_0 AudioChannelLayoutTag = 6553601
	// KAudioChannelLayoutTag_DVD_1: A DVD stereo audio layout.
	KAudioChannelLayoutTag_DVD_1 AudioChannelLayoutTag = 6619138
	// KAudioChannelLayoutTag_DVD_10: A DVD 3.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_10 AudioChannelLayoutTag = 8912900
	// KAudioChannelLayoutTag_DVD_11: A DVD 4.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_11 AudioChannelLayoutTag = 8978437
	// KAudioChannelLayoutTag_DVD_12: A DVD 5.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_12 AudioChannelLayoutTag = 7929862
	// KAudioChannelLayoutTag_DVD_13: A DVD 4-channel audio layout.
	KAudioChannelLayoutTag_DVD_13 AudioChannelLayoutTag = 7536644
	// KAudioChannelLayoutTag_DVD_14: A DVD 5-channel audio layout.
	KAudioChannelLayoutTag_DVD_14 AudioChannelLayoutTag = 7667717
	// KAudioChannelLayoutTag_DVD_15: A DVD 3.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_15 AudioChannelLayoutTag = 8912900
	// KAudioChannelLayoutTag_DVD_16: A DVD 4.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_16 AudioChannelLayoutTag = 8978437
	// KAudioChannelLayoutTag_DVD_17: A DVD 5.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_17 AudioChannelLayoutTag = 7929862
	// KAudioChannelLayoutTag_DVD_18: A DVD 4.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_18 AudioChannelLayoutTag = 9043973
	// KAudioChannelLayoutTag_DVD_19: A DVD 5-channel audio layout.
	KAudioChannelLayoutTag_DVD_19 AudioChannelLayoutTag = 7733253
	// KAudioChannelLayoutTag_DVD_2: A DVD 3-channel audio layout.
	KAudioChannelLayoutTag_DVD_2 AudioChannelLayoutTag = 8585219
	// KAudioChannelLayoutTag_DVD_20: A DVD 5.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_20 AudioChannelLayoutTag = 7995398
	// KAudioChannelLayoutTag_DVD_3: A DVD 4-channel audio layout.
	KAudioChannelLayoutTag_DVD_3 AudioChannelLayoutTag = 8650756
	// KAudioChannelLayoutTag_DVD_4: A DVD 2.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_4 AudioChannelLayoutTag = 8716291
	// KAudioChannelLayoutTag_DVD_5: A DVD 3.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_5 AudioChannelLayoutTag = 8781828
	// KAudioChannelLayoutTag_DVD_6: A DVD 4.1-channel audio layout.
	KAudioChannelLayoutTag_DVD_6 AudioChannelLayoutTag = 8847365
	// KAudioChannelLayoutTag_DVD_7: A DVD 3-channel audio layout.
	KAudioChannelLayoutTag_DVD_7 AudioChannelLayoutTag = 7405571
	// KAudioChannelLayoutTag_DVD_8: A DVD 4-channel audio layout.
	KAudioChannelLayoutTag_DVD_8 AudioChannelLayoutTag = 7536644
	// KAudioChannelLayoutTag_DVD_9: A DVD 5-channel audio layout.
	KAudioChannelLayoutTag_DVD_9 AudioChannelLayoutTag = 7667717
	// KAudioChannelLayoutTag_DiscreteInOrder: A tag used to map input channels to output channels without changing the channel order.
	KAudioChannelLayoutTag_DiscreteInOrder AudioChannelLayoutTag = 9633792
	// KAudioChannelLayoutTag_EAC3_6_1_A: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_6_1_A AudioChannelLayoutTag = 10289159
	// KAudioChannelLayoutTag_EAC3_6_1_B: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_6_1_B AudioChannelLayoutTag = 10354695
	// KAudioChannelLayoutTag_EAC3_6_1_C: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_6_1_C AudioChannelLayoutTag = 10420231
	// KAudioChannelLayoutTag_EAC3_7_1_A: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_A AudioChannelLayoutTag = 10485768
	// KAudioChannelLayoutTag_EAC3_7_1_B: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_B AudioChannelLayoutTag = 10551304
	// KAudioChannelLayoutTag_EAC3_7_1_C: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_C AudioChannelLayoutTag = 10616840
	// KAudioChannelLayoutTag_EAC3_7_1_D: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_D AudioChannelLayoutTag = 10682376
	// KAudioChannelLayoutTag_EAC3_7_1_E: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_E AudioChannelLayoutTag = 10747912
	// KAudioChannelLayoutTag_EAC3_7_1_F: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_F AudioChannelLayoutTag = 10813448
	// KAudioChannelLayoutTag_EAC3_7_1_G: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_G AudioChannelLayoutTag = 10878984
	// KAudioChannelLayoutTag_EAC3_7_1_H: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC3_7_1_H AudioChannelLayoutTag = 10944520
	// KAudioChannelLayoutTag_EAC_6_0_A: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC_6_0_A AudioChannelLayoutTag = 10158086
	// KAudioChannelLayoutTag_EAC_7_0_A: A Blu-ray Disc audio layout for Enhanced AC-3, also known as Dolby Digital Plus.
	KAudioChannelLayoutTag_EAC_7_0_A AudioChannelLayoutTag = 10223623
	// KAudioChannelLayoutTag_Emagic_Default_7_1: An Emagic 7.1-channel default audio layout.
	KAudioChannelLayoutTag_Emagic_Default_7_1 AudioChannelLayoutTag = 8454152
	// KAudioChannelLayoutTag_EndReserved: The ending value for a reserved range of layout tags.
	KAudioChannelLayoutTag_EndReserved AudioChannelLayoutTag = 0xfffeffff
	// KAudioChannelLayoutTag_HOA_ACN_N3D: A Higher-order Ambisonics, full 3D normalization audio layout.
	KAudioChannelLayoutTag_HOA_ACN_N3D AudioChannelLayoutTag = 12517376
	// KAudioChannelLayoutTag_HOA_ACN_SN3D: A Higher-order Ambisonics, Schmidt semi-normalization audio layout.
	KAudioChannelLayoutTag_HOA_ACN_SN3D AudioChannelLayoutTag = 12451840
	// KAudioChannelLayoutTag_Hexagonal: A hexagonal audio layout.
	KAudioChannelLayoutTag_Hexagonal AudioChannelLayoutTag = 7208966
	// KAudioChannelLayoutTag_ITU_1_0: An ITU 1-channel audio layout.
	KAudioChannelLayoutTag_ITU_1_0 AudioChannelLayoutTag = 6553601
	// KAudioChannelLayoutTag_ITU_2_0: An ITU 2-channel audio layout.
	KAudioChannelLayoutTag_ITU_2_0 AudioChannelLayoutTag = 6619138
	// KAudioChannelLayoutTag_ITU_2_1: An ITU 2.1-channel audio layout.
	KAudioChannelLayoutTag_ITU_2_1 AudioChannelLayoutTag = 8585219
	// KAudioChannelLayoutTag_ITU_2_2: An ITU 2.2-channel audio layout.
	KAudioChannelLayoutTag_ITU_2_2 AudioChannelLayoutTag = 8650756
	// KAudioChannelLayoutTag_ITU_3_0: An ITU 3-channel audio layout.
	KAudioChannelLayoutTag_ITU_3_0 AudioChannelLayoutTag = 7405571
	// KAudioChannelLayoutTag_ITU_3_1: An ITU 3.1-channel audio layout.
	KAudioChannelLayoutTag_ITU_3_1 AudioChannelLayoutTag = 7536644
	// KAudioChannelLayoutTag_ITU_3_2: An ITU 3.2-channel audio layout.
	KAudioChannelLayoutTag_ITU_3_2 AudioChannelLayoutTag = 7667717
	// KAudioChannelLayoutTag_ITU_3_2_1: An ITU 3.2.1-channel audio layout.
	KAudioChannelLayoutTag_ITU_3_2_1 AudioChannelLayoutTag = 7929862
	// KAudioChannelLayoutTag_ITU_3_4_1: An ITU 3.4.1-channel audio layout.
	KAudioChannelLayoutTag_ITU_3_4_1           AudioChannelLayoutTag = 8388616
	KAudioChannelLayoutTag_Logic_4_0_A         AudioChannelLayoutTag = 7536644
	KAudioChannelLayoutTag_Logic_4_0_B         AudioChannelLayoutTag = 7602180
	KAudioChannelLayoutTag_Logic_4_0_C         AudioChannelLayoutTag = 12910596
	KAudioChannelLayoutTag_Logic_5_0_A         AudioChannelLayoutTag = 7667717
	KAudioChannelLayoutTag_Logic_5_0_B         AudioChannelLayoutTag = 7733253
	KAudioChannelLayoutTag_Logic_5_0_C         AudioChannelLayoutTag = 7798789
	KAudioChannelLayoutTag_Logic_5_0_D         AudioChannelLayoutTag = 7864325
	KAudioChannelLayoutTag_Logic_5_1_A         AudioChannelLayoutTag = 7929862
	KAudioChannelLayoutTag_Logic_5_1_B         AudioChannelLayoutTag = 7995398
	KAudioChannelLayoutTag_Logic_5_1_C         AudioChannelLayoutTag = 8060934
	KAudioChannelLayoutTag_Logic_5_1_D         AudioChannelLayoutTag = 8126470
	KAudioChannelLayoutTag_Logic_6_0_A         AudioChannelLayoutTag = 9240582
	KAudioChannelLayoutTag_Logic_6_0_B         AudioChannelLayoutTag = 12976134
	KAudioChannelLayoutTag_Logic_6_0_C         AudioChannelLayoutTag = 9109510
	KAudioChannelLayoutTag_Logic_6_1_A         AudioChannelLayoutTag = 9306119
	KAudioChannelLayoutTag_Logic_6_1_B         AudioChannelLayoutTag = 13041671
	KAudioChannelLayoutTag_Logic_6_1_C         AudioChannelLayoutTag = 8192007
	KAudioChannelLayoutTag_Logic_6_1_D         AudioChannelLayoutTag = 13107207
	KAudioChannelLayoutTag_Logic_7_1_A         AudioChannelLayoutTag = 8388616
	KAudioChannelLayoutTag_Logic_7_1_B         AudioChannelLayoutTag = 13172744
	KAudioChannelLayoutTag_Logic_7_1_C         AudioChannelLayoutTag = 8388616
	KAudioChannelLayoutTag_Logic_7_1_SDDS_A    AudioChannelLayoutTag = 8257544
	KAudioChannelLayoutTag_Logic_7_1_SDDS_B    AudioChannelLayoutTag = 8323080
	KAudioChannelLayoutTag_Logic_7_1_SDDS_C    AudioChannelLayoutTag = 8454152
	KAudioChannelLayoutTag_Logic_Atmos_5_1_2   AudioChannelLayoutTag = 12713992
	KAudioChannelLayoutTag_Logic_Atmos_5_1_4   AudioChannelLayoutTag = 12779530
	KAudioChannelLayoutTag_Logic_Atmos_7_1_2   AudioChannelLayoutTag = 12845066
	KAudioChannelLayoutTag_Logic_Atmos_7_1_4_A AudioChannelLayoutTag = 12582924
	KAudioChannelLayoutTag_Logic_Atmos_7_1_4_B AudioChannelLayoutTag = 13238284
	KAudioChannelLayoutTag_Logic_Atmos_7_1_6   AudioChannelLayoutTag = 13303822
	KAudioChannelLayoutTag_Logic_Mono          AudioChannelLayoutTag = 6553601
	KAudioChannelLayoutTag_Logic_Quadraphonic  AudioChannelLayoutTag = 7077892
	KAudioChannelLayoutTag_Logic_Stereo        AudioChannelLayoutTag = 6619138
	// KAudioChannelLayoutTag_MPEG_1_0: An MPEG 1-channel audio layout.
	KAudioChannelLayoutTag_MPEG_1_0 AudioChannelLayoutTag = 6553601
	// KAudioChannelLayoutTag_MPEG_2_0: An MPEG 2-channel audio layout.
	KAudioChannelLayoutTag_MPEG_2_0 AudioChannelLayoutTag = 6619138
	// KAudioChannelLayoutTag_MPEG_3_0_A: An MPEG 3-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_3_0_A AudioChannelLayoutTag = 7405571
	// KAudioChannelLayoutTag_MPEG_3_0_B: An MPEG 3-channel, configuration B, audio layout.
	KAudioChannelLayoutTag_MPEG_3_0_B AudioChannelLayoutTag = 7471107
	// KAudioChannelLayoutTag_MPEG_4_0_A: An MPEG 4-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_4_0_A AudioChannelLayoutTag = 7536644
	// KAudioChannelLayoutTag_MPEG_4_0_B: An MPEG 4-channel, configuration B, audio layout
	KAudioChannelLayoutTag_MPEG_4_0_B AudioChannelLayoutTag = 7602180
	// KAudioChannelLayoutTag_MPEG_5_0_A: An MPEG 5-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_5_0_A AudioChannelLayoutTag = 7667717
	// KAudioChannelLayoutTag_MPEG_5_0_B: An MPEG 5-channel, configuration B, audio layout.
	KAudioChannelLayoutTag_MPEG_5_0_B AudioChannelLayoutTag = 7733253
	// KAudioChannelLayoutTag_MPEG_5_0_C: An MPEG 5-channel, configuration C, audio layout.
	KAudioChannelLayoutTag_MPEG_5_0_C AudioChannelLayoutTag = 7798789
	// KAudioChannelLayoutTag_MPEG_5_0_D: An MPEG 5-channel, configuration D, audio layout.
	KAudioChannelLayoutTag_MPEG_5_0_D AudioChannelLayoutTag = 7864325
	// KAudioChannelLayoutTag_MPEG_5_0_E: 5 channels, L R Rls Rrs C
	KAudioChannelLayoutTag_MPEG_5_0_E AudioChannelLayoutTag = 14155781
	// KAudioChannelLayoutTag_MPEG_5_1_A: An MPEG 5.1-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_5_1_A AudioChannelLayoutTag = 7929862
	// KAudioChannelLayoutTag_MPEG_5_1_B: An MPEG 5.1-channel, configuration B, audio layout.
	KAudioChannelLayoutTag_MPEG_5_1_B AudioChannelLayoutTag = 7995398
	// KAudioChannelLayoutTag_MPEG_5_1_C: An MPEG 5.1-channel, configuration C, audio layout.
	KAudioChannelLayoutTag_MPEG_5_1_C AudioChannelLayoutTag = 8060934
	// KAudioChannelLayoutTag_MPEG_5_1_D: An MPEG 5.1-channel, configuration D, audio layout.
	KAudioChannelLayoutTag_MPEG_5_1_D AudioChannelLayoutTag = 8126470
	// KAudioChannelLayoutTag_MPEG_5_1_E: 6 channels, L R Rls Rrs C LFE
	KAudioChannelLayoutTag_MPEG_5_1_E AudioChannelLayoutTag = 14221318
	// KAudioChannelLayoutTag_MPEG_6_1_A: An MPEG 6.1-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_6_1_A AudioChannelLayoutTag = 8192007
	// KAudioChannelLayoutTag_MPEG_6_1_B: 7 channels, L R Ls Rs C Cs LFE
	KAudioChannelLayoutTag_MPEG_6_1_B AudioChannelLayoutTag = 14286855
	// KAudioChannelLayoutTag_MPEG_7_1_A: An MPEG 7.1-channel, configuration A, audio layout.
	KAudioChannelLayoutTag_MPEG_7_1_A AudioChannelLayoutTag = 8257544
	// KAudioChannelLayoutTag_MPEG_7_1_B: An MPEG 7.1-channel, configuration B, audio layout.
	KAudioChannelLayoutTag_MPEG_7_1_B AudioChannelLayoutTag = 8323080
	// KAudioChannelLayoutTag_MPEG_7_1_C: An MPEG 7.1-channel, configuration C, audio layout.
	KAudioChannelLayoutTag_MPEG_7_1_C AudioChannelLayoutTag = 8388616
	// KAudioChannelLayoutTag_MPEG_7_1_D: 8 channels, L R Rls Rrs Ls Rs C LFE
	KAudioChannelLayoutTag_MPEG_7_1_D AudioChannelLayoutTag = 14352392
	// KAudioChannelLayoutTag_MatrixStereo: A matrix-encoded stereo stream.
	KAudioChannelLayoutTag_MatrixStereo AudioChannelLayoutTag = 6750210
	// KAudioChannelLayoutTag_MidSide: A middle and side channel audio layout.
	KAudioChannelLayoutTag_MidSide AudioChannelLayoutTag = 6815746
	// KAudioChannelLayoutTag_Mono: A standard monophonic stream.
	KAudioChannelLayoutTag_Mono AudioChannelLayoutTag = 6553601
	// KAudioChannelLayoutTag_Octagonal: An octagonal audio layout.
	KAudioChannelLayoutTag_Octagonal AudioChannelLayoutTag = 7274504
	KAudioChannelLayoutTag_Ogg_3_0   AudioChannelLayoutTag = 9830403
	KAudioChannelLayoutTag_Ogg_4_0   AudioChannelLayoutTag = 12124164
	KAudioChannelLayoutTag_Ogg_5_0   AudioChannelLayoutTag = 13893637
	KAudioChannelLayoutTag_Ogg_5_1   AudioChannelLayoutTag = 13959174
	KAudioChannelLayoutTag_Ogg_6_1   AudioChannelLayoutTag = 14024711
	KAudioChannelLayoutTag_Ogg_7_1   AudioChannelLayoutTag = 14090248
	// KAudioChannelLayoutTag_Pentagonal: A pentalgonal audio layout.
	KAudioChannelLayoutTag_Pentagonal AudioChannelLayoutTag = 7143429
	// KAudioChannelLayoutTag_Quadraphonic: A quadraphonic audio layout.
	KAudioChannelLayoutTag_Quadraphonic AudioChannelLayoutTag = 7077892
	// KAudioChannelLayoutTag_SMPTE_DTV: An SMPTE DTV audio layout.
	KAudioChannelLayoutTag_SMPTE_DTV AudioChannelLayoutTag = 8519688
	// KAudioChannelLayoutTag_Stereo: A standard stereophonic stream.
	KAudioChannelLayoutTag_Stereo AudioChannelLayoutTag = 6619138
	// KAudioChannelLayoutTag_StereoHeadphones: A standard stereo stream; headphone playback implied.
	KAudioChannelLayoutTag_StereoHeadphones AudioChannelLayoutTag = 6684674
	// KAudioChannelLayoutTag_TMH_10_2_full: An extended TMH 10.2 multiple-channel surround-based layout, recommended for use by audio units.
	KAudioChannelLayoutTag_TMH_10_2_full AudioChannelLayoutTag = 9568277
	// KAudioChannelLayoutTag_TMH_10_2_std: A TMH 10.2 multiple-channel surround-based layout .
	KAudioChannelLayoutTag_TMH_10_2_std AudioChannelLayoutTag = 9502736
	// KAudioChannelLayoutTag_Unknown: The channel layout is unknown.
	KAudioChannelLayoutTag_Unknown AudioChannelLayoutTag = 0xffff0000
	// KAudioChannelLayoutTag_UseChannelBitmap: A bitmap that defines the layout mapping.
	KAudioChannelLayoutTag_UseChannelBitmap AudioChannelLayoutTag = 65536
	// KAudioChannelLayoutTag_UseChannelDescriptions: An array of audio channel description structures that defines the layout mapping.
	KAudioChannelLayoutTag_UseChannelDescriptions AudioChannelLayoutTag = 0
	KAudioChannelLayoutTag_WAVE_2_1               AudioChannelLayoutTag = 8716291
	KAudioChannelLayoutTag_WAVE_3_0               AudioChannelLayoutTag = 7405571
	KAudioChannelLayoutTag_WAVE_4_0_A             AudioChannelLayoutTag = 8650756
	KAudioChannelLayoutTag_WAVE_4_0_B             AudioChannelLayoutTag = 12124164
	KAudioChannelLayoutTag_WAVE_5_0_A             AudioChannelLayoutTag = 7667717
	KAudioChannelLayoutTag_WAVE_5_0_B             AudioChannelLayoutTag = 12189701
	KAudioChannelLayoutTag_WAVE_5_1_A             AudioChannelLayoutTag = 7929862
	KAudioChannelLayoutTag_WAVE_5_1_B             AudioChannelLayoutTag = 12255238
	KAudioChannelLayoutTag_WAVE_6_1               AudioChannelLayoutTag = 12320775
	KAudioChannelLayoutTag_WAVE_7_1               AudioChannelLayoutTag = 12386312
	// KAudioChannelLayoutTag_XY: A coincident, angled microphone pair.
	KAudioChannelLayoutTag_XY AudioChannelLayoutTag = 6881282
)

type AudioClassDescription

type AudioClassDescription struct {
	MType         uint32 // A four character code that a manufacturer defines for a codec type.
	MSubType      uint32 // A four character code that a manufacturer defines for a codec subtype.
	MManufacturer uint32 // A four character code that identifies a codec manufacturer.

}

AudioClassDescription - A structure that describes an audio codec.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioClassDescription

type AudioFormatFlags

type AudioFormatFlags = uint32

AudioFormatFlags is a type definition for audio format flags.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioFormatFlags

const (
	// KAudioFormatFlagIsAlignedHigh: A flag that indicates whether placement of the sample bits is with the high or low bits of the channel.
	KAudioFormatFlagIsAlignedHigh AudioFormatFlags = 16
	// KAudioFormatFlagIsBigEndian: A flag that indicates whether the format is big or little endian.
	KAudioFormatFlagIsBigEndian AudioFormatFlags = 2
	// KAudioFormatFlagIsFloat: A flag that indicates whether the format is floating point or integer.
	KAudioFormatFlagIsFloat AudioFormatFlags = 1
	// KAudioFormatFlagIsNonInterleaved: A flag that indicates whether the samples for each channel or frame are continguously located, and whether the layout of the channels or frames is end-to-end.
	KAudioFormatFlagIsNonInterleaved AudioFormatFlags = 32
	// KAudioFormatFlagIsNonMixable: A flag that indicates the format is nonmixable.
	KAudioFormatFlagIsNonMixable AudioFormatFlags = 64
	// KAudioFormatFlagIsPacked: A flag that indicates whether placement of the sample bits occupy the entire available bits of the channel.
	KAudioFormatFlagIsPacked AudioFormatFlags = 8
	// KAudioFormatFlagIsSignedInteger: A flag that indicates whether the format is signed or unsigned integer.
	KAudioFormatFlagIsSignedInteger AudioFormatFlags = 4
	// KAudioFormatFlagsAreAllClear: A flag that indicates whether all the flags are clear.
	KAudioFormatFlagsAreAllClear AudioFormatFlags = 0x80000000
	// KAudioFormatFlagsAudioUnitCanonical: The flags for the canonical audio unit and processing sample type.
	KAudioFormatFlagsAudioUnitCanonical AudioFormatFlags = 41
	// KAudioFormatFlagsCanonical: The set of flags for the canonical input-output audio sample type.
	KAudioFormatFlagsCanonical AudioFormatFlags = 9
	// KAudioFormatFlagsNativeEndian: A flag that specifies whether the format is big endian, depending on the endianness of the processor at build time.
	KAudioFormatFlagsNativeEndian AudioFormatFlags = 0
	// KAudioFormatFlagsNativeFloatPacked: The flags for the canonical format of fully packed, native endian floating-point data.
	KAudioFormatFlagsNativeFloatPacked AudioFormatFlags = 9
	// KLinearPCMFormatFlagIsAlignedHigh: A flag that indicates whether placement of the sample bits is with the high or low bits of the channel.
	KLinearPCMFormatFlagIsAlignedHigh AudioFormatFlags = 16
	// KLinearPCMFormatFlagIsBigEndian: A flag that indicates whether the format is big or little endian.
	KLinearPCMFormatFlagIsBigEndian AudioFormatFlags = 2
	// KLinearPCMFormatFlagIsFloat: A flag that indicates whether the format is floating point or integer.
	KLinearPCMFormatFlagIsFloat AudioFormatFlags = 1
	// KLinearPCMFormatFlagIsNonInterleaved: A flag that indicates whether the samples for each channel or frame are continguously located, and whether the layout of the channels or frames is end-to-end.
	KLinearPCMFormatFlagIsNonInterleaved AudioFormatFlags = 32
	// KLinearPCMFormatFlagIsNonMixable: A flag that indicates the format is nonmixable.
	KLinearPCMFormatFlagIsNonMixable AudioFormatFlags = 64
	// KLinearPCMFormatFlagIsPacked: A flag that indicates whether placement of the sample bits occupy the entire available bits of the channel.
	KLinearPCMFormatFlagIsPacked AudioFormatFlags = 8
	// KLinearPCMFormatFlagIsSignedInteger: A flag that indicates whether the format is signed or unsigned integer.
	KLinearPCMFormatFlagIsSignedInteger AudioFormatFlags = 4
	// KLinearPCMFormatFlagsAreAllClear: A flag that indicates whether all the flags are clear.
	KLinearPCMFormatFlagsAreAllClear AudioFormatFlags = 2147483648
	// KLinearPCMFormatFlagsSampleFractionMask: A flag that indicates the sample fraction mask.
	KLinearPCMFormatFlagsSampleFractionMask AudioFormatFlags = 8064
	// KLinearPCMFormatFlagsSampleFractionShift: A flag that indicates the bit position of the PCM flag’s 6-bit bitfield.
	KLinearPCMFormatFlagsSampleFractionShift AudioFormatFlags = 7
)

type AudioFormatID

type AudioFormatID = uint32

AudioFormatID is a type definition for audio format identifiers.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioFormatID

const (
	// KAudioFormat60958AC3: A key that specifies the AC-3 codec, which provides data packaged for transport over an IEC 60958-compliant digital audio interface, and uses standard flags.
	KAudioFormat60958AC3 AudioFormatID = 'c'<<24 | 'a'<<16 | 'c'<<8 | '3' // 'cac3'
	// KAudioFormatAC3: A key that specifies the AC-3 codec, and uses no flags.
	KAudioFormatAC3 AudioFormatID = 'a'<<24 | 'c'<<16 | '-'<<8 | '3' // 'ac-3'
	// KAudioFormatAES3: A key that specifies the codec defined by the AES3-2003 standard, and uses no flags.
	KAudioFormatAES3 AudioFormatID = 'a'<<24 | 'e'<<16 | 's'<<8 | '3' // 'aes3'
	// KAudioFormatALaw: A key that specifies the A-law 2:1 codec, and uses no flags.
	KAudioFormatALaw AudioFormatID = 'a'<<24 | 'l'<<16 | 'a'<<8 | 'w' // 'alaw'
	// KAudioFormatAMR: A key that specifies the Adaptive Multi-Rate (AMR) narrow band speech codec, and uses no flags.
	KAudioFormatAMR AudioFormatID = 's'<<24 | 'a'<<16 | 'm'<<8 | 'r' // 'samr'
	// KAudioFormatAMR_WB: A key that specifies the AMR Wideband speech codec, and uses no flags.
	KAudioFormatAMR_WB AudioFormatID = 's'<<24 | 'a'<<16 | 'w'<<8 | 'b' // 'sawb'
	KAudioFormatAPAC   AudioFormatID = 'a'<<24 | 'p'<<16 | 'a'<<8 | 'c' // 'apac'
	// KAudioFormatAppleIMA4: A key that specifies Apple’s implementation of the IMA 4:1 ADPCM codec, and uses no flags.
	KAudioFormatAppleIMA4 AudioFormatID = 'i'<<24 | 'm'<<16 | 'a'<<8 | '4' // 'ima4'
	// KAudioFormatAppleLossless: A key that specifies the Apple Lossless codec, and uses flags to indicate the bit depth of the source material.
	KAudioFormatAppleLossless AudioFormatID = 'a'<<24 | 'l'<<16 | 'a'<<8 | 'c' // 'alac'
	// KAudioFormatAudible: A key that specifies the codec for Audible audio books, and uses no flags.
	KAudioFormatAudible AudioFormatID = 'A'<<24 | 'U'<<16 | 'D'<<8 | 'B' // 'AUDB'
	// KAudioFormatDVIIntelIMA: A key that specifies the codec defined by DVI/Intel IMA ADPCM - ACM code 17, and uses no flags.
	KAudioFormatDVIIntelIMA AudioFormatID = 0x6d730011
	// KAudioFormatEnhancedAC3: A key that specifies the Enhanced AC-3 codec, and uses no flags.
	KAudioFormatEnhancedAC3 AudioFormatID = 'e'<<24 | 'c'<<16 | '-'<<8 | '3' // 'ec-3'
	// KAudioFormatFLAC: A key that specifies the Free Lossless Audio Codec (FLAC), and uses flags to indicate the bit depth of the source material.
	KAudioFormatFLAC AudioFormatID = 'f'<<24 | 'l'<<16 | 'a'<<8 | 'c' // 'flac'
	// KAudioFormatLinearPCM: A key that specifies the linear PCM codec, and uses the standard flags.
	KAudioFormatLinearPCM AudioFormatID = 'l'<<24 | 'p'<<16 | 'c'<<8 | 'm' // 'lpcm'
	// KAudioFormatMACE3: A key that specifies the MACE 3:1 codec, and uses no flags.
	KAudioFormatMACE3 AudioFormatID = 'M'<<24 | 'A'<<16 | 'C'<<8 | '3' // 'MAC3'
	// KAudioFormatMACE6: A key that specifies the MACE C:1 codec, and uses no flags.
	KAudioFormatMACE6 AudioFormatID = 'M'<<24 | 'A'<<16 | 'C'<<8 | '6' // 'MAC6'
	// KAudioFormatMIDIStream: A key that specifies the MIDI stream codec, and uses no flags.
	KAudioFormatMIDIStream AudioFormatID = 'm'<<24 | 'i'<<16 | 'd'<<8 | 'i' // 'midi'
	// KAudioFormatMPEG4AAC: A key that specifies the MPEG-4 AAC Low Complexity codec, and uses no flags.
	KAudioFormatMPEG4AAC AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | ' ' // 'aac '
	// KAudioFormatMPEG4AAC_ELD: A key that specifies the MPEG-4 Enhanced Low Delay AAC codec, and uses no flags.
	KAudioFormatMPEG4AAC_ELD AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'e' // 'aace'
	// KAudioFormatMPEG4AAC_ELD_SBR: A key that specifies the MPEG-4 Enhanced Low Delay AAC codec with a spectral band replication (SBR) extension layer, and uses no flags.
	KAudioFormatMPEG4AAC_ELD_SBR AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'f' // 'aacf'
	// KAudioFormatMPEG4AAC_ELD_V2: A key that specifies the MPEG-4 Enhanced Low Delay AAC version 2 codec, and uses no flags.
	KAudioFormatMPEG4AAC_ELD_V2 AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'g' // 'aacg'
	// KAudioFormatMPEG4AAC_HE: A key that specifies the MPEG-4 High-Efficiency AAC codec, and uses no flags.
	KAudioFormatMPEG4AAC_HE AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'h' // 'aach'
	// KAudioFormatMPEG4AAC_HE_V2: A key that specifies the MPEG-4 High-Efficiency AAC version 2 codec, and uses no flags.
	KAudioFormatMPEG4AAC_HE_V2 AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'p' // 'aacp'
	// KAudioFormatMPEG4AAC_LD: A key that specifies the MPEG-4 Low Delay AAC codec, and uses no flags.
	KAudioFormatMPEG4AAC_LD AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 'l' // 'aacl'
	// KAudioFormatMPEG4AAC_Spatial: A key that specifies the MPEG-4 Spatial Audio Coding codec, and uses no flags.
	KAudioFormatMPEG4AAC_Spatial AudioFormatID = 'a'<<24 | 'a'<<16 | 'c'<<8 | 's' // 'aacs'
	// KAudioFormatMPEG4CELP: A key that specifies the MPEG-4 CELP codec, and uses flags to indicate the specific kind of data.
	KAudioFormatMPEG4CELP AudioFormatID = 'c'<<24 | 'e'<<16 | 'l'<<8 | 'p' // 'celp'
	// KAudioFormatMPEG4HVXC: A key that specifies the MPEG-4 HVXC codec, and uses no flags.
	KAudioFormatMPEG4HVXC AudioFormatID = 'h'<<24 | 'v'<<16 | 'x'<<8 | 'c' // 'hvxc'
	// KAudioFormatMPEG4TwinVQ: A key that specifies the MPEG-4 TwinVQ codec, and uses no flags.
	KAudioFormatMPEG4TwinVQ AudioFormatID = 't'<<24 | 'w'<<16 | 'v'<<8 | 'q' // 'twvq'
	// KAudioFormatMPEGD_USAC: A key that specifies the MPEG-D Unified Speech and Audio Coding codec, and uses no flags.
	KAudioFormatMPEGD_USAC AudioFormatID = 'u'<<24 | 's'<<16 | 'a'<<8 | 'c' // 'usac'
	// KAudioFormatMPEGLayer1: A key that specifies the MPEG-1/2, Layer I audio codec, and uses no flags.
	KAudioFormatMPEGLayer1 AudioFormatID = '.'<<24 | 'm'<<16 | 'p'<<8 | '1' // '.mp1'
	// KAudioFormatMPEGLayer2: A key that specifies the MPEG-1/2, Layer II audio codec, and uses no flags.
	KAudioFormatMPEGLayer2 AudioFormatID = '.'<<24 | 'm'<<16 | 'p'<<8 | '2' // '.mp2'
	// KAudioFormatMPEGLayer3: A key that specifies the MPEG-1/2, Layer III audio codec, and uses no flags.
	KAudioFormatMPEGLayer3 AudioFormatID = '.'<<24 | 'm'<<16 | 'p'<<8 | '3' // '.mp3'
	// KAudioFormatMicrosoftGSM: A key that specifies the Microsoft GSM 6.10 - ACM code 49 codec, and uses no flags.
	KAudioFormatMicrosoftGSM AudioFormatID = 0x6d730031
	// KAudioFormatOpus: A key that specifies the Opus codec, and uses no flags.
	KAudioFormatOpus AudioFormatID = 'o'<<24 | 'p'<<16 | 'u'<<8 | 's' // 'opus'
	// KAudioFormatParameterValueStream: A key that specifies the A side-chain of float 32 data that an audio unit provides for sending high-density parameter value control information, and uses no flags.
	KAudioFormatParameterValueStream AudioFormatID = 'a'<<24 | 'p'<<16 | 'v'<<8 | 's' // 'apvs'
	// KAudioFormatQDesign: A key that specifies the QDesign music codec, and uses no flags.
	KAudioFormatQDesign AudioFormatID = 'Q'<<24 | 'D'<<16 | 'M'<<8 | 'C' // 'QDMC'
	// KAudioFormatQDesign2: A key that specifies the QDesign 2 music codec, and uses no flags.
	KAudioFormatQDesign2 AudioFormatID = 'Q'<<24 | 'D'<<16 | 'M'<<8 | '2' // 'QDM2'
	// KAudioFormatQUALCOMM: A key that specifies the Qualcomm PureVoice codec, and uses no flags.
	KAudioFormatQUALCOMM AudioFormatID = 'Q'<<24 | 'c'<<16 | 'l'<<8 | 'p' // 'Qclp'
	// KAudioFormatTimeCode: A key that specifies the A stream of audio timestamp structures, and uses audio timestamp flags.
	KAudioFormatTimeCode AudioFormatID = 't'<<24 | 'i'<<16 | 'm'<<8 | 'e' // 'time'
	// KAudioFormatULaw: A key that specifies the μ-Law 2:1 codec, and uses no flags.
	KAudioFormatULaw AudioFormatID = 'u'<<24 | 'l'<<16 | 'a'<<8 | 'w' // 'ulaw'
	// KAudioFormatiLBC: A key that specifies the internet Low Bitrate Codec (iLBC) narrow band speech codec, and uses no flags.
	KAudioFormatiLBC AudioFormatID = 'i'<<24 | 'l'<<16 | 'b'<<8 | 'c' // 'ilbc'
)

type AudioSampleType

type AudioSampleType = float32

AudioSampleType is the canonical audio data sample type for input and output.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioSampleType

type AudioSessionID

type AudioSessionID = uint32

AudioSessionID is a unique identifier of an audio session.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioSessionID

type AudioStreamBasicDescription

type AudioStreamBasicDescription struct {
	MSampleRate       float64          // The number of frames per second of the data in the stream, when playing the stream at normal speed.
	MFormatID         AudioFormatID    // An identifier specifying the general audio data format in the stream.
	MFormatFlags      AudioFormatFlags // Format-specific flags to specify details of the format.
	MBytesPerPacket   uint32           // The number of bytes in a packet of audio data.
	MFramesPerPacket  uint32           // The number of frames in a packet of audio data.
	MBytesPerFrame    uint32           // The number of bytes from the start of one frame to the start of the next frame in an audio buffer.
	MChannelsPerFrame uint32           // The number of channels in each frame of audio data.
	MBitsPerChannel   uint32           // The number of bits for one audio sample.
	MReserved         uint32           // The amount to pad the structure to force an even 8-byte alignment.

}

AudioStreamBasicDescription - A format specification for an audio stream.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioStreamBasicDescription

type AudioStreamPacketDependencyDescription

type AudioStreamPacketDependencyDescription struct {
	MIsIndependentlyDecodable uint32
	MPreRollCount             uint32
	MFlags                    uint32
	MReserved                 uint32
}

AudioStreamPacketDependencyDescription

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioStreamPacketDependencyDescription

type AudioStreamPacketDescription

type AudioStreamPacketDescription struct {
	MStartOffset            int64  // The number of bytes from the start of the buffer to the beginning of the packet.
	MVariableFramesInPacket uint32 // The number of sample frames of data in the packet.
	MDataByteSize           uint32 // The number of bytes in the packet.

}

AudioStreamPacketDescription - A value that describes a packet in a buffer of audio data.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioStreamPacketDescription

type AudioTimeStamp

type AudioTimeStamp struct {
	MSampleTime    float64             // The absolute sample frame time.
	MHostTime      uint64              // The host machine’s time base (see `CoreAudio/HostTime.h`).
	MRateScalar    float64             // The ratio of actual host ticks per sample frame to the nominal host ticks per sample frame.
	MWordClockTime uint64              // The word clock time.
	MSMPTETime     SMPTETime           // The SMPTE time (see [SMPTETime](<https://developer.apple.com/documentation/CoreAudioTypes/SMPTETime>)).
	MFlags         AudioTimeStampFlags // A set of flags indicating which representations of the time are valid; see `Audio Time Stamp Flags` and `Audio Time Stamp Flag Combination Constant`.
	MReserved      uint32              // Pads the structure out to force an even 8-byte alignment.

}

AudioTimeStamp - A structure that represents a timestamp value.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioTimeStamp

type AudioTimeStampFlags

type AudioTimeStampFlags uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioTimeStampFlags

const (
	// KAudioTimeStampHostTimeValid: A flag that indicates that the host time is valid.
	KAudioTimeStampHostTimeValid AudioTimeStampFlags = 2
	// KAudioTimeStampNothingValid: A flag that indicates no fields are valid.
	KAudioTimeStampNothingValid AudioTimeStampFlags = 0
	// KAudioTimeStampRateScalarValid: A flag that indicates that the rate scalar is valid.
	KAudioTimeStampRateScalarValid AudioTimeStampFlags = 4
	// KAudioTimeStampSMPTETimeValid: A flag that indicates that the SMPTE time is valid.
	KAudioTimeStampSMPTETimeValid AudioTimeStampFlags = 16
	// KAudioTimeStampSampleHostTimeValid: A flag that indicates that the sample frame time and the host time are valid.
	KAudioTimeStampSampleHostTimeValid AudioTimeStampFlags = 3
	// KAudioTimeStampSampleTimeValid: A flag that indicates that the sample frame time is valid.
	KAudioTimeStampSampleTimeValid AudioTimeStampFlags = 1
	// KAudioTimeStampWordClockTimeValid: A flag that indicates that the word clock time is valid.
	KAudioTimeStampWordClockTimeValid AudioTimeStampFlags = 8
)

func (AudioTimeStampFlags) String

func (e AudioTimeStampFlags) String() string

type AudioUnitSampleType

type AudioUnitSampleType = float32

AudioUnitSampleType is the canonical audio data sample type for audio processing.

See: https://developer.apple.com/documentation/CoreAudioTypes/AudioUnitSampleType

type AudioValueRange

type AudioValueRange struct {
	MMinimum float64 // The minimum value.
	MMaximum float64 // The maximum value.

}

AudioValueRange - A structure that represents a continuous range of values.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioValueRange

type AudioValueTranslation

type AudioValueTranslation struct {
	MInputData      unsafe.Pointer // The buffer containing the data to be translated.
	MInputDataSize  uint32         // The number of bytes in the buffer pointed at by `mInputData`.
	MOutputData     unsafe.Pointer // The buffer to hold the result of the translation.
	MOutputDataSize uint32         // The number of bytes in the buffer pointed at by `mOutputData`.

}

AudioValueTranslation - A structure that stores buffers to use in translation operations.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/AudioValueTranslation

type KAudio

type KAudio int32
const (
	KAudio_BadFilePathError KAudio = '!'<<24 | 'p'<<16 | 't'<<8 | 'h' // '!pth'
	// KAudio_FileNotFoundError: An error that indicates the file wasn’t found.
	KAudio_FileNotFoundError   KAudio = -43
	KAudio_FilePermissionError KAudio = -54
	// KAudio_MemFullError: An error that indicates that the heap zone is full.
	KAudio_MemFullError KAudio = -108
	KAudio_NoError      KAudio = 0
	// KAudio_ParamError: An error in the parameter list of the function.
	KAudio_ParamError            KAudio = -50
	KAudio_TooManyFilesOpenError KAudio = -42
	// KAudio_UnimplementedError: An error that indicates the app called an unimplemented system function.
	KAudio_UnimplementedError KAudio = -4
)

func (KAudio) String

func (e KAudio) String() string

type KAudioChannelLabel deprecated

type KAudioChannelLabel = AudioChannelLabel

KAudioChannelLabel is the pre-v0.7.0 name of AudioChannelLabel.

Deprecated: use AudioChannelLabel.

type KAudioChannelLayoutTag deprecated

type KAudioChannelLayoutTag = AudioChannelLayoutTag

KAudioChannelLayoutTag is the pre-v0.7.0 name of AudioChannelLayoutTag.

Deprecated: use AudioChannelLayoutTag.

type KAudioFormatFlags deprecated

type KAudioFormatFlags = AudioFormatFlags

KAudioFormatFlags is the pre-v0.7.0 name of AudioFormatFlags.

Deprecated: use AudioFormatFlags.

type KaudioNoerror deprecated added in v0.6.17

type KaudioNoerror = KAudio

KaudioNoerror is the pre-v0.7.0 name of KAudio.

Deprecated: use KAudio.

type MPEG4ObjectID

type MPEG4ObjectID int

See: https://developer.apple.com/documentation/CoreAudioTypes/MPEG4ObjectID

const (
	// KMPEG4Object_AAC_LC: A constant that specifies lossless coding, which provides compression with no loss of quality.
	KMPEG4Object_AAC_LC MPEG4ObjectID = 2
	// KMPEG4Object_AAC_LTP: A constant that specifies long-term prediction, which reduces redundancy in a coded signal.
	KMPEG4Object_AAC_LTP MPEG4ObjectID = 4
	// KMPEG4Object_AAC_Main: A constant that specifies advanced audio coding, which is the basic MPEG-4 technology.
	KMPEG4Object_AAC_Main MPEG4ObjectID = 1
	// KMPEG4Object_AAC_SBR: A constant that specifies spectral band replication, which reconstructs high-frequency content from lower frequencies and side information.
	KMPEG4Object_AAC_SBR MPEG4ObjectID = 5
	// KMPEG4Object_AAC_SSR: A constant that specifies scalable sampling rate, which provides different sampling frequencies for different targets.
	KMPEG4Object_AAC_SSR MPEG4ObjectID = 3
	// KMPEG4Object_AAC_Scalable: A constant that specifies scalable lossless coding.
	KMPEG4Object_AAC_Scalable MPEG4ObjectID = 6
	// KMPEG4Object_CELP: A constant that specifies code-excited linear prediction, which is a narrow-band/wide-band speech codec.
	KMPEG4Object_CELP MPEG4ObjectID = 8
	// KMPEG4Object_HVXC: A constant that specifies harmonic vector excitation coding, which is a very-low bit-rate parametric speech codec.
	KMPEG4Object_HVXC MPEG4ObjectID = 9
	// KMPEG4Object_TwinVQ: A constant that specifies transform-domain weighted interleaved vector quantization.
	KMPEG4Object_TwinVQ MPEG4ObjectID = 7
)

func (MPEG4ObjectID) String

func (e MPEG4ObjectID) String() string

type SMPTETime

type SMPTETime struct {
	MSubframes       int16          // A subframe offset to the HH:MM:SS:FF time. You can use this field to position a time marker somewhere within the time span represented by a video frame, if necessary.
	MSubframeDivisor int16          // The number of subframes per video frame (typically 80).
	MCounter         uint32         // The total number of messages received. It takes 8 messages to carry a full SMPTE time code.
	MType            SMPTETimeType  // A SMPTE time type constant indicating the kind of SMPTE time used (see `SMPTE Timecode Types`).
	MFlags           SMPTETimeFlags // A set of flags that indicate the SMPTE state (see `SMPTE Time Flags`).
	MHours           int16          // The value of the hours portion of the SMPTE time.
	MMinutes         int16          // The value of the minutes portion of the SMPTE time.
	MSeconds         int16          // The value of the seconds portion of the SMPTE time.
	MFrames          int16          // The value of the frames portion of the SMPTE time.

}

SMPTETime - A structure that defines an SMPTE time value.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreAudioTypes/SMPTETime

type SMPTETimeFlags

type SMPTETimeFlags uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/SMPTETimeFlags

const (
	// KSMPTETimeRunning: # Discussion
	KSMPTETimeRunning SMPTETimeFlags = 2
	KSMPTETimeUnknown SMPTETimeFlags = 0
	// KSMPTETimeValid: # Discussion
	KSMPTETimeValid SMPTETimeFlags = 1
)

func (SMPTETimeFlags) String

func (e SMPTETimeFlags) String() string

type SMPTETimeType

type SMPTETimeType uint32

See: https://developer.apple.com/documentation/CoreAudioTypes/SMPTETimeType

const (
	// KSMPTETimeType2398: # Discussion
	KSMPTETimeType2398 SMPTETimeType = 11
	// KSMPTETimeType24: # Discussion
	KSMPTETimeType24 SMPTETimeType = 0
	// KSMPTETimeType25: # Discussion
	KSMPTETimeType25 SMPTETimeType = 1
	// KSMPTETimeType2997: # Discussion
	KSMPTETimeType2997 SMPTETimeType = 4
	// KSMPTETimeType2997Drop: # Discussion
	KSMPTETimeType2997Drop SMPTETimeType = 5
	// KSMPTETimeType30: # Discussion
	KSMPTETimeType30 SMPTETimeType = 3
	// KSMPTETimeType30Drop: # Discussion
	KSMPTETimeType30Drop SMPTETimeType = 2
	// KSMPTETimeType50: # Discussion
	KSMPTETimeType50 SMPTETimeType = 10
	// KSMPTETimeType5994: # Discussion
	KSMPTETimeType5994 SMPTETimeType = 7
	// KSMPTETimeType5994Drop: # Discussion
	KSMPTETimeType5994Drop SMPTETimeType = 9
	// KSMPTETimeType60: # Discussion
	KSMPTETimeType60 SMPTETimeType = 6
	// KSMPTETimeType60Drop: # Discussion
	KSMPTETimeType60Drop SMPTETimeType = 8
)

func (SMPTETimeType) String

func (e SMPTETimeType) String() string

Jump to

Keyboard shortcuts

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