addAudioPlayer(_:)
Adds the specified auto player to the node and begins playback.
Declaration
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 position in the scene.
After playback has completed, SceneKit automatically removes the audio player from the node.