<!--
{
  "availability" : [
    "iOS: 2.2.0 -",
    "iPadOS: 2.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPlayer/stop()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioPlayer(im)stop"
  },
  "title" : "stop()"
}
-->

# stop()

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

```
func stop()
```

## Discussion

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

---

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)