colors not detected in AudioWorkletProcessor
https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor
The
AudioWorkletProcessorinterface of the Web Audio API represents an audio processing code behind a customAudioWorkletNode. It lives in theAudioWorkletGlobalScopeand runs on the Web Audio rendering thread. In turn, anAudioWorkletNodebased on it runs on the main thread.
The application creates a file containing the definition of a class inheriting from AudioWorkletProcessor and writes JS on it. It can use debug module or console directly and, auto-magically, Chrome redirects its output to DevTools console.
However there are no colors because this useColors() function returns false. Setting debugInstance.useColors = true manually (which is ugly and non public API) does work.
In Node there is a DEBUG_COLORS env to force colors. In browser there is no way to manually force colors in corner (but IMHO legit) cases like the above one. May I suggest a debugInstance.forceColors() method or something like that?