godotengine / godotengine/godot
`AudioServer.get_bus_peak_volume_left_db()` does not work in Web export for samples
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Issue is present in v4.3.stable.official [77dcf97d8]
Issue was not present in v4.2.2.stable.official [15073afe3]
### System information
Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.3623) - AMD Ryzen 5 3600X 6-Core Processor (12 Threads)
### Issue description
This is a video of the minimal reproducible example working in-editor:
https://github.com/user-attachments/assets/0fbdd409-2593-44a7-9fb7-70e0c28fdf98
The following is a photo, but the video would look exactly the same since the value does not update when exported to Web.

### Steps to reproduce
Export to web. Doesn't seem to matter which rendering mode is used.
### Minimal reproduction project (MRP)
This project uses three nodes:
A sound playing on a loop
A label updating with the value of AudioServer.get_bus_peak_volume_left_db(0,0)
A circle redrawing with size depending on the value of AudioServer.get_bus_peak_volume_left_db(0,0).
[repro.zip](https://github.com/user-attachments/files/17169218/repro.zip)
Contributor guide
Research direction
Start with the attached repro.zip, run it in the editor, then export it to Web and reproduce the unchanged AudioServer.get_bus_peak_volume_left_db(0,0) value. Compare the Web result with the working editor behavior; done means the label and circle update from the playing sample in the Web export as they do in the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100