PropertyAddress
public struct PropertyAddress : RawRepresentable
extension PropertyAddress: Hashable
extension PropertyAddress: CustomStringConvertible
A thin wrapper around a HAL audio object property address
-
Declaration
Swift
public let rawValue: AudioObjectPropertyAddress
-
Creates a new instance with the specified value
Declaration
Swift
public init(_ value: AudioObjectPropertyAddress)
Parameters
value
The value to use for the new instance
-
Declaration
Swift
public init(rawValue: AudioObjectPropertyAddress)
-
The property’s selector
Declaration
Swift
public var selector: PropertySelector { get }
-
The property’s scope
Declaration
Swift
public var scope: PropertyScope { get }
-
The property’s element
Declaration
Swift
public var element: PropertyElement { get }
-
Initializes a new
PropertyAddress
with the specified raw selector, scope, and element valuesDeclaration
Swift
public init(_ selector: AudioObjectPropertySelector, scope: AudioObjectPropertyScope = kAudioObjectPropertyScopeGlobal, element: AudioObjectPropertyElement = kAudioObjectPropertyElementMaster)
Parameters
selector
The desired raw selector value
scope
The desired raw scope value
element
The desired raw element value
-
Initializes a new
PropertyAddress
with the specified selector, scope, and elementDeclaration
Swift
public init(_ selector: PropertySelector, scope: PropertyScope = .global, element: PropertyElement = .master)
Parameters
selector
The desired selector
scope
The desired scope
element
The desired element
-
Declaration
Swift
public static func == (lhs: PropertyAddress, rhs: PropertyAddress) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var description: String { get }