---
title: audioEngine
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skscene/audioengine
---

# audioEngine

The AVFoundation audio engine used to play audio from audio nodes contained in the scene.

## Declaration

```swift
var audioEngine: AVAudioEngine { get }
```

## Discussion

Discussion An audio engine instance is automatically created for you when the scene is created. You can use methods and properties on a scene’s audio engine for overall control of all of its child audio nodes. The following code shows how a scene’s overall volume can be reduced from its default of 1.0 down to 0.2 and then paused: let scene = SKScene() scene.audioEngine.mainMixerNode.outputVolume = 0.2 scene.audioEngine.pause()

## See Also

### Adding Positional Audio

- [Using Audio Nodes with the Scene’s Listener](spritekit/using-audio-nodes-with-the-scene-s-listener.md)
- [listener](spritekit/skscene/listener.md)
