---
title: pause()
framework: avfaudio
role: symbol
role_heading: Instance Method
path: avfaudio/avaudioplayernode/pause()
---

# pause()

Pauses the node’s playback.

## Declaration

```swift
func pause()
```

## Discussion

Discussion The player’s sample time doesn’t advance while the node is in a paused state. Pausing or stopping all of the players you connect to an engine doesn’t pause or stop the engine or the underlying hardware. You must explicitly pause or stop the engine for the hardware to stop. When your app doesn’t need to play audio, pause or stop the engine to minimize power consumption.

## See Also

### Controlling Playback

- [prepare(withFrameCount:)](avfaudio/avaudioplayernode/prepare(withframecount:).md)
- [playAudio()](avfaudio/avaudioplayernode/playaudio().md)
- [playAudio(at:)](avfaudio/avaudioplayernode/playaudio(at:).md)
- [play()](avfaudio/avaudioplayernode/play().md)
- [play(at:)](avfaudio/avaudioplayernode/play(at:).md)
- [isPlaying](avfaudio/avaudioplayernode/isplaying.md)
- [stop()](avfaudio/avaudioplayernode/stop().md)
