<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPlayerNodeCompletionCallbackType/dataPlayedBack",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@E@AVAudioPlayerNodeCompletionCallbackType@AVAudioPlayerNodeCompletionDataPlayedBack"
  },
  "title" : "AVAudioPlayerNodeCompletionCallbackType.dataPlayedBack"
}
-->

# AVAudioPlayerNodeCompletionCallbackType.dataPlayedBack

A completion handler that indicates the player finishes the buffer or file data.

```
case dataPlayedBack
```

## Discussion

The completion handler is applicable when the engine is rendering to or from an audio device.

It accounts for both signal processing latencies downstream of the player in the engine, and (possibly significant) latency in the audio playback device.

---

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)