AudioStreamPlayer3D

Plays positional sound in 3D space.

AudioStreamPlayer3D.swift:29
class AudioStreamPlayer3D

Plays audio with positional sound effects, based on the relative position of the audio listener. Positional effects include distance attenuation, directionality, and the Doppler effect. For greater realism, a low-pass filter is applied to distant sounds. This can be disabled by setting attenuationFilterCutoffHz to 20500.

By default, audio is heard from the camera position. This can be changed by adding an AudioListener3D node to the scene and enabling it by calling makeCurrent on it.

See also AudioStreamPlayer to play a sound non-positionally.

This object emits the following signals: