Skip to content
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

Crackling when screen off on mobile #1300

Open
dnzkptn opened this issue Dec 28, 2024 · 1 comment
Open

Crackling when screen off on mobile #1300

dnzkptn opened this issue Dec 28, 2024 · 1 comment

Comments

@dnzkptn
Copy link

dnzkptn commented Dec 28, 2024

I have a simple loop player in a React app, consisting of one synth and one Player synced to the transport and another synth playing a pedal note outside scheduling. Things work fine on desktop and mobile browsers, but on mobile, turning the screen off causes crackling. Initially pretty significantly at the moment of turning off the screen, to the extent that the the sound completely disintegrates and even seems to hang altogether for a couple of seconds, then after almost-normal playback resumes, with sporadic crackles every 5-10 seconds. The following Codepen contains a minimal working example of how I'm running things; It doesn't even have the Player, just two synths: https://codepen.io/1857629187/pen/pvzrqPp
The codepen reproduces the problem on my Android phone, and the phone of one other person I asked to replicate.

Since this doesn't happen with the official examples, I'm probably using the library wrong (at least within the context of React). I read the performance and best practices section in the wiki and I don't see anything pertinent to my code. Any help figuring out the problem is much appreciated.

@orl0pl
Copy link

orl0pl commented Dec 30, 2024

I also have this issue, it works fine on desktop but on mobile sound is crackling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants