Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioStreamPlayer doesn't loop with parameters/looping set to true in web export #101111

Open
elpozewaunig opened this issue Jan 4, 2025 · 1 comment

Comments

@elpozewaunig
Copy link
Contributor

Tested versions

  • Reproducible in 4.3.stable, 4.4.dev7

System information

Godot v4.4.dev7 - macOS Sequoia (15.1.1) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Apple M1 Pro - Apple M1 Pro (8 threads)

Issue description

Looping an audio stream in an AudioStreamPlayer only works when the file is imported with the loop property set to true in web exports. Using the parameters/looping property of the AudioStreamPlayer node does not loop the audio, whereas this works as expected on desktop exports and in the editor. This occurs both with threads enabled and disabled and has been tested in Firefox 133.0.3 and Chrome 131.0.6778.205.

Steps to reproduce

  1. Create new scene
  2. Add AudioStreamPlayer node, add an AudioStream (with the loop import property set to false), set autoplay to true, set parameters/looping to true
  3. Run project in web browser
  4. Observe that the stream does not loop

Alternatively:

  1. Open minimal reproduction project
  2. Run project in web browser

Minimal reproduction project (MRP)

web-audio-loop-bug.zip

@rburing
Copy link
Member

rburing commented Jan 5, 2025

Only happens when the project setting audio/general/default_playback_type.web is set to Sample (the default), cc @adamscott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants