4 ms·
Can you elaborate? What does service workers give you for your web audio project that doesn't work without service works? I'm curious because I have a HTML5 au
by judah 10y ago
Can you elaborate? What does service workers give you for your web audio project that doesn't work without service works?
I'm curious because I have a HTML5 audio web app that works great, except when running on mobile in the background.
- ogig 10y agoIn my project the serviceWorker only has a setInterval that will trigger the main loop. When the setInterval was in the main code it would slow down, a lot, when the tab was on background. That made the generated music go slow aswell. With the serviceWorker the clock is rock solid, even when the background app can't keep up, the timing is solid.