Contents

SCNAudioSource

A simple, reusable audio source—music or sound effects loaded from a file—for use in positional audio playback.

Declaration

class SCNAudioSource

Overview

To create positional audio effects, create an SCNAudioPlayer object from the audio source to control playback, and add that player object to an SCNNode object in your scene. SceneKit then automatically spatializes 3D audio effects based on the position of that node relative to the scene’s audioListener node.

Topics

Creating an Audio Source

Controlling 3D Audio Spatialization

Preloading Audio Data

Setting Default Playback Parameters

Initializers

See Also

Audio