<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 6.0.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaToolbox",
  "identifier" : "/documentation/MediaToolbox/MTAudioProcessingTapFinalizeCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Media Toolbox"
    ],
    "preciseIdentifier" : "c:@T@MTAudioProcessingTapFinalizeCallback"
  },
  "title" : "MTAudioProcessingTapFinalizeCallback"
}
-->

# MTAudioProcessingTapFinalizeCallback

A finalization callback function.

```
typealias MTAudioProcessingTapFinalizeCallback = (MTAudioProcessingTap) -> Void
```

## Parameters

`tap`

The processing tap.

## Overview

This callback is called when it is safe to free any buffers or other state associated with the tap. This callback will be called exactly once when the MTAudioProcessingTap object is finalized. If tapStorage was allocated in the init callback, it should be freed here.

---

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)