Skip to content

Signals

Everything SpatialAudioPlayer3D tells your game, grouped by what it's about. The listener argument is the Node3D the player listens from: the active camera, or custom_listener_target.

Zones

Emitted as the listener crosses inner_radius and the outer edge (inner_radius + falloff_distance).

Signal Emitted when
inner_radius_entered(listener) The listener comes inside the full-volume radius
inner_radius_exited(listener) The listener leaves it
falloff_zone_entered(listener) The listener enters the zone where the sound fades
falloff_zone_exited(listener) The listener leaves it
attenuation_zone_entered(listener) The listener comes within hearing range
attenuation_zone_exited(listener) The listener goes out of hearing range
$Radio.inner_radius_entered.connect(func(listener):
    print("Right next to the radio")
)

Occlusion

Signal Emitted when
audio_occluded(listener, wall_count: int) A wall comes between the sound and the listener
audio_unoccluded(listener) The line is clear again
occlusion_changed(wall_count: int, cutoff_hz: float) The wall count changes, or the filter cutoff moves by more than 1%. cutoff_hz is the new cutoff
$Radio.audio_occluded.connect(func(listener, wall_count):
    print("Behind %d wall(s)" % wall_count)
)

Reverb

Signal Emitted when
reverb_updated(room_size: float, wetness: float, damping: float) The reverb targets change by more than 0.01
reverb_zone_changed(room_size: float, wetness: float) Emitted with reverb_updated, without damping

Air absorption

Signal Emitted when
air_absorption_updated(cutoff_hz: float) The air filter cutoff changes by more than 1 Hz
air_absorption_zone_changed(cutoff_hz: float) Emitted with air_absorption_updated

Ray hits

For effects or gameplay on individual hits.

Signal Emitted when
occlusion_ray_collided(hit_position: Vector3, from_position: Vector3, collider: Node, listener) The ray to the listener hits a wall. Emitted once per wall, every scan
reverb_ray_collided(hit_position: Vector3, from_position: Vector3, collider: Node) A room ray or a bounce hits a surface, every scan

Playback

Signal Emitted when
spatial_audio_playback_started() play_with_delay() starts the sound, after any delay. A plain play() doesn't emit it
spatial_audio_playback_stopped() stop() is called

Zone signals and listener_distance_changed pause while update_only_while_playing is on and the sound is stopped. | listener_distance_changed(distance: float) | The listener's distance changes by 0.5 m or more |

Debug

Signal Emitted when
debug_overlay_toggled(visible: bool) The debug panel details are shown or hidden. visible is true when they show
spatial_audio_debug(info: Dictionary) Ten times a second while the debug panel shows

info holds:

Key Type Value
distance float Distance to the listener, in metres
volume_db_target float Target volume in dB
lowpass_cutoff float Target filter cutoff in Hz
reverb_room_size float Target room size, 0 to 1
reverb_wetness float Target reverb level, 0 to 1
reverb_damping float Target reverb damping, 0 to 1
wall_count int Walls in the way
navigation_proxy_active bool Whether a navigation agent is moving this player
navigation Dictionary The agent's data, only while it's active

SpatialReflectionNavigationAgent3D

The agent has signals of its own: path_updated, path_failed, audio_proxy_position_updated and graph_rebuilt. See its reference.