A node used to determine the position of the listener for positional audio in the scene.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The default value is
nil, which means that the scene’s origin is used as the listener position for audio effects played by
SKAudio objects in the scene. If a non-
nil value is specified, it must be a node in the scene.
Typically, you want the
camera to be the listener so that audio nodes which are on screen are louder than off screen ones. In a game, the node that defines the player would likely be set as the