Documentation Archive Developer
Search

AudioUnit Changes for Swift

AudioUnit

Added AURenderEvent.init(head: AURenderEventHeader)
Added AURenderEvent.init(MIDI: AUMIDIEvent)
Added AURenderEvent.init(parameter: AUParameterEvent)
Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified AUAudioUnit
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSFastEnumeration
ToNSFastEnumeration

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
protocol AUAudioUnitFactory : NSExtensionRequestHandling, NSObjectProtocol {
    func createAudioUnitWithComponentDescription(_ desc: AudioComponentDescription) throws -> AUAudioUnit
}
NSExtensionRequestHandling, NSObjectProtocol
To
protocol AUAudioUnitFactory : NSExtensionRequestHandling {
    func createAudioUnitWithComponentDescription(_ desc: AudioComponentDescription) throws -> AUAudioUnit
}
NSExtensionRequestHandling

DeclarationProtocols
From
class AUAudioUnitPreset : NSObject, NSSecureCoding, NSCoding {
    var number: Int
    var name: String
}
AnyObject, NSCoding, NSSecureCoding
To
class AUAudioUnitPreset : NSObject, NSSecureCoding {
    var number: Int
    var name: String
}
NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified AUParameter
DeclarationProtocols
From
class AUParameter : AUParameterNode, NSSecureCoding, NSCoding {
    var minValue: AUValue { get }
    var maxValue: AUValue { get }
    var unit: AudioUnitParameterUnit { get }
    var unitName: String? { get }
    var flags: AudioUnitParameterOptions { get }
    var address: AUParameterAddress { get }
    var valueStrings: [String]? { get }
    var dependentParameters: [NSNumber]? { get }
    var value: AUValue
    func setValue(_ value: AUValue, originator originator: AUParameterObserverToken)
    func setValue(_ value: AUValue, originator originator: AUParameterObserverToken, atHostTime hostTime: UInt64)
    func stringFromValue(_ value: UnsafePointer<AUValue>) -> String
    func valueFromString(_ string: String) -> AUValue
}
AnyObject, NSCoding, NSSecureCoding
To
class AUParameter : AUParameterNode, NSSecureCoding {
    var minValue: AUValue { get }
    var maxValue: AUValue { get }
    var unit: AudioUnitParameterUnit { get }
    var unitName: String? { get }
    var flags: AudioUnitParameterOptions { get }
    var address: AUParameterAddress { get }
    var valueStrings: [String]? { get }
    var dependentParameters: [NSNumber]? { get }
    var value: AUValue
    func setValue(_ value: AUValue, originator originator: AUParameterObserverToken)
    func setValue(_ value: AUValue, originator originator: AUParameterObserverToken, atHostTime hostTime: UInt64)
    func stringFromValue(_ value: UnsafePointer<AUValue>) -> String
    func valueFromString(_ string: String) -> AUValue
}
NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class AUParameterGroup : AUParameterNode, NSSecureCoding, NSCoding {
    var children: [AUParameterNode] { get }
    var allParameters: [AUParameter] { get }
}
AnyObject, NSCoding, NSSecureCoding
To
class AUParameterGroup : AUParameterNode, NSSecureCoding {
    var children: [AUParameterNode] { get }
    var allParameters: [AUParameter] { get }
}
NSSecureCoding

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class AUParameterTree : AUParameterGroup {
    func parameterWithAddress(_ address: AUParameterAddress) -> AUParameter?
    func parameterWithID(_ paramID: AudioUnitParameterID, scope scope: AudioUnitScope, element element: AudioUnitElement) -> AUParameter?
}
extension AUParameterTree {
    class func createParameterWithIdentifier(_ identifier: String, name name: String, address address: AUParameterAddress, min min: AUValue, max max: AUValue, unit unit: AudioUnitParameterUnit, unitName unitName: String?, flags flags: AudioUnitParameterOptions, valueStrings valueStrings: [String]?, dependentParameters dependentParameters: [NSNumber]?) -> AUParameter
    class func createGroupWithIdentifier(_ identifier: String, name name: String, children children: [AUParameterNode]) -> AUParameterGroup
    class func createGroupTemplate(_ children: [AUParameterNode]) -> AUParameterGroup
    class func createGroupFromTemplate(_ templateGroup: AUParameterGroup, identifier identifier: String, name name: String, addressOffset addressOffset: AUParameterAddress) -> AUParameterGroup
    class func createTreeWithChildren(_ children: [AUParameterNode]) -> AUParameterTree
}
AnyObject, NSCoding, NSSecureCoding
To
class AUParameterTree : AUParameterGroup, NSSecureCoding {
    func parameterWithAddress(_ address: AUParameterAddress) -> AUParameter?
    func parameterWithID(_ paramID: AudioUnitParameterID, scope scope: AudioUnitScope, element element: AudioUnitElement) -> AUParameter?
}
extension AUParameterTree {
    class func createParameterWithIdentifier(_ identifier: String, name name: String, address address: AUParameterAddress, min min: AUValue, max max: AUValue, unit unit: AudioUnitParameterUnit, unitName unitName: String?, flags flags: AudioUnitParameterOptions, valueStrings valueStrings: [String]?, dependentParameters dependentParameters: [NSNumber]?) -> AUParameter
    class func createGroupWithIdentifier(_ identifier: String, name name: String, children children: [AUParameterNode]) -> AUParameterGroup
    class func createGroupTemplate(_ children: [AUParameterNode]) -> AUParameterGroup
    class func createGroupFromTemplate(_ templateGroup: AUParameterGroup, identifier identifier: String, name name: String, addressOffset addressOffset: AUParameterAddress) -> AUParameterGroup
    class func createTreeWithChildren(_ children: [AUParameterNode]) -> AUParameterTree
}
NSSecureCoding

Declaration
From
struct AURenderEvent {
    init()
}
To
struct AURenderEvent {
    var head: AURenderEventHeader
    var parameter: AUParameterEvent
    var MIDI: AUMIDIEvent
    init(head head: AURenderEventHeader)
    init(parameter parameter: AUParameterEvent)
    init(MIDI MIDI: AUMIDIEvent)
    init()
}

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--