-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.0.5
Web browser and version
All
Operating system
All
Steps to reproduce this
Steps:
- Load a music file
- Set music to loop
- Nothing plays
Snippet:
// very pseudo!
let music;
music = await loadSound('music.mp3');
music.loop();
The tune will not play. It will work fine if you use music.play() instead and a workaround is to use music.onended() to create a function that just kicks in music.play() again but music.loop() just does nothing and doesn't even fire any errors in the console.
Am I doing something wrong when calling loop() in 2.0.x now?