---
title: audioSource
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnaudioplayer/audiosource
---

# audioSource

The source of audio played by this player.

## Declaration

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

## Discussion

Discussion An 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 property to work with the underlying AVAudioNode object. If the player was created with the audioPlayerWithAVAudioNode: method, this property’s value is nil.

## See Also

### Working with Audio Sources

- [audioNode](scenekit/scnaudioplayer/audionode.md)
