Alert HN: legacy WebAudio content will break (again) in Chrome 70
If you maintain any WebAudio code the fix is below. For any WebAudio content that hasn't been fixed and isn't maintained, expect it to stop working soon in Chrome. :(
--
Background: This is part of the "no autoplaying" policy that rolled out in Chrome 66, and was reverted for WebAudio a few days later because it broke everything (including Chrome's own webaudio demos).
Past HN discussion: https://news.ycombinator.com/item?id=17079724
Policy info: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio
Chrome 70 apparently restores the same implementation, so any content that broke before will break again, unless patched.
--
Fix and tech details:
The easiest fix is to add a redundant `ctx.resume()` call to any user input event handler. After that fires the context will work normally.
Basically Chrome's implementation of the policy doesn't look at when an AudioContext plays sounds