Instance Method

setDeviceID:error:

Sets the I/O hardware device.

Declaration

Current

- (BOOL)setDeviceID:(AUAudioObjectID)deviceID error:(NSError * _Nullable *)outError;

Previous

- (BOOL)setDeviceID:(AudioObjectID)deviceID error:(NSError * _Nullable *)outError;

Parameters

deviceID

The device to set.

outError

Returns an error in the event of a failure, or nil if the operation succeeded.

Return Value

  • YES if the operation succeeded.

  • NO if the operation failed.

Discussion

See Also

Input/Output Units

canPerformInput

Determines whether the I/O device can perform input.

canPerformOutput

Determines whether the I/O device can perform output.

inputEnabled

A flag enabling audio input from the unit.

outputEnabled

A flag enabling audio output from the unit.

inputHandler

The block that the output unit will call to notify when input is available.

outputProvider

The block that the output unit will call to get audio to send to the output.

deviceID

Gets the I/O hardware device.

- startHardwareAndReturnError:

Starts the audio hardware.

- stopHardware

Stops the audio hardware.