convert
TypeScriptconvert(outputBuffer: AVAudioPCMBuffer, inputBuffer: AVAudioPCMBuffer): voidSwift declarationfunc convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throwsclass · iOS 9.0+ · SDK 27.1
class AVAudioConverterconvert(outputBuffer: AVAudioPCMBuffer, inputBuffer: AVAudioPCMBuffer): voidSwift declarationfunc convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throwsstatic init(fromFormat: AVAudioFormat, toFormat: AVAudioFormat): (AVAudioConverter) | nullSwift declarationinit?(from fromFormat: AVAudioFormat, to toFormat: AVAudioFormat)reset(): voidSwift declarationfunc reset()get applicableEncodeBitRates(): (Array<_Foundation_NSNumber>) | nullSwift declarationvar applicableEncodeBitRates: [NSNumber]? { get }get applicableEncodeSampleRates(): (Array<_Foundation_NSNumber>) | nullSwift declarationvar applicableEncodeSampleRates: [NSNumber]? { get }get audioSyncPacketFrequency(): numberSwift declarationvar audioSyncPacketFrequency: Int { get set }set audioSyncPacketFrequency(value: number)Swift declarationvar audioSyncPacketFrequency: Int { get set }get availableEncodeBitRates(): (Array<_Foundation_NSNumber>) | nullSwift declarationvar availableEncodeBitRates: [NSNumber]? { get }get availableEncodeChannelLayoutTags(): (Array<_Foundation_NSNumber>) | nullSwift declarationvar availableEncodeChannelLayoutTags: [NSNumber]? { get }get availableEncodeSampleRates(): (Array<_Foundation_NSNumber>) | nullSwift declarationvar availableEncodeSampleRates: [NSNumber]? { get }get bitRate(): numberSwift declarationvar bitRate: Int { get set }set bitRate(value: number)Swift declarationvar bitRate: Int { get set }get bitRateStrategy(): (string) | nullSwift declarationvar bitRateStrategy: String? { get set }set bitRateStrategy(value: (string) | null)Swift declarationvar bitRateStrategy: String? { get set }get channelMap(): Array<_Foundation_NSNumber>Swift declarationvar channelMap: [NSNumber] { get set }set channelMap(value: Array<_Foundation_NSNumber>)Swift declarationvar channelMap: [NSNumber] { get set }get contentSource(): AVAudioContentSourceSwift declarationvar contentSource: AVAudioContentSource { get set }set contentSource(value: AVAudioContentSource)Swift declarationvar contentSource: AVAudioContentSource { get set }get dither(): booleanSwift declarationvar dither: Bool { get set }set dither(value: boolean)Swift declarationvar dither: Bool { get set }get downmix(): booleanSwift declarationvar downmix: Bool { get set }set downmix(value: boolean)Swift declarationvar downmix: Bool { get set }get dynamicRangeControlConfiguration(): AVAudioDynamicRangeControlConfigurationSwift declarationvar dynamicRangeControlConfiguration: AVAudioDynamicRangeControlConfiguration { get set }set dynamicRangeControlConfiguration(value: AVAudioDynamicRangeControlConfiguration)Swift declarationvar dynamicRangeControlConfiguration: AVAudioDynamicRangeControlConfiguration { get set }get inputFormat(): AVAudioFormatSwift declarationvar inputFormat: AVAudioFormat { get }get magicCookie(): (ArrayBuffer) | nullSwift declarationvar magicCookie: Data? { get set }set magicCookie(value: (ArrayBuffer) | null)Swift declarationvar magicCookie: Data? { get set }get maximumOutputPacketSize(): numberSwift declarationvar maximumOutputPacketSize: Int { get }get outputFormat(): AVAudioFormatSwift declarationvar outputFormat: AVAudioFormat { get }get primeInfo(): AVAudioConverterPrimeInfoSwift declarationvar primeInfo: AVAudioConverterPrimeInfo { get set }set primeInfo(value: AVAudioConverterPrimeInfo)Swift declarationvar primeInfo: AVAudioConverterPrimeInfo { get set }get primeMethod(): AVAudioConverterPrimeMethodSwift declarationvar primeMethod: AVAudioConverterPrimeMethod { get set }set primeMethod(value: AVAudioConverterPrimeMethod)Swift declarationvar primeMethod: AVAudioConverterPrimeMethod { get set }get sampleRateConverterAlgorithm(): (string) | nullSwift declarationvar sampleRateConverterAlgorithm: String? { get set }set sampleRateConverterAlgorithm(value: (string) | null)Swift declarationvar sampleRateConverterAlgorithm: String? { get set }get sampleRateConverterQuality(): numberSwift declarationvar sampleRateConverterQuality: Int { get set }set sampleRateConverterQuality(value: number)Swift declarationvar sampleRateConverterQuality: Int { get set }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)