You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Web] Small fixes and enhancements.
- "Definitive" fix for ENOENT randomly disappearing from emscripten. - Proper shutdown when setup fails. - Re-enable WebGL explicit buffer swap. - Re-enable optional per-pixel transparency. - Add type cast to make closure compiler happy. - Remove emscripten Safari WebGL workaround. - Improve AudioWorklet cleanup.
This commit is contained in:
@@ -339,16 +339,21 @@ const GodotAudioWorklet = {
|
||||
if (GodotAudioWorklet.promise === null) {
|
||||
return;
|
||||
}
|
||||
GodotAudioWorklet.promise.then(function () {
|
||||
const p = GodotAudioWorklet.promise;
|
||||
p.then(function () {
|
||||
GodotAudioWorklet.worklet.port.postMessage({
|
||||
'cmd': 'stop',
|
||||
'data': null,
|
||||
});
|
||||
GodotAudioWorklet.worklet.disconnect();
|
||||
GodotAudioWorklet.worklet.port.onmessage = null;
|
||||
GodotAudioWorklet.worklet = null;
|
||||
GodotAudioWorklet.promise = null;
|
||||
resolve();
|
||||
}).catch(function (err) { /* aborted? */ });
|
||||
}).catch(function (err) {
|
||||
// Aborted?
|
||||
GodotRuntime.error(err);
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user