mmontag/dx7-synth-js

Linux, chrome, sounds choppy

yhvh opened this issue · 3 comments

yhvh commented

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

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

maks commented

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.

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