<!--
{
  "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/SCNAudioPlayer/audioSource",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNAudioPlayer(py)audioSource"
  },
  "title" : "audioSource"
}
-->

# audioSource

The source of audio played by this player.

```
var audioSource: SCNAudioSource? { get }
```

## Discussion

An [`SCNAudioSource`](/documentation/SceneKit/SCNAudioSource) object represents a distinct source of audio—for example, a sound file—that can be reused and shared by many player objects. Use a player’s audio source to configure the default values for playback parameters such as volume and reverb. To vary those parameters in real time during playback, use the [`audioNode`](/documentation/SceneKit/SCNAudioPlayer/audioNode) property to work with the underlying <doc://com.apple.documentation/documentation/AVFAudio/AVAudioNode> object.

If the player was created with the [`audioPlayerWithAVAudioNode:`](/documentation/SceneKit/SCNAudioPlayer/audioPlayerWithAVAudioNode:) method, this property’s value is `nil`.

---

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)