-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio resume fix #4788
Audio resume fix #4788
Conversation
What about these lines: That's public API: https://developer.playcanvas.com/api/pc.SoundManager.html#SoundManager So presumably this PR actually removes that option? I'm fine with that (to be honest, I'm not sure why anyone would want to use that option!). But if this is so, the docs should be updated. |
Oh yes, that code just didn't make any sense (and I assumed this was some legacy workaround). Perhaps I should investigate the origin of that option first and then decide whether to remove it entirely. |
The force option was added here So do I just remove the jsdoc? |
Sure, but also the whole options object from the code (plus passing it in application.js) since that was the only option. 😄 |
Done! |
OK, LGTM now. Nice job! 🙌 |
But maybe call out the API change in the PR description! |
Thanks for your help @willeastcott ! |
Fixes #4760
iOS doesn't correctly resume on touchend event, but does on touchstart event.
This PR also simplifies manager suspend/resume logic a bit.
API Changes: