---
title: AVAudioPlayerNodeCompletionCallbackType.dataPlayedBack
framework: avfaudio
role: symbol
role_heading: Case
path: avfaudio/avaudioplayernodecompletioncallbacktype/dataplayedback
---

# AVAudioPlayerNodeCompletionCallbackType.dataPlayedBack

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

## Declaration

```swift
case dataPlayedBack
```

## Discussion

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.

## See Also

### Completion Handler Cases

- [AVAudioPlayerNodeCompletionCallbackType.dataConsumed](avfaudio/avaudioplayernodecompletioncallbacktype/dataconsumed.md)
- [AVAudioPlayerNodeCompletionCallbackType.dataRendered](avfaudio/avaudioplayernodecompletioncallbacktype/datarendered.md)
