Instance Method

startHardware()

Starts the audio hardware.

Declaration

func startHardware() throws

Parameters

outError

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

Return Value

  • true if the operation succeeded.

  • false if the operation failed.

Discussion

See Also

Input/Output Units

var canPerformInput: Bool

Determines whether the I/O device can perform input.

var canPerformOutput: Bool

Determines whether the I/O device can perform output.

var isInputEnabled: Bool

A flag enabling audio input from the unit.

var isOutputEnabled: Bool

A flag enabling audio output from the unit.

var inputHandler: AUInputHandler?

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

var outputProvider: AURenderPullInputBlock?

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

var deviceID: AudioObjectID

Gets the I/O hardware device.

func setDeviceID(AudioObjectID)

Sets the I/O hardware device.

func stopHardware()

Stops the audio hardware.