<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNNode/addAudioPlayer(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNNode(im)addAudioPlayer:"
  },
  "title" : "addAudioPlayer(_:)"
}
-->

# addAudioPlayer(_:)

Adds the specified auto player to the node and begins playback.

```
func addAudioPlayer(_ player: SCNAudioPlayer)
```

## Parameters

`player`

An audio player object.

## Discussion

Positional audio effects from a player attached to a node are based on that node’s position relative to the [`audioListener`](/documentation/SceneKit/SCNSceneRenderer/audioListener) position in the scene.

After playback has completed, SceneKit automatically removes the audio player from the node.

---

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)