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

Linux, chrome, sounds choppy #9

Open
yhvh opened this issue Sep 16, 2019 · 3 comments
Open

Linux, chrome, sounds choppy #9

yhvh opened this issue Sep 16, 2019 · 3 comments

Comments

@yhvh
Copy link

yhvh commented Sep 16, 2019

Chrome: Version 77.0.3865.75 (Official Build) (64-bit)

When playing demo:

  • high cpu usage
  • choppy sound
  • choppy sound improves by reducing operators enabled
@mmontag
Copy link
Owner

mmontag commented Nov 21, 2019

I wonder if it's related to the visualizer. Have you tried with the visualizer disabled? (purple button)

@maks
Copy link

maks commented Nov 22, 2021

Sorry this is rather late, but there has been a recent (Chrome M92 onwards) significant improvement in Chrome webaudio implementation on Linux: https://bugs.chromium.org/p/chromium/issues/detail?id=825823

While that bug originally referred to audio worklets, from what I've seen it seems to have greatly helped improve performance of webaudio in general on linux distros using Pulseaudio (which seems to be the majority of the popular distros).

As a data point, using Ubuntu 21.04 with Chrome M96 the demo for dx7-synth-js works very well for me, though please note that you need to make sure to be using https for midi.

@mmontag
Copy link
Owner

mmontag commented Nov 30, 2021

Thanks for reporting on this.
I just pushed a small fix to decrease audio glitches during mouse movement (disable mouse event handlers in PIXI.js).
If you still have glitches, it may be due to the fact that Chrome picks a really low buffer size; you can check in the Web Audio tab:

image

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

3 participants