godotengine / godotengine/godot

When previewing a camera in the editor, the audio listener fails to move with it.

Open
#88,565 0 comments 3 reactions 0 assignees View on GitHub
bug topic:3d topic:audio topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in: Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.2824) - Intel(R) Core(TM) i9-14900KF (32 Threads), went back to Godot 4.0-stable and the issue is present there too.

### System information

Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.2824) - Intel(R) Core(TM) i9-14900KF (32 Threads)

### Issue description

When you open the sample project in the editor, there is a player object with a camera and looping audio sample attached. The player object rotates around the origin, above a plane (purely there to visualize the movement) by using a @tool script. What you expect is to hear the sound moving with the player when the 3D view of the editor is stationary (which does happen) but when you select the camera attached to the player and use preview, the sound should be constant as you are now moving with the sound. That does not happen.

### Steps to reproduce

1. Open the sample project.
2. Make sure the 3D view is selected.
3. Select the Camera object in the scene (there's one attached to the Player).
4. Select the "Preview" option in the editor view to preview how the scene looks from the selected camera.
5. Now you expect the sound to be a constant but instead it still seems to circle the view (probably because the audio listener is stationary somewhere instead of moving with the camera).

### Minimal reproduction project (MRP)

[audiolistener-preview.zip](https://github.com/godotengine/godot/files/14335858/audiolistener-preview.zip)

Contributor guide

Open the contributing guide

Research direction

Start by opening the linked audiolistener-preview.zip sample project in Godot and reproducing the behavior from the listed 3D view and Camera Preview steps. Trace how editor camera preview updates the audio listener, then verify that previewing the selected camera keeps the looping sound spatially constant as the player moves.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.