<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASESoundEvent/PrepareHandlerReason",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:@E@PHASESoundEventPrepareHandlerReason"
  },
  "title" : "PHASESoundEvent.PrepareHandlerReason"
}
-->

# PHASESoundEvent.PrepareHandlerReason

Indicates the results of sound-event preparation.

```
enum PrepareHandlerReason
```

## Overview

The sound event [`prepare(completion:)`](/documentation/PHASE/PHASESoundEvent/prepare(completion:)) function passes an instance of this class to its argument completion closure to communicate the results of the call.

## Topics

### Reasons

[`case prepared`](/documentation/PHASE/PHASESoundEvent/PrepareHandlerReason/prepared)

Indicates the completion of sound-event preparation.

[`case terminated`](/documentation/PHASE/PHASESoundEvent/PrepareHandlerReason/terminated)

Indicates sound-event preparation stops abruptly.

[`case failure`](/documentation/PHASE/PHASESoundEvent/PrepareHandlerReason/failure)

Indicates an error occurs during sound-event preparation.

### Initializers

[`init?(rawValue: Int)`](/documentation/PHASE/PHASESoundEvent/PrepareHandlerReason/init(rawValue:))

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)