Created attachment 440667 [details] Console errors related to this issue Unity3D WebGL builds cannot play audio in Safari 15.0 on macOS 10.15.7 Errors: Unhandled Promise Rejection: EncodingError: Decoding failed Loading FSB failed for audio clip: "(name)". Reproduced on a few machines ranging from MB air 2013 to MBP 2019 Reproduced with Unity builds from Unity 2018.3, 2019.4, and 2020.3 versions Fails playing audio clips which are included in the build as well as those retrieved at runtime via Unity's www interface (XHR) Confirmed for at least MP3 format files; Mime type "audio/mpeg" This has been reproduced on our own products as well as games on simmer.io (which is a better repro as they're publicly accessible!) to pick one simmer.io game at random: https://simmer.io/@henridecamps/learn-french-rpg
I believe this may be a more general problem with the `decodeAudioData` in Safari 15 on Catalina. To reproduce: On Safari Version 15.0 (15612.1.29.41.4, 15612) / OS X 10.15.7 (19H1323) - visit https://chinmay.audio/decodethis/ - click "test all" - observe Success Count: 48 (47.059%) / Failure Count: 54 (52.941%) - observe all `mp3` files fail to decode Expected behaviour On Safari Version 13.1.2 / OS X 10.15 (tested using browserstack) - Success Count: 92 / Failure count: 10 - Only `ogg` file types fail to decode (as expected on this browser/os combination)
Also running into this here, Safari 15 on OSX 10.15 is unable to decode mp3 files. Previous version of Safari on 10.15 was fine and Safari 15 on OSX 11.6 is also able to decode mp3.
I cannot reproduces this using Safari 15.1 with macOS 12 beta. Success rate is 90.196%. Could you please try Safari 15.1 beta?
I can reproduce in Safari 15.1 beta on macOS 10.15.7
<rdar://problem/84109702>
I think a better title for this bug might be something like: "AudioContext.decodeAudioData fails to decode MP3 in Safari 15 on macOS 10.15.7" as it now seems to be wider-reaching than just Unity WebGL.
(In reply to Alexey Proskuryakov from comment #3) > I cannot reproduces this using Safari 15.1 with macOS 12 beta. Success rate > is 90.196%. Could you please try Safari 15.1 beta? I am also unable to reproduce on macOS 12 beta. It seems this bug is specific to down level: Safari 15.x on Mac OS 10.15.x (Catalina).
Looks like Jean-Yves made significant changes to AudioFileReaderCocoa recently, this may be fallout from that work.
(In reply to Chris Dumez from comment #8) > Looks like Jean-Yves made significant changes to AudioFileReaderCocoa > recently, this may be fallout from that work. there's been no change to the mp3 side of things (it's all using ExtAudioFile suite) other than ensuring the number of frames out was correct. this is a sandbox issue. same as bug 230974 *** This bug has been marked as a duplicate of bug 230974 ***
What exact version of Safari is this fixed in? 15.2?