Documentation Archive Developer
Search

CoreAudioKit Changes for Swift

CoreAudioKit

Removed AUCustomViewPersistentData.customViewPersistentData() -> [NSObject : AnyObject]!
Removed AUCustomViewPersistentData.setCustomViewPersistentData(_: [NSObject : AnyObject]!)
Removed AUViewParametersDisplayFlag
Removed AUViewPropertiesDisplayFlag
Removed AUViewTitleDisplayFlag
Declaration
From
protocol AUCustomViewPersistentData {
    func customViewPersistentData() -> [NSObject : AnyObject]!
    func setCustomViewPersistentData(_ data: [NSObject : AnyObject]!)
}
To
protocol AUCustomViewPersistentData {
    var customViewPersistentData: [String : AnyObject]? { get set }
}

Modified AUGenericView
Declaration
From
class AUGenericView : NSView, AUCustomViewPersistentData {
    var audioUnit: AudioUnit { get }
    var showsExpertParameters: Bool
    init!(audioUnit au: AudioUnit)
    init!(audioUnit inAudioUnit: AudioUnit, displayFlags inFlags: UInt32)
}
To
class AUGenericView : NSView, AUCustomViewPersistentData {
    var audioUnit: AudioUnit { get }
    var showsExpertParameters: Bool
    init(audioUnit au: AudioUnit)
    init(audioUnit inAudioUnit: AudioUnit, displayFlags inFlags: AUGenericViewDisplayFlags)
}

Declaration
From
init!(audioUnit au: AudioUnit)
To
init(audioUnit au: AudioUnit)

Declaration
From
init!(audioUnit inAudioUnit: AudioUnit, displayFlags inFlags: UInt32)
To
init(audioUnit inAudioUnit: AudioUnit, displayFlags inFlags: AUGenericViewDisplayFlags)

Modified AUPannerView
Declaration
From
class AUPannerView : NSView {
    var audioUnit: AudioUnit { get }
    init!(audioUnit au: AudioUnit) -> AUPannerView
    class func AUPannerViewWithAudioUnit(_ au: AudioUnit) -> AUPannerView!
}
To
class AUPannerView : NSView {
    var audioUnit: AudioUnit { get }
     init(audioUnit au: AudioUnit)
    class func AUPannerViewWithAudioUnit(_ au: AudioUnit) -> AUPannerView
}

Declaration
From
init!(audioUnit au: AudioUnit) -> AUPannerView
To
init(audioUnit au: AudioUnit)