Sets the preferred number of output channels for the current route.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The number of output channels you want to use.
On input, a pointer to an error object. If an error occurs, the system sets the pointer to an
NSErrorobject that describes the error. If you don’t want error information, pass in
YES if a request was successfully made, otherwise
This method requests a change to the number of output channels. To determine whether the change has taken effect, use the
output property. For details, see Configuring the Audio Session. Requesting output channels less than one or greater than that returned by the
maximum results in an error. Only certain devices and peripherals support this feature.
Set the preferred number of output channels only after setting the audio session’s category and mode, and activating the session.