Skip to content

v4.4.1 - AudioStreamPlayer get_playback_position() updates infrequently on Web #105397

@PizzaLovers007

Description

@PizzaLovers007

Tested versions

  • Reproducible in 4.4.1.stable
  • Not reproducible in 4.2.1.stable

System information

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

Issue description

PR #102163 introduces a delay on updating the playback position for AudioStreamPlayers on web to every ~0.1 seconds. This makes it extremely difficult to get a precise value on the playback (the strategy described in https://docs.godotengine.org/en/stable/tutorials/audio/sync_with_audio.html no longer works). Windows builds are unaffected.

Note that Godot v4.3 had a bug where get_playback_position() always returned 0 (#95128), so this issue is irrelevant for 4.3.

Steps to reproduce

  1. Visit one of the projects linked below
  2. Select "Player Raw" in the dropdown in the top left
  3. Uncheck "Show Delta"
  4. See graph has harsh steps in 4.4.1, but not in 4.2
    a. You may need to adjust "Frame Delay" if the updates happen too slowly/fast (higher number = slower update)

Web builds if needed:

Minimal reproduction project (MRP)

Project downloads:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions