dx7-synth-js icon indicating copy to clipboard operation
dx7-synth-js copied to clipboard

Linux, chrome, sounds choppy

Open yhvh opened this issue 6 years ago • 3 comments

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

yhvh avatar Sep 16 '19 13:09 yhvh

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

mmontag avatar Nov 21 '19 03:11 mmontag

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.

maks avatar Nov 22 '21 01:11 maks

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

mmontag avatar Nov 30 '21 10:11 mmontag