One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioPCMBuffer

class · iOS 8.0+ · SDK 27.1

class AVAudioPCMBuffer

Members (9)

init · iOS 15.0+

init

TypeScript
static initPcmFormatBufferListNoCopyDeallocator(format: AVAudioFormat, bufferList: SDKHandle, deallocator?: (((arg0: SDKHandle) => void)) | null): (AVAudioPCMBuffer) | null
Swift declaration
init?(pcmFormat format: AVAudioFormat, bufferListNoCopy bufferList: UnsafePointer<AudioBufferList>, deallocator: ((UnsafePointer<AudioBufferList>) -> Void)? = nil)
init · iOS 8.0+

init

TypeScript
static initPcmFormatFrameCapacity(format: AVAudioFormat, frameCapacity: number): (AVAudioPCMBuffer) | null
Swift declaration
init?(pcmFormat format: AVAudioFormat, frameCapacity: AVAudioFrameCount)
get · iOS 8.0+

frameCapacity

TypeScript
get frameCapacity(): number
Swift declaration
var frameCapacity: AVAudioFrameCount { get }
get · iOS 8.0+

frameLength

TypeScript
get frameLength(): number
Swift declaration
var frameLength: AVAudioFrameCount { get set }
set · iOS 8.0+

frameLength

TypeScript
set frameLength(value: number)
Swift declaration
var frameLength: AVAudioFrameCount { get set }
get · iOS 8.0+

stride

TypeScript
get stride(): number
Swift declaration
var stride: Int { get }
method · iOS 27.0+

withUnsafeAudioBufferList

TypeScript
withUnsafeAudioBufferList(body: ((arg0: SDKHandle) => unknown)): unknown
Swift declaration
func withUnsafeAudioBufferList<R>(_ body: (UnsafePointer<AudioBufferList>) throws -> R) rethrows -> R

Provides scoped read-only access to the audio buffer list. - Parameter body: A closure that receives a pointer to the audio buffer list. - Returns: The value returned by the closure.

init · iOS 27.0+

init

TypeScript
static initCopying(source: AVAudioPCMBuffer): AVAudioPCMBuffer
Swift declaration
convenience init(copying source: AVAudioPCMBuffer)

Creates a mutable buffer by copying another PCM buffer's audio data. This initializer allocates a new mutable buffer and copies all audio data channel by channel. - Parameter source: The source PCM buffer to copy from.

init · iOS 27.0+

init

TypeScript
static initCopying63595(readOnlyBuffer: AVReadOnlyAudioPCMBuffer): AVAudioPCMBuffer
Swift declaration
convenience init(copying readOnlyBuffer: AVReadOnlyAudioPCMBuffer)

Creates a mutable buffer by copying a read-only buffer's audio data. This initializer allocates a new mutable buffer and copies all audio data from the read-only buffer. - Parameter readOnlyBuffer: The read-only buffer to copy from.

Skipped declarations

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

AVAudioPCMBuffer.channelData(_:)

The iOS SDK compiler rejected this binding: instance method 'out' requires that 'AVAudioPCMBuffer.ChannelData' be a class type

AVAudioPCMBuffer.mutableChannelData(_:)

The iOS SDK compiler rejected this binding: instance method 'out' requires that 'AVAudioPCMBuffer.MutableChannelData' be a class type

AVAudioPCMBuffer.floatChannelData

Nested memory pointers cannot cross the bridge.

AVAudioPCMBuffer.int16ChannelData

Nested memory pointers cannot cross the bridge.

AVAudioPCMBuffer.int32ChannelData

Nested memory pointers cannot cross the bridge.

AVAudioPCMBuffer.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All AVFAudio types →