Inherits from NSObject
Declared in SPTCoreAudioDevice.h

Overview

Defines an audio output device for SPTCoreAudioController. Mac only.

Tasks

Initialisation and Setup

Properties

Controlling Audio Sources

Properties

UID

Returns the UID of the audio device, suitable for saving which device the user chose.

@property (nonatomic, readonly, copy) NSString *UID

Declared In

SPTCoreAudioDevice.h

deviceId

Returns the Core Audio device ID of the audio device.

@property (nonatomic, readonly) AudioDeviceID deviceId

Declared In

SPTCoreAudioDevice.h

manufacturer

Returns the manufacturer of the audio device.

@property (nonatomic, readonly, copy) NSString *manufacturer

Declared In

SPTCoreAudioDevice.h

name

Returns the name of the audio device.

@property (nonatomic, readonly, copy) NSString *name

Declared In

SPTCoreAudioDevice.h

sources

Returns an array of audio output sources the audio device provides.

@property (nonatomic, readonly, copy) NSArray *sources

Declared In

SPTCoreAudioDevice.h

uiName

Returns a name more suited for display in the user interface.

@property (nonatomic, readonly, copy) NSString *uiName

Declared In

SPTCoreAudioDevice.h

Instance Methods

activeSources

Returns an array of the audio output sources that are active.

- (NSArray *)activeSources

Declared In

SPTCoreAudioDevice.h

initWithDeviceId:

Initialise a device with the given device ID.

- (id)initWithDeviceId:(AudioDeviceID)deviceId

Parameters

deviceId

The Core Audio device ID for the device.

Return Value

The initialised object.

Declared In

SPTCoreAudioDevice.h

setActiveSources:

Set the active sources of the device.

- (void)setActiveSources:(NSArray *)activeSources

Parameters

activeSources

The sources to make active. Must be present in the sources property.

Discussion

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