<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaToolbox",
  "identifier" : "/documentation/MediaToolbox/MTAudioProcessingTapCallbacks/prepare",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Media Toolbox"
    ],
    "preciseIdentifier" : "c:@SA@MTAudioProcessingTapCallbacks@FI@prepare"
  },
  "title" : "prepare"
}
-->

# prepare

A callback to prepare the tap processor.

```
var prepare: MTAudioProcessingTapPrepareCallback?
```

## Discussion

Apps can use this callback to allocate memory buffers or perform other preparation. This field an be `NULL`.

> Note: The system may call this function multiple times.

---

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)