diff options
author | Adam Scott <ascott.ca@gmail.com> | 2023-12-01 13:39:09 -0500 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2024-01-17 13:58:29 -0500 |
commit | bd70b8e1f643dbf7252be9bc367e0de0f82d722d (patch) | |
tree | de81ebb037ede5994d3e817a2a788488d0f47977 /platform/web/js/libs | |
parent | 107f2961ccfac179af7682eb5f6e7ea91e80040c (diff) | |
download | redot-engine-bd70b8e1f643dbf7252be9bc367e0de0f82d722d.tar.gz |
Add THREADS_ENABLED macro in order to compile Godot to run on the main thread
Diffstat (limited to 'platform/web/js/libs')
-rw-r--r-- | platform/web/js/libs/audio.worklet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/web/js/libs/audio.worklet.js b/platform/web/js/libs/audio.worklet.js index 89b581b3d6..3b94cab85c 100644 --- a/platform/web/js/libs/audio.worklet.js +++ b/platform/web/js/libs/audio.worklet.js @@ -167,7 +167,7 @@ class GodotProcessor extends AudioWorkletProcessor { GodotProcessor.write_input(this.input_buffer, input); this.input.write(this.input_buffer); } else { - this.port.postMessage('Input buffer is full! Skipping input frame.'); + // this.port.postMessage('Input buffer is full! Skipping input frame.'); // Uncomment this line to debug input buffer. } } const process_output = GodotProcessor.array_has_data(outputs); @@ -184,7 +184,7 @@ class GodotProcessor extends AudioWorkletProcessor { this.port.postMessage({ 'cmd': 'read', 'data': chunk }); } } else { - this.port.postMessage('Output buffer has not enough frames! Skipping output frame.'); + // this.port.postMessage('Output buffer has not enough frames! Skipping output frame.'); // Uncomment this line to debug output buffer. } } this.process_notify(); |