godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
87.01k stars 19.52k forks source link

AudioStreamPlayer3D pop/crack when changing audio bus #77669

Open Braboware opened 1 year ago

Braboware commented 1 year ago

Godot version

4.0.3.stable

System information

Windows 10 - Godot v4.0.3.stable - Vulkan (Forward+)

Issue description

When the listener is a distance greater than the AudioStreamPlayer3D's unit size an audible pop/crack can be heard when changing the audio bus.

No popping occurs when attenuation model is disabled or attenuation filter db is 0.

Steps to reproduce

  1. Add an AudioStreamPlayer3D with sound and autoplay
  2. Add an audio bus
  3. Add Timer and connect to AudioStreamPlayer3D to switch audio buses on timeout
  4. Add Camera3D and change position 11 units on any axis (10.1 works but 11 is much more noticeable)
  5. Play scene

Minimal reproduction project

Audio Bus Pop.zip

Calinou commented 1 year ago

This was supposed to be fixed by https://github.com/godotengine/godot/issues/21312 (at least for 2D). Can you check whether this occurs in 2D?

Braboware commented 1 year ago

Converted the test project to godot 4 and I also made a separate scene similar to mine but in 2D and both sound fine, no popping in either one