One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioConverter

class · iOS 9.0+ · SDK 27.1

class AVAudioConverter

Members (37)

method · iOS 9.0+

convert

TypeScript
convert(outputBuffer: AVAudioPCMBuffer, inputBuffer: AVAudioPCMBuffer): void
Swift declaration
func convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throws
init · iOS 9.0+

init

TypeScript
static init(fromFormat: AVAudioFormat, toFormat: AVAudioFormat): (AVAudioConverter) | null
Swift declaration
init?(from fromFormat: AVAudioFormat, to toFormat: AVAudioFormat)
method · iOS 9.0+

reset

TypeScript
reset(): void
Swift declaration
func reset()
get

applicableEncodeBitRates

TypeScript
get applicableEncodeBitRates(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var applicableEncodeBitRates: [NSNumber]? { get }
get

applicableEncodeSampleRates

TypeScript
get applicableEncodeSampleRates(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var applicableEncodeSampleRates: [NSNumber]? { get }
get · iOS 26.0+

audioSyncPacketFrequency

TypeScript
get audioSyncPacketFrequency(): number
Swift declaration
var audioSyncPacketFrequency: Int { get set }
set · iOS 26.0+

audioSyncPacketFrequency

TypeScript
set audioSyncPacketFrequency(value: number)
Swift declaration
var audioSyncPacketFrequency: Int { get set }
get

availableEncodeBitRates

TypeScript
get availableEncodeBitRates(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var availableEncodeBitRates: [NSNumber]? { get }
get

availableEncodeChannelLayoutTags

TypeScript
get availableEncodeChannelLayoutTags(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var availableEncodeChannelLayoutTags: [NSNumber]? { get }
get

availableEncodeSampleRates

TypeScript
get availableEncodeSampleRates(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var availableEncodeSampleRates: [NSNumber]? { get }
get

bitRate

TypeScript
get bitRate(): number
Swift declaration
var bitRate: Int { get set }
set

bitRate

TypeScript
set bitRate(value: number)
Swift declaration
var bitRate: Int { get set }
get

bitRateStrategy

TypeScript
get bitRateStrategy(): (string) | null
Swift declaration
var bitRateStrategy: String? { get set }
set

bitRateStrategy

TypeScript
set bitRateStrategy(value: (string) | null)
Swift declaration
var bitRateStrategy: String? { get set }
get · iOS 9.0+

channelMap

TypeScript
get channelMap(): Array<_Foundation_NSNumber>
Swift declaration
var channelMap: [NSNumber] { get set }
set · iOS 9.0+

channelMap

TypeScript
set channelMap(value: Array<_Foundation_NSNumber>)
Swift declaration
var channelMap: [NSNumber] { get set }
get · iOS 26.0+

contentSource

TypeScript
get contentSource(): AVAudioContentSource
Swift declaration
var contentSource: AVAudioContentSource { get set }
set · iOS 26.0+

contentSource

TypeScript
set contentSource(value: AVAudioContentSource)
Swift declaration
var contentSource: AVAudioContentSource { get set }
get · iOS 9.0+

dither

TypeScript
get dither(): boolean
Swift declaration
var dither: Bool { get set }
set · iOS 9.0+

dither

TypeScript
set dither(value: boolean)
Swift declaration
var dither: Bool { get set }
get · iOS 9.0+

downmix

TypeScript
get downmix(): boolean
Swift declaration
var downmix: Bool { get set }
set · iOS 9.0+

downmix

TypeScript
set downmix(value: boolean)
Swift declaration
var downmix: Bool { get set }
get · iOS 26.0+

dynamicRangeControlConfiguration

TypeScript
get dynamicRangeControlConfiguration(): AVAudioDynamicRangeControlConfiguration
Swift declaration
var dynamicRangeControlConfiguration: AVAudioDynamicRangeControlConfiguration { get set }
set · iOS 26.0+

dynamicRangeControlConfiguration

TypeScript
set dynamicRangeControlConfiguration(value: AVAudioDynamicRangeControlConfiguration)
Swift declaration
var dynamicRangeControlConfiguration: AVAudioDynamicRangeControlConfiguration { get set }
get · iOS 9.0+

inputFormat

TypeScript
get inputFormat(): AVAudioFormat
Swift declaration
var inputFormat: AVAudioFormat { get }
get · iOS 9.0+

magicCookie

TypeScript
get magicCookie(): (ArrayBuffer) | null
Swift declaration
var magicCookie: Data? { get set }
set · iOS 9.0+

magicCookie

TypeScript
set magicCookie(value: (ArrayBuffer) | null)
Swift declaration
var magicCookie: Data? { get set }
get

maximumOutputPacketSize

TypeScript
get maximumOutputPacketSize(): number
Swift declaration
var maximumOutputPacketSize: Int { get }
get · iOS 9.0+

outputFormat

TypeScript
get outputFormat(): AVAudioFormat
Swift declaration
var outputFormat: AVAudioFormat { get }
get · iOS 9.0+

primeInfo

TypeScript
get primeInfo(): AVAudioConverterPrimeInfo
Swift declaration
var primeInfo: AVAudioConverterPrimeInfo { get set }
set · iOS 9.0+

primeInfo

TypeScript
set primeInfo(value: AVAudioConverterPrimeInfo)
Swift declaration
var primeInfo: AVAudioConverterPrimeInfo { get set }
get · iOS 9.0+

primeMethod

TypeScript
get primeMethod(): AVAudioConverterPrimeMethod
Swift declaration
var primeMethod: AVAudioConverterPrimeMethod { get set }
set · iOS 9.0+

primeMethod

TypeScript
set primeMethod(value: AVAudioConverterPrimeMethod)
Swift declaration
var primeMethod: AVAudioConverterPrimeMethod { get set }
get · iOS 9.0+

sampleRateConverterAlgorithm

TypeScript
get sampleRateConverterAlgorithm(): (string) | null
Swift declaration
var sampleRateConverterAlgorithm: String? { get set }
set · iOS 9.0+

sampleRateConverterAlgorithm

TypeScript
set sampleRateConverterAlgorithm(value: (string) | null)
Swift declaration
var sampleRateConverterAlgorithm: String? { get set }
get · iOS 9.0+

sampleRateConverterQuality

TypeScript
get sampleRateConverterQuality(): number
Swift declaration
var sampleRateConverterQuality: Int { get set }
set · iOS 9.0+

sampleRateConverterQuality

TypeScript
set sampleRateConverterQuality(value: number)
Swift declaration
var sampleRateConverterQuality: Int { get set }

Skipped declarations

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

AVAudioConverter.convert(to:error:withInputFrom:)

callback cannot propagate synchronous failure

AVAudioConverter.init()

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

All AVFAudio types →