SPTCoreAudioDevice Class Reference
| Inherits from | NSObject |
| Declared in | SPTCoreAudioDevice.h |
Properties
UID
Returns the UID of the audio device, suitable for saving which device the user chose.
@property (nonatomic, readonly, copy) NSString *UIDDeclared In
SPTCoreAudioDevice.hdeviceId
Returns the Core Audio device ID of the audio device.
@property (nonatomic, readonly) AudioDeviceID deviceIdDeclared In
SPTCoreAudioDevice.hmanufacturer
Returns the manufacturer of the audio device.
@property (nonatomic, readonly, copy) NSString *manufacturerDeclared In
SPTCoreAudioDevice.hname
Returns the name of the audio device.
@property (nonatomic, readonly, copy) NSString *nameDeclared In
SPTCoreAudioDevice.hsources
Returns an array of audio output sources the audio device provides.
@property (nonatomic, readonly, copy) NSArray *sourcesDeclared In
SPTCoreAudioDevice.huiName
Returns a name more suited for display in the user interface.
@property (nonatomic, readonly, copy) NSString *uiNameDeclared In
SPTCoreAudioDevice.hInstance Methods
activeSources
Returns an array of the audio output sources that are active.
- (NSArray *)activeSourcesDeclared In
SPTCoreAudioDevice.hinitWithDeviceId:
Initialise a device with the given device ID.
- (id)initWithDeviceId:(AudioDeviceID)deviceIdParameters
- deviceId
The Core Audio device ID for the device.
Return Value
The initialised object.
Declared In
SPTCoreAudioDevice.hsetActiveSources:
Set the active sources of the device.
- (void)setActiveSources:(NSArray *)activeSourcesDiscussion
The source(s) in the passed array must be present in the sources property.
Warning: When setting this property, you need to provide at least one active
source. If you pass nil or an empty array, no changes will be made.
Declared In
SPTCoreAudioDevice.h