Documentation Archive Developer
Search

AVFoundation Changes for Swift

AVFoundation

Declaration
From
class AVAudioConverter : NSObject {
    init(from fromFormat: AVAudioFormat, to toFormat: AVAudioFormat)
    func reset()
    var inputFormat: AVAudioFormat { get }
    var outputFormat: AVAudioFormat { get }
    var channelMap: [NSNumber]
    var magicCookie: Data?
    var downmix: Bool
    var dither: Bool
    var sampleRateConverterQuality: Int
    var sampleRateConverterAlgorithm: String
    var primeMethod: AVAudioConverterPrimeMethod
    var primeInfo: AVAudioConverterPrimeInfo
    func convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throws
    func convert(to outputBuffer: AVAudioBuffer, error outError: NSErrorPointer, withInputFrom inputBlock: AVFoundation.AVAudioConverterInputBlock) -> AVAudioConverterOutputStatus
    var bitRate: Int
    var bitRateStrategy: String?
    var maximumOutputPacketSize: Int { get }
    var availableEncodeBitRates: [NSNumber]? { get }
    var applicableEncodeBitRates: [NSNumber]? { get }
    var availableEncodeSampleRates: [NSNumber]? { get }
    var applicableEncodeSampleRates: [NSNumber]? { get }
    var availableEncodeChannelLayoutTags: [NSNumber]? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioConverter : CVarArg {
}
extension AVAudioConverter : Equatable, Hashable {
    var hashValue: Int { get }
}
extension AVAudioConverter {
    var bitRate: Int
    var bitRateStrategy: String?
    var maximumOutputPacketSize: Int { get }
    var availableEncodeBitRates: [NSNumber]? { get }
    var applicableEncodeBitRates: [NSNumber]? { get }
    var availableEncodeSampleRates: [NSNumber]? { get }
    var applicableEncodeSampleRates: [NSNumber]? { get }
    var availableEncodeChannelLayoutTags: [NSNumber]? { get }
}
To
class AVAudioConverter : NSObject {
    init(from fromFormat: AVAudioFormat, to toFormat: AVAudioFormat)
    func reset()
    var inputFormat: AVAudioFormat { get }
    var outputFormat: AVAudioFormat { get }
    var channelMap: [NSNumber]
    var magicCookie: Data?
    var downmix: Bool
    var dither: Bool
    var sampleRateConverterQuality: Int
    var sampleRateConverterAlgorithm: String
    var primeMethod: AVAudioConverterPrimeMethod
    var primeInfo: AVAudioConverterPrimeInfo
    func convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throws
    func convert(to outputBuffer: AVAudioBuffer, error outError: NSErrorPointer, withInputFrom inputBlock: @escaping AVFoundation.AVAudioConverterInputBlock) -> AVAudioConverterOutputStatus
    var bitRate: Int
    var bitRateStrategy: String?
    var maximumOutputPacketSize: Int { get }
    var availableEncodeBitRates: [NSNumber]? { get }
    var applicableEncodeBitRates: [NSNumber]? { get }
    var availableEncodeSampleRates: [NSNumber]? { get }
    var applicableEncodeSampleRates: [NSNumber]? { get }
    var availableEncodeChannelLayoutTags: [NSNumber]? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioConverter : CVarArg {
}
extension AVAudioConverter : Equatable, Hashable {
    var hashValue: Int { get }
}
extension AVAudioConverter {
    var bitRate: Int
    var bitRateStrategy: String?
    var maximumOutputPacketSize: Int { get }
    var availableEncodeBitRates: [NSNumber]? { get }
    var applicableEncodeBitRates: [NSNumber]? { get }
    var availableEncodeSampleRates: [NSNumber]? { get }
    var applicableEncodeSampleRates: [NSNumber]? { get }
    var availableEncodeChannelLayoutTags: [NSNumber]? { get }
}

Declaration
From
func convert(to outputBuffer: AVAudioBuffer, error outError: NSErrorPointer, withInputFrom inputBlock: AVFoundation.AVAudioConverterInputBlock) -> AVAudioConverterOutputStatus
To
func convert(to outputBuffer: AVAudioBuffer, error outError: NSErrorPointer, withInputFrom inputBlock: @escaping AVFoundation.AVAudioConverterInputBlock) -> AVAudioConverterOutputStatus

Modified AVAudioNode
Declaration
From
class AVAudioNode : NSObject {
    func reset()
    func inputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormat
    func outputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormat
    func name(forInputBus bus: AVAudioNodeBus) -> String
    func name(forOutputBus bus: AVAudioNodeBus) -> String
    func installTap(onBus bus: AVAudioNodeBus, bufferSize bufferSize: AVAudioFrameCount, format format: AVAudioFormat?, block tapBlock: AVFoundation.AVAudioNodeTapBlock)
    func removeTap(onBus bus: AVAudioNodeBus)
    var engine: AVAudioEngine? { get }
    var numberOfInputs: Int { get }
    var numberOfOutputs: Int { get }
    var lastRenderTime: AVAudioTime? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioNode : CVarArg {
}
extension AVAudioNode : Equatable, Hashable {
    var hashValue: Int { get }
}
To
class AVAudioNode : NSObject {
    func reset()
    func inputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormat
    func outputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormat
    func name(forInputBus bus: AVAudioNodeBus) -> String
    func name(forOutputBus bus: AVAudioNodeBus) -> String
    func installTap(onBus bus: AVAudioNodeBus, bufferSize bufferSize: AVAudioFrameCount, format format: AVAudioFormat?, block tapBlock: @escaping AVFoundation.AVAudioNodeTapBlock)
    func removeTap(onBus bus: AVAudioNodeBus)
    var engine: AVAudioEngine? { get }
    var numberOfInputs: Int { get }
    var numberOfOutputs: Int { get }
    var lastRenderTime: AVAudioTime? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioNode : CVarArg {
}
extension AVAudioNode : Equatable, Hashable {
    var hashValue: Int { get }
}

Declaration
From
func installTap(onBus bus: AVAudioNodeBus, bufferSize bufferSize: AVAudioFrameCount, format format: AVAudioFormat?, block tapBlock: AVFoundation.AVAudioNodeTapBlock)
To
func installTap(onBus bus: AVAudioNodeBus, bufferSize bufferSize: AVAudioFrameCount, format format: AVAudioFormat?, block tapBlock: @escaping AVFoundation.AVAudioNodeTapBlock)

Declaration
From
class AVAudioSession : NSObject {
    class func sharedInstance() -> AVAudioSession
    func setActive(_ active: Bool) throws
    func setActive(_ active: Bool, with options: AVAudioSessionSetActiveOptions = []) throws
    var availableCategories: [String] { get }
    func setCategory(_ category: String) throws
    func setCategory(_ category: String, with options: AVAudioSessionCategoryOptions = []) throws
    func setCategory(_ category: String, mode mode: String, options options: AVAudioSessionCategoryOptions = []) throws
    var category: String { get }
    func recordPermission() -> AVAudioSessionRecordPermission
    func requestRecordPermission(_ response: AVFoundation.PermissionBlock)
    var categoryOptions: AVAudioSessionCategoryOptions { get }
    var availableModes: [String] { get }
    func setMode(_ mode: String) throws
    var mode: String { get }
    func overrideOutputAudioPort(_ portOverride: AVAudioSessionPortOverride) throws
    var isOtherAudioPlaying: Bool { get }
    var secondaryAudioShouldBeSilencedHint: Bool { get }
    var currentRoute: AVAudioSessionRouteDescription { get }
    func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
    var preferredInput: AVAudioSessionPortDescription? { get }
    var availableInputs: [AVAudioSessionPortDescription]? { get }
    unowned(unsafe) var delegate: AVAudioSessionDelegate?
    func setActive(_ active: Bool, withFlags flags: Int) throws
    var inputIsAvailable: Bool { get }
    var currentHardwareSampleRate: Double { get }
    var currentHardwareInputNumberOfChannels: Int { get }
    var currentHardwareOutputNumberOfChannels: Int { get }
    func setPreferredHardwareSampleRate(_ sampleRate: Double) throws
    var preferredHardwareSampleRate: Double { get }
    func setPreferredSampleRate(_ sampleRate: Double) throws
    var preferredSampleRate: Double { get }
    func setPreferredIOBufferDuration(_ duration: TimeInterval) throws
    var preferredIOBufferDuration: TimeInterval { get }
    func setPreferredInputNumberOfChannels(_ count: Int) throws
    var preferredInputNumberOfChannels: Int { get }
    func setPreferredOutputNumberOfChannels(_ count: Int) throws
    var preferredOutputNumberOfChannels: Int { get }
    var maximumInputNumberOfChannels: Int { get }
    var maximumOutputNumberOfChannels: Int { get }
    func setInputGain(_ gain: Float) throws
    var inputGain: Float { get }
    var isInputGainSettable: Bool { get }
    var isInputAvailable: Bool { get }
    var inputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var inputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setInputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var outputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var outputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var sampleRate: Double { get }
    var inputNumberOfChannels: Int { get }
    var outputNumberOfChannels: Int { get }
    var outputVolume: Float { get }
    var inputLatency: TimeInterval { get }
    var outputLatency: TimeInterval { get }
    var ioBufferDuration: TimeInterval { get }
    func setAggregatedIOPreference(_ inIOType: AVAudioSessionIOType) throws
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioSession : CVarArg {
}
extension AVAudioSession : Equatable, Hashable {
    var hashValue: Int { get }
}
extension AVAudioSession {
    func setPreferredSampleRate(_ sampleRate: Double) throws
    var preferredSampleRate: Double { get }
    func setPreferredIOBufferDuration(_ duration: TimeInterval) throws
    var preferredIOBufferDuration: TimeInterval { get }
    func setPreferredInputNumberOfChannels(_ count: Int) throws
    var preferredInputNumberOfChannels: Int { get }
    func setPreferredOutputNumberOfChannels(_ count: Int) throws
    var preferredOutputNumberOfChannels: Int { get }
    var maximumInputNumberOfChannels: Int { get }
    var maximumOutputNumberOfChannels: Int { get }
    func setInputGain(_ gain: Float) throws
    var inputGain: Float { get }
    var isInputGainSettable: Bool { get }
    var isInputAvailable: Bool { get }
    var inputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var inputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setInputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var outputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var outputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var sampleRate: Double { get }
    var inputNumberOfChannels: Int { get }
    var outputNumberOfChannels: Int { get }
    var outputVolume: Float { get }
    var inputLatency: TimeInterval { get }
    var outputLatency: TimeInterval { get }
    var ioBufferDuration: TimeInterval { get }
    func setAggregatedIOPreference(_ inIOType: AVAudioSessionIOType) throws
}
extension AVAudioSession {
    unowned(unsafe) var delegate: AVAudioSessionDelegate?
    func setActive(_ active: Bool, withFlags flags: Int) throws
    var inputIsAvailable: Bool { get }
    var currentHardwareSampleRate: Double { get }
    var currentHardwareInputNumberOfChannels: Int { get }
    var currentHardwareOutputNumberOfChannels: Int { get }
    func setPreferredHardwareSampleRate(_ sampleRate: Double) throws
    var preferredHardwareSampleRate: Double { get }
}
To
class AVAudioSession : NSObject {
    class func sharedInstance() -> AVAudioSession
    func setActive(_ active: Bool) throws
    func setActive(_ active: Bool, with options: AVAudioSessionSetActiveOptions = []) throws
    var availableCategories: [String] { get }
    func setCategory(_ category: String) throws
    func setCategory(_ category: String, with options: AVAudioSessionCategoryOptions = []) throws
    func setCategory(_ category: String, mode mode: String, options options: AVAudioSessionCategoryOptions = []) throws
    var category: String { get }
    func recordPermission() -> AVAudioSessionRecordPermission
    func requestRecordPermission(_ response: @escaping AVFoundation.PermissionBlock)
    var categoryOptions: AVAudioSessionCategoryOptions { get }
    var availableModes: [String] { get }
    func setMode(_ mode: String) throws
    var mode: String { get }
    func overrideOutputAudioPort(_ portOverride: AVAudioSessionPortOverride) throws
    var isOtherAudioPlaying: Bool { get }
    var secondaryAudioShouldBeSilencedHint: Bool { get }
    var currentRoute: AVAudioSessionRouteDescription { get }
    func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
    var preferredInput: AVAudioSessionPortDescription? { get }
    var availableInputs: [AVAudioSessionPortDescription]? { get }
    unowned(unsafe) var delegate: AVAudioSessionDelegate?
    func setActive(_ active: Bool, withFlags flags: Int) throws
    var inputIsAvailable: Bool { get }
    var currentHardwareSampleRate: Double { get }
    var currentHardwareInputNumberOfChannels: Int { get }
    var currentHardwareOutputNumberOfChannels: Int { get }
    func setPreferredHardwareSampleRate(_ sampleRate: Double) throws
    var preferredHardwareSampleRate: Double { get }
    func setPreferredSampleRate(_ sampleRate: Double) throws
    var preferredSampleRate: Double { get }
    func setPreferredIOBufferDuration(_ duration: TimeInterval) throws
    var preferredIOBufferDuration: TimeInterval { get }
    func setPreferredInputNumberOfChannels(_ count: Int) throws
    var preferredInputNumberOfChannels: Int { get }
    func setPreferredOutputNumberOfChannels(_ count: Int) throws
    var preferredOutputNumberOfChannels: Int { get }
    var maximumInputNumberOfChannels: Int { get }
    var maximumOutputNumberOfChannels: Int { get }
    func setInputGain(_ gain: Float) throws
    var inputGain: Float { get }
    var isInputGainSettable: Bool { get }
    var isInputAvailable: Bool { get }
    var inputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var inputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setInputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var outputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var outputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var sampleRate: Double { get }
    var inputNumberOfChannels: Int { get }
    var outputNumberOfChannels: Int { get }
    var outputVolume: Float { get }
    var inputLatency: TimeInterval { get }
    var outputLatency: TimeInterval { get }
    var ioBufferDuration: TimeInterval { get }
    func setAggregatedIOPreference(_ inIOType: AVAudioSessionIOType) throws
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension AVAudioSession : CVarArg {
}
extension AVAudioSession : Equatable, Hashable {
    var hashValue: Int { get }
}
extension AVAudioSession {
    func setPreferredSampleRate(_ sampleRate: Double) throws
    var preferredSampleRate: Double { get }
    func setPreferredIOBufferDuration(_ duration: TimeInterval) throws
    var preferredIOBufferDuration: TimeInterval { get }
    func setPreferredInputNumberOfChannels(_ count: Int) throws
    var preferredInputNumberOfChannels: Int { get }
    func setPreferredOutputNumberOfChannels(_ count: Int) throws
    var preferredOutputNumberOfChannels: Int { get }
    var maximumInputNumberOfChannels: Int { get }
    var maximumOutputNumberOfChannels: Int { get }
    func setInputGain(_ gain: Float) throws
    var inputGain: Float { get }
    var isInputGainSettable: Bool { get }
    var isInputAvailable: Bool { get }
    var inputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var inputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setInputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var outputDataSources: [AVAudioSessionDataSourceDescription]? { get }
    var outputDataSource: AVAudioSessionDataSourceDescription? { get }
    func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
    var sampleRate: Double { get }
    var inputNumberOfChannels: Int { get }
    var outputNumberOfChannels: Int { get }
    var outputVolume: Float { get }
    var inputLatency: TimeInterval { get }
    var outputLatency: TimeInterval { get }
    var ioBufferDuration: TimeInterval { get }
    func setAggregatedIOPreference(_ inIOType: AVAudioSessionIOType) throws
}
extension AVAudioSession {
    unowned(unsafe) var delegate: AVAudioSessionDelegate?
    func setActive(_ active: Bool, withFlags flags: Int) throws
    var inputIsAvailable: Bool { get }
    var currentHardwareSampleRate: Double { get }
    var currentHardwareInputNumberOfChannels: Int { get }
    var currentHardwareOutputNumberOfChannels: Int { get }
    func setPreferredHardwareSampleRate(_ sampleRate: Double) throws
    var preferredHardwareSampleRate: Double { get }
}