> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIAudioFileErrorType

Enum that contains error types for [VIAudioFile](/api-reference/iossdk/core/viaudiofile) playback failures.

@objc enum VIAudioFileErrorType

## Values

### case alreadyPlaying

Playback was requested while the audio file is already playing.

### case callKitActivated

CallKit activated the audio session and playback was stopped.

### case destroyed

The [VIAudioFile](/api-reference/iossdk/core/viaudiofile) instance was deallocated while playing.

### case failedToConfigureAudioSession

The audio session could not be configured for playback.

### case failedToInitialize

The audio file player could not be created from the provided URL or data.

### case internalError

Unexpected internal failure while playing the audio file.

### case interrupted

The audio session was interrupted (or media services were lost) and playback was stopped.

## Initializers

### init(rawValue:)

init?(rawValue: Int)

Inherited from `RawRepresentable.init(rawValue:)`.

## Properties

### description

var description: String \{ get }

Error type description.

## Default Implementations

### Equatable Implementations

Equatable.!=(*:*:)

### RawRepresentable Implementations

RawRepresentable.hash(into:) RawRepresentable.hashValue

## Relationships

**Conforms To:** Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable, Swift.RawRepresentable