One Logo Pool Ball
Media · IOS API REFERENCE

CoreAudio

Use the Core Audio framework to interact with device’s audio hardware.

25 types

50 callable entries

4 skipped

93% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

AudioChannelLayout.UnsafeMutablePointer

struct · iOS 13.0+

AudioChannelLayout.UnsafeMutablePointer.Element

typealias · iOS 13.0+

AudioChannelLayout.UnsafeMutablePointer.Index

typealias · iOS 13.0+

AudioChannelLayout.UnsafeMutablePointer.Indices

typealias · iOS 13.0+

AudioChannelLayout.UnsafeMutablePointer.Iterator

typealias · iOS 13.0+

AudioChannelLayout.UnsafeMutablePointer.SubSequence

typealias · iOS 13.0+

AudioChannelLayout.UnsafePointer

struct · iOS 13.0+

AudioChannelLayout.UnsafePointer.Element

typealias · iOS 13.0+

AudioChannelLayout.UnsafePointer.Index

typealias · iOS 13.0+

AudioChannelLayout.UnsafePointer.Indices

typealias · iOS 13.0+

AudioChannelLayout.UnsafePointer.Iterator

typealias · iOS 13.0+

AudioChannelLayout.UnsafePointer.SubSequence

typealias · iOS 13.0+

ManagedAudioChannelLayout

struct · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions

struct · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions.Element

typealias · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions.Index

typealias · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions.Indices

typealias · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions.Iterator

typealias · iOS 13.0+

ManagedAudioChannelLayout.ChannelDescriptions.SubSequence

typealias · iOS 13.0+

UnsafeMutableAudioBufferListPointer

struct

UnsafeMutableAudioBufferListPointer.Element

typealias

UnsafeMutableAudioBufferListPointer.Index

typealias

UnsafeMutableAudioBufferListPointer.Indices

typealias

UnsafeMutableAudioBufferListPointer.Iterator

typealias

UnsafeMutableAudioBufferListPointer.SubSequence

typealias

Functions and constants

init

init

TypeScript
static init(typedBuffer: unknown[], numberOfChannels: number): _CoreAudioTypes_AudioBuffer
Swift declaration
init<Element>(_ typedBuffer: UnsafeMutableBufferPointer<Element>, numberOfChannels: Int)

Initialize an `AudioBuffer` from an `UnsafeMutableBufferPointer<Element>`.

static

sizeInBytes

TypeScript
static sizeInBytes(maximumBuffers: number): number
Swift declaration
static func sizeInBytes(maximumBuffers: Int) -> Int

- Returns: the size in bytes of an `AudioBufferList` that can hold up to `maximumBuffers` `AudioBuffer`s.

static

allocate

TypeScript
static allocate(maximumBuffers: number): UnsafeMutableAudioBufferListPointer
Swift declaration
static func allocate(maximumBuffers: Int) -> UnsafeMutableAudioBufferListPointer

Allocate an `AudioBufferList` with a capacity for the specified number of `AudioBuffer`s. The `count` property of the new `AudioBufferList` is initialized to `maximumBuffers`. The memory should be freed with `free()`.

static · iOS 13.0+

sizeInBytes

TypeScript
static sizeInBytes(maximumDescriptions: number): number
Swift declaration
static func sizeInBytes(maximumDescriptions: Int) -> Int

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ManagedAudioChannelLayout.init(audioChannelLayoutPointer:deallocator:)

This output pointer cannot safely be represented by the bridge.

AudioChannelLayout.allocate(maximumDescriptions:)

This output pointer cannot safely be represented by the bridge.

UnsafeBufferPointer.init(_:)

The containing type is outside the generated SDK type index.

UnsafeMutableBufferPointer.init(_:)

The containing type is outside the generated SDK type index.