Instance Property

isInputGainSettable

A Boolean value that indicates whether you can set the input gain.

Declaration

var isInputGainSettable: Bool { get }

Return Value

Returns true if the device allows input gain to be changed, otherwise false.

Discussion

Not all devices support variable gain; check this property before attempting to set the input gain.

See Also

Working with Audio Device Settings

var inputGain: Float

The gain applied to inputs associated with the session.

func setInputGain(Float)

Changes the input gain to the specified value.

var outputVolume: Float

The systemwide output volume set by the user.

var sampleRate: Double

The current audio sample rate, in hertz.

var preferredSampleRate: Double

The preferred sample rate, in hertz.

func setPreferredSampleRate(Double)

Sets the preferred sample rate for audio input and output.

var inputLatency: TimeInterval

The latency for audio input, in seconds.

var outputLatency: TimeInterval

The latency for audio output, in seconds.

var ioBufferDuration: TimeInterval

The current I/O buffer duration, in seconds.

var preferredIOBufferDuration: TimeInterval

The preferred I/O buffer duration, in seconds.

func setPreferredIOBufferDuration(TimeInterval)

Sets the preferred audio I/O buffer duration.