summaryrefslogtreecommitdiffstats
path: root/platform/javascript/os_javascript.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-12 19:23:30 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-15 20:48:49 +0200
commit246334b8364bd6d003114a0acd1dfae0008b3a86 (patch)
tree043f8647293c4c8e2c4c88d59230ea7f4b7a40b2 /platform/javascript/os_javascript.h
parente902347a8cefbced8898dfc9f000afdf3be0d36a (diff)
downloadredot-engine-246334b8364bd6d003114a0acd1dfae0008b3a86.tar.gz
[HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads.
Performances are not great in general, bad on Firefox, on Chrome, well, it could be an improvement. Leave it as a fallback for now, but can be forced via project settings if desired (or custom JavaScript logic via the "args" option). I'm actually surprised this works, it involves so many allocations, but there's no way around it when SharedArrayBuffer is not available :(.
Diffstat (limited to 'platform/javascript/os_javascript.h')
-rw-r--r--platform/javascript/os_javascript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h
index efac2dbca7..d053082d92 100644
--- a/platform/javascript/os_javascript.h
+++ b/platform/javascript/os_javascript.h
@@ -40,7 +40,7 @@
class OS_JavaScript : public OS_Unix {
MainLoop *main_loop = nullptr;
- AudioDriverJavaScript *audio_driver_javascript = nullptr;
+ List<AudioDriverJavaScript *> audio_drivers;
bool idb_is_syncing = false;
bool idb_available = false;