AudioSubdevice
public class AudioSubdevice : AudioDevice
A HAL audio subdevice
Remark
This class correponds to objects with base classkAudioSubDeviceClassID
-
Returns the extra latency
Remark
This corresponds to the propertykAudioSubDevicePropertyExtraLatencyDeclaration
Swift
public func extraLatency() throws -> Double -
Returns the drift compensation
Remark
This corresponds to the propertykAudioSubDevicePropertyDriftCompensationDeclaration
Swift
public func driftCompensation() throws -> Bool -
Sets the drift compensation
Remark
This corresponds to the propertykAudioSubDevicePropertyDriftCompensationDeclaration
Swift
public func setDriftCompensation(_ value: Bool) throws -
Returns the drift compensation quality
Remark
This corresponds to the propertykAudioSubDevicePropertyDriftCompensationQualityDeclaration
Swift
public func driftCompensationQuality() throws -> UInt32 -
Sets the drift compensation quality
Remark
This corresponds to the propertykAudioSubDevicePropertyDriftCompensationQualityDeclaration
Swift
public func setDriftCompensationQuality(_ value: UInt32) throws -
A thin wrapper around a HAL audio subdevice drift compensation quality setting
See moreDeclaration
Swift
public struct DriftCompensationQuality : RawRepresentable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteralextension AudioSubdevice.DriftCompensationQuality: CustomDebugStringConvertible -
Returns
trueifselfhasselectorinscopeonelementDeclaration
Swift
public func hasSelector(_ selector: AudioObjectSelector<AudioSubdevice>, inScope scope: PropertyScope = .global, onElement element: PropertyElement = .master) -> BoolParameters
selectorThe selector of the desired property
scopeThe desired scope
elementThe desired element
-
Returns
trueifselectorinscopeonelementis settableThrows
An error ifselfdoes not have the requested propertyDeclaration
Swift
public func isSelectorSettable(_ selector: AudioObjectSelector<AudioSubdevice>, inScope scope: PropertyScope = .global, onElement element: PropertyElement = .master) throws -> BoolParameters
selectorThe selector of the desired property
scopeThe desired scope
elementThe desired element
-
Registers
blockto be performed whenselectorinscopeonelementchangesThrows
An error if the property listener could not be registeredDeclaration
Swift
public func whenSelectorChanges(_ selector: AudioObjectSelector<AudioSubdevice>, inScope scope: PropertyScope = .global, onElement element: PropertyElement = .master, perform block: PropertyChangeNotificationBlock?) throwsParameters
selectorThe selector of the desired property
scopeThe desired scope
elementThe desired element
blockA closure to invoke when the property changes or
nilto remove the previous value
View on GitHub
AudioSubdevice Class Reference