Enumeration

AVAudioSession.ErrorCode

Codes that describe error conditions that may occur when performing audio session operations.

Declaration

enum ErrorCode : AVAudioInteger

Topics

Constants

case none

An error code that indicates the operation succeeded.

case mediaServicesFailed

An error code that indictates an attempt to use the audio session during or after a Media Services failure.

case isBusy

An error code that indicates an attempt to deactivate the audio session while it’s still playing or recording.

case incompatibleCategory

An error code that indicates an attempt to perform an operation that the current audio session category doesn’t support.

case cannotInterruptOthers

An error code that indictates an attempt to make a nonmixable audio session active while the app was in the background.

case missingEntitlement

An error code that indicates an attempt to perform an operation for which the app doesn’t have the required entitlements.

case siriIsRecording

An error code that indicates an attempt to perform an operation that isn’t allowed while Siri is recording.

case cannotStartPlaying

An error code that indicates an attempt to start audio playback when it wasn’t allowed.

case cannotStartRecording

An error code that indicates an attempt to start audio recording, but the operation failed.

case badParam

An error code that indicates an attempt to set a property to an illegal value.

case insufficientPriority

An error code that indicates the app isn’t allowed to set the audio category because it’s in use by another app.

case resourceNotAvailable

An error code that indicates that an operation failed because the device doesn’t have sufficient hardware resources to complete the action.

case unspecified

An error code that indicates an unspecified error occurred.

case expiredSession

An error code that indicates that an operation failed because the system deallocated the associated session.

case sessionNotActive

An error code that indicates the operation failed because the session isn’t active.