Skip to content

HTML5 export doesn't uses music-aware looping correctly #105620

Open
@EasternMouse

Description

@EasternMouse

Tested versions

  • Discovered in: v4.4.1.stable.official [49a5bc7]
  • Reproducible in: v4.3.stable.official [77dcf97], v4.4.stable.official [4c311cb], v4.5.dev2.official [af2c713]

System information

Godot v4.4.1.stable - Windows 11 (build 26100) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4060 (NVIDIA; 32.0.15.7602) - AMD Ryzen 5 3600X 6-Core Processor (12 threads)

Issue description

On web-export, loopable music, that has defined music-aware looping end, incorrectly resets when audio reaches real end of file, while resetting correctly in middle of it (if there is plently of space between defined loop end and the real end)

Steps to reproduce

  1. Add loopable .ogg file to project with untrimmed end
  2. Enter import settings, enable loop, set BPM, define end of song in beats
  3. Add audio stream to AudioStreamPlayer and set to play
  4. Export html5 version and launch it

Minimal reproduction project (MRP)

html-5-looping-music-export.zip
For testing, loop end set up at beat 1 of the song to see that music-aware loop happens propertly. Same thing happens if loop set up on beat 4.
Expected result: repeat 1 drum beat at steady rate
HTML5 result: beat repeats 5 times then after half beat song restarts, resulting in double drum hit

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