Type Property

AVAudioEngineConfigurationChange

A notification posted when the audio engine configuration changes.

Declaration

static let AVAudioEngineConfigurationChange: NSNotification.Name

Discussion

Register for this notification on audio engine instances, as follows:

[[NSNotificationCenter defaultCenter] addObserver: myObject
                      selector:@selector(handleInterruption:)
                      name:AVAudioEngineConfigurationChangeNotification
                      object:audioEngine];

When the audio engine’s I/O unit observes a change to the audio input or output hardware’s channel count or sample rate, the audio engine stops, uninitializes itself, and issues this notification. The nodes remain attached and connected with previously set formats. The app must reestablish connections if the connection formats need to change.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software