REOPENED 236942
Unexpected web audio behaviour (sound for a second after unmute, and others)
https://bugs.webkit.org/show_bug.cgi?id=236942
Summary Unexpected web audio behaviour (sound for a second after unmute, and others)
Matt Sephton
Reported 2022-02-20 13:14:02 PST
Created attachment 452700 [details] example web game showing the problem The attached/linked code uses Webkit Audio. - On Desktop it plays fine and as expected. - On some iOS devices this may also be the case. - However, on most iOS devices it *seems* to not play sound. On closer inspection the problem is more subtle: 1. there is one second or so of music when the phone is unmuted, but then it cuts out again 2. there is sound on the attract mode of the game - if there is no sound in attract mode try muting and unmuting the phone - to see attract mode play a game and die - attract mode notes: - no music here - no 3. there is full sound in an iOS screen recording of the game Test device: - iPhone SE 2020 - iOS 15.3.1 Hosted example code (same as attached zip): https://www.gingerbeardman.com/webkit/audio/ Source code repo containing the above: https://github.com/gingerbeardman/good-old-game-sound-generator As mentioned on Twitter: https://twitter.com/xeenon/status/1494678426803785731 source of the thread: https://twitter.com/abagames/status/1494591825365331970
Attachments
example web game showing the problem (423.38 KB, application/zip)
2022-02-20 13:14 PST, Matt Sephton
no flags
Radar WebKit Bug Importer
Comment 1 2022-02-23 15:35:48 PST
Brent Fulgham
Comment 2 2022-06-23 15:30:53 PDT
We believe that this is fixed since iOS 15.4 and beyond.
Matt Sephton
Comment 3 2022-06-23 15:43:40 PDT
Sorry to disagree. I'm on iOS 15.5 and the problem and symptoms as listed in the original issue are all still present. I just checked at the link I provided
Matt Sephton
Comment 4 2022-06-23 15:44:07 PDT
Reopening.
Brent Fulgham
Comment 5 2022-06-23 17:24:23 PDT
Understood -- thank you for confirming. Routing now.
Jean-Yves Avenard [:jya]
Comment 6 2022-12-21 17:03:21 PST
Sorry for the delay in looking into it. I can't reproduce on an iPhone 14 Max Pro nor an iPhone SE (2022) on iOS 16.1.2 Background music plays Audio and sound effects are being heard when you strike enemy ships. Could you please try again? Thanks.
Jean-Yves Avenard [:jya]
Comment 7 2022-12-21 18:46:07 PST
Could reproduce on my daughter's iPhone 8 running iOS 16.2. Audio can be heard when you switch the mute button off/on but only for a second or so
Matt Sephton
Comment 8 2022-12-27 06:40:23 PST
I can still reproduce on my SE 2020, on both 16.1.2 and 16.2. Not sure how long I'll have this phone.
Matt Sephton
Comment 9 2023-03-28 08:41:51 PDT
I'm now using an iPhone Xs, running iOS 16.4 (released yesterday), and still can still repro this problem.
Matt Sephton
Comment 10 2023-05-19 13:50:26 PDT
iPhone Xs, running iOS 16.5 (released yesterday), I still can still repro this problem with the example URL.
Matt Sephton
Comment 11 2023-09-10 03:10:23 PDT
Also happens on these pages: - https://sfxr.me - https://pro.sfxr.me I'm running 16.6.1 on iPhone Xs.
Note You need to log in before you can comment on or make changes to this bug.