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.