Search Issue Tracker
Fixed in 2021.3.32f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.2.0a23
Votes
40
Found in
2020.3.38f1
2021.3.8f1
2022.1.14f1
2022.2.0b5
2023.1.0a6
2023.2.0a1
Issue ID
UUM-12530
Regression
No
[WebGL] A looping audio sounds different on WebGL than in the editor/native desktop player
Reproduction steps:
1. Open the attached project
2. Run project in editor play mode and listen to audio loop.
3. Build and Run the project using WebGL
3. Compare audio loop in WebGL build to audio loop in editor play mode.
Expected result: Looping audio clip sounds the same in editor and in the WebGL build.
Actual result: The looping audio clip sounds different in the editor and the WebGL build. In the editor it is a continuous sound in the WebGL build there seems to be a small pause before each replay of the loop.
Reproducible with: 2023.1.0a6, 2022.2.0b5, 2022.1.14f1, 2021.3.8f1, 2020.3.38f1
Reproducible on: macOS 12.2 (Intel)
Comments (12)
-
EmeralLotus
Sep 04, 2022 13:11
More and more games are being published to webgl and sound is a critical part of the gaming experience. Would very much appreciate to be able to continue using unity. Unread engine has very good support for webgl audio.
-
BachmannT
Aug 26, 2022 00:12
example: when playing a piano sample, the sound is looped from the beginning like a new press on a keyboard (attack phase) instead looping on the sustain phase.
So, it's not usable to play sound on webgl.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 2023.2):
Loop information embedded in the smpl chunk of WAVE files is now properly handled in WebGL player builds.