<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetExportSession/audioTrackGroupHandling",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetExportSession(py)audioTrackGroupHandling"
  },
  "title" : "audioTrackGroupHandling"
}
-->

# audioTrackGroupHandling

A policy that defines how the session exports alternate audio tracks.

```
var audioTrackGroupHandling: AVAssetTrackGroupOutputHandling { get set }
```

## Discussion

By default, a session exports only the enabled audio tracks within an alternate track group from the source asset. You can specify that the session preserve all audio tracks within an alternate track group by setting this value to [`preserveAlternateTracks`](/documentation/AVFoundation/AVAssetTrackGroupOutputHandling/preserveAlternateTracks).

If no audio alternate track group is present, the value of this property has no effect. You can query the [`trackGroups`](/documentation/AVFoundation/AVPartialAsyncProperty/trackGroups) property of [`AVAsset`](/documentation/AVFoundation/AVAsset) to determine whether it contains audio track groups.

> Important:
> You can’t specify alternate track output handling while also setting a value for the export session’s ``doc://com.apple.avfoundation/documentation/AVFoundation/AVAssetExportSession/audioMix`` property. The system throws an exception if you specify both.

---

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)