mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Fix AudioStreamPlayer get_playback_position() for web build
This commit is contained in:
parent
446e7a7c22
commit
bcd776e441
10 changed files with 183 additions and 3 deletions
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue