---
title: didFinishPlayback
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnaudioplayer/didfinishplayback
---

# didFinishPlayback

A block called by SceneKit when playback of the player’s audio source has completed.

## Declaration

```swift
var didFinishPlayback: (() -> Void)? { get set }
```

## Discussion

Discussion The block takes no parameters and returns no value. Use this block to perform actions when a sound finishes playing. For example, after a line of spoken character dialogue finishes playing, you might start playing another line of dialogue.

## See Also

### Responding to Playback

- [willStartPlayback](scenekit/scnaudioplayer/willstartplayback.md)
