Instance Property

outputVolume

The systemwide output volume set by the user.

Declaration

@property(readonly) float outputVolume;

Discussion

This property returns a value in the range 0.0 to 1.0, with 0.0 representing the minimum volume, and 1.0 representing the maximum volume.

Only the user can directly set the system volume. Provide a volume control in your app, using MPVolumeView, to provide the interface to adjust the system volume.

You can observe changes to the value of this property by using Key-value observing.

See Also

Working with Audio Device Settings

inputGain

The gain applied to inputs associated with the session.

inputGainSettable

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

- setInputGain:error:

Changes the input gain to the specified value.

sampleRate

The current audio sample rate, in hertz.

preferredSampleRate

The preferred sample rate, in hertz.

- setPreferredSampleRate:error:

Sets the preferred sample rate for audio input and output.

inputLatency

The latency for audio input, in seconds.

outputLatency

The latency for audio output, in seconds.

IOBufferDuration

The current I/O buffer duration, in seconds.

preferredIOBufferDuration

The preferred I/O buffer duration, in seconds.

- setPreferredIOBufferDuration:error:

Sets the preferred audio I/O buffer duration.

currentHardwareSampleRate

The audio hardware sample rate, in hertz.

Deprecated
preferredHardwareSampleRate

The preferred hardware sample rate, in hertz.

Deprecated
- setPreferredHardwareSampleRate:error:

Sets the preferred hardware sample rate for input and output.

Deprecated