1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Fix AudioStreamPlayer get_playback_position() for web build

(cherry picked from commit bcd776e441)
This commit is contained in:
Yahkub-R
2024-08-06 09:46:37 -04:00
committed by Rémi Verschelde
parent 562e583872
commit 2b4ade1ed6
10 changed files with 183 additions and 3 deletions

View File

@@ -51,11 +51,13 @@ def create_template_zip(env, js, wasm, worker, side):
js,
wasm,
"#platform/web/js/libs/audio.worklet.js",
"#platform/web/js/libs/audio.position.worklet.js",
]
out_files = [
zip_dir.File(binary_name + ".js"),
zip_dir.File(binary_name + ".wasm"),
zip_dir.File(binary_name + ".audio.worklet.js"),
zip_dir.File(binary_name + ".audio.position.worklet.js"),
]
if env["threads"]:
in_files.append(worker)
@@ -74,6 +76,7 @@ def create_template_zip(env, js, wasm, worker, side):
"offline.html",
"godot.editor.js",
"godot.editor.audio.worklet.js",
"godot.editor.audio.position.worklet.js",
"logo.svg",
"favicon.png",
]