---
title: stop()
framework: avfaudio
role: symbol
role_heading: Instance Method
path: avfaudio/avaudioplayer/stop()
---

# stop()

Stops playback and undoes the setup the system requires for playback.

## Declaration

```swift
func stop()
```

## Discussion

Discussion Calling this method undoes the resource allocation the system performs in prepareToPlay() or play(). It doesn’t reset the player’s currentTime value to 0, so playback resumes from where it stops.

## See Also

### Controlling playback

- [prepareToPlay()](avfaudio/avaudioplayer/preparetoplay().md)
- [play()](avfaudio/avaudioplayer/play().md)
- [play(atTime:)](avfaudio/avaudioplayer/play(attime:).md)
- [pause()](avfaudio/avaudioplayer/pause().md)
- [isPlaying](avfaudio/avaudioplayer/isplaying.md)
