godotengine / godotengine/godot

Stuttering sound in web export, error message is silenced.

Open
#90,532 3 comments 0 reactions 0 assignees View on GitHub
bug needs testing platform:web topic:audio
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

reproducible: 4.3-dev5, 4.2.1
no error message in 4.3-dev5

### System information

Godot v4.2.1.stable - Ubuntu 22.04.4 LTS 22.04 - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2080 Ti (nvidia; 535.161.07) - Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 Threads)

### Issue description

In version 4.2.1 there is the following bug:

[issue 70652](https://github.com/godotengine/godot/issues/70652)

When I export to web I get the following:

I get an error saying: 'Output buffer has not enough frames! Skipping output frame' and I can also hear the game sound stuttering. I use MP3AudioStreamPlayer to play a song.

It works good when I run it in the godot engine.

I downloaded Godot 4.3-dev5 to see if that solves the audio problems.

In v4.3-dev5 I no longer get the error message 'Output buffer has not enough frames! Skipping output frame.' but I still hear the sound stuttering. Why is that? This behaviour would make it even harder to diagnose what the bug is with the sound.

### Steps to reproduce

Use mp3audiostreamplayer in a new project and export to web.

### Minimal reproduction project (MRP)

[min_example.zip](https://github.com/godotengine/godot/files/14946437/min_example.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the provided min_example.zip, an MP3AudioStreamPlayer, and a web export, then read issue 70652 for related context. Compare the silenced error in 4.3-dev5 with the stuttering audio reported in 4.2.1; done means the web export plays without stuttering and diagnostic errors are not hidden.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.