4 ms·
Really interesting what happens to the sound when you switch tabs (in Chrome at least): The sounds still play, but slowed down about 10x.
by lachenmayer 12y ago
Really interesting what happens to the sound when you switch tabs (in Chrome at least): The sounds still play, but slowed down about 10x.
- droidist2 12y agoYeah, that's a common Web Audio hassle. On mobile it gets even crazier, although I haven't tried this site in mobile.
- meandave 12y agoit is because chrome slows main thread js execution for inactive tabs. The solution is to do your scheduling (setInterval etc) in a web worker.
- jkbr 12y agoA workaround is to detach the tab and keep it visible. Then it doesn't need to be focused.
- grayfox 12y agoIt sound awesome! Wouldn't want to work around that effect... hehe nifty.
- nunull 12y agoQuite nice live gadget!
- s_kilk 12y agoFor me, in Firefox on Yosemite, the slowdowns seem to come at random, even when the tab is in focus.