<!--
{
  "availability" : [
    "iOS: 14.5.0 - 27.0.0",
    "iPadOS: 14.5.0 - 27.0.0",
    "macCatalyst: 14.5.0 - 27.0.0",
    "macOS: 11.3.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetDownloadTaskPrefersLosslessAudioKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@AVAssetDownloadTaskPrefersLosslessAudioKey"
  },
  "title" : "AVAssetDownloadTaskPrefersLosslessAudioKey"
}
-->

# AVAssetDownloadTaskPrefersLosslessAudioKey

A key that indicates whether the task downloads media selections in lossless audio format, when available.

```
let AVAssetDownloadTaskPrefersLosslessAudioKey: String
```

## Discussion

By default, a download task prefers downloading lossy audio formats. Provide a Boolean value of <doc://com.apple.documentation/documentation/Swift/true> to change this behavior.

---

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)