Tone.js icon indicating copy to clipboard operation
Tone.js copied to clipboard

Sampler playing paused when window.print()

Open Erin122 opened this issue 3 years ago • 1 comments

Describe the bug

I work with project that plays audio and tonejs sampler notes together. However, when I open window.print(), audio buffer is playing but sampler's playing sound stops. After I close the print window, sampler's sounds resume again. Is this intended situation ? Or the bug ? Or there is any solution for handling this issue ?

To Reproduce

Tone.Transport with synced audio buffer Player and Sampler. play and window.print()

Expected behavior Audio buffer Player and Sampler both play together even if I open print window.

What I've tried How have you tried resolving/debugging this issue? This can be helpful context for getting to the heart of the issue faster and not duplicating effort.

Additional context Add any other context about the problem here.

Erin122 avatar Aug 23 '22 04:08 Erin122

This seems like probably has to do with the way that browser's pause javascript execution when a dialog like the print dialog is open. I'm not sure if there's anything we can do on the Tone.js-side of things to deal with this.

tambien avatar Sep 03 '22 13:09 tambien