sizeInBytes
TypeScriptget sizeInBytes(): numberSwift declarationvar sizeInBytes: Int { get }The size, in bytes, of the backing `AudioChannelLayout`.
struct · iOS 13.0+ · SDK 27.1
struct ManagedAudioChannelLayoutThis structure is used to specify channel layouts in files and hardware.
get sizeInBytes(): numberSwift declarationvar sizeInBytes: Int { get }The size, in bytes, of the backing `AudioChannelLayout`.
setAllToUnknown(): voidSwift declarationmutating func setAllToUnknown()Sets all `AudioChannelDescriptions` to `kAudioChannelLabel_Unknown`.
get numberOfChannels(): numberSwift declarationvar numberOfChannels: Int { get }The number of channels described by this `ManagedAudioChannelLayout`.
withUnsafePointer(body: ((arg0: SDKHandle) => unknown)): unknownSwift declarationfunc withUnsafePointer<Result>(_ body: (UnsafePointer<AudioChannelLayout>) throws -> Result) rethrows -> ResultCalls a closure with a pointer to the backing `AudioChannelLayout`. - Parameter body: a closure that is called with a pointer to the backing `AudioChannelLayout`.
get channelDescriptions(): ManagedAudioChannelLayout_ChannelDescriptionsSwift declarationvar channelDescriptions: ManagedAudioChannelLayout.ChannelDescriptions { get set }The `AudioChannelDescription`s that describe the layout.
set channelDescriptions(value: ManagedAudioChannelLayout_ChannelDescriptions)Swift declarationvar channelDescriptions: ManagedAudioChannelLayout.ChannelDescriptions { get set }The `AudioChannelDescription`s that describe the layout.
static initChannelDescriptions(channelDescriptions: Array<_CoreAudioTypes_AudioChannelDescription>): ManagedAudioChannelLayoutSwift declarationinit(channelDescriptions: [AudioChannelDescription])Creates a new `ManagedAudioChannelLayout` from an array of `AudioChannelDescription`. - Parameter channelDescriptions: An array of `AudioChannelDescription` that are set on this `ManagedAudioChannelLayout`.
static initMaximumDescriptions(maximumDescriptions: number): ManagedAudioChannelLayoutSwift declarationinit(maximumDescriptions: Int)Creates a new `ManagedAudioChannelLayout` that can hold up to `maximumDescriptions`. Use `ManagedAudioChannelLayout(tag:)` if no `AudioChannelDescription` are needed. - Parameter maximumDescriptions: The maximum number of `AudioChannelDescription` this `ManagedAudioChannelLayout` can hold. This must be greater than `0`.
withUnsafeMutablePointer(body: ((arg0: SDKHandle) => unknown)): unknownSwift declarationmutating func withUnsafeMutablePointer<Result>(_ body: (UnsafeMutablePointer<AudioChannelLayout>) throws -> Result) rethrows -> ResultCalls a closure with a mutable pointer to the backing `AudioChannelLayout`. - Parameter body: a closure that is called with a mutable pointer to the backing `AudioChannelLayout`. It is invalid to increase mNumberChannelDescriptions.
static initTag(tag: number): ManagedAudioChannelLayoutSwift declarationinit(tag: AudioChannelLayoutTag)Creates a new `ManagedAudioChannelLayout` with a given tag. - Parameter tag: The `AudioChannelLayoutTag` that indicates the layout.
get tag(): numberSwift declarationvar tag: AudioChannelLayoutTag { get set }The `AudioChannelLayoutTag` that indicates the layout.
set tag(value: number)Swift declarationvar tag: AudioChannelLayoutTag { get set }The `AudioChannelLayoutTag` that indicates the layout.
get bitmap(): _CoreAudioTypes_AudioChannelBitmapSwift declarationvar bitmap: AudioChannelBitmap { get set }If `tag` is set to `kAudioChannelLayoutTag_UseChannelBitmap`, this is the channel usage bitmap.
set bitmap(value: _CoreAudioTypes_AudioChannelBitmap)Swift declarationvar bitmap: AudioChannelBitmap { get set }If `tag` is set to `kAudioChannelLayoutTag_UseChannelBitmap`, this is the channel usage bitmap.
1 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.