Closed jozefchutka closed 1 week ago
It looks like you are missing -sIMPORTED_MEMORY
. IIUC that was required in 3.1.47 but maybe something changed. I will investigate. But -sIMPORTED_MEMORY
is what you want.
In fact, if run a debug build (i.e if you remove -O3) you should see the following error on startup:
Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally
Do you see this error?
(it looks like 3.1.47 is the same in this regard and includes that same error message).
Thanks, indeed this flags fixed it.
Using emscripten 3.1.61, and build command:
When in runtime calling
createMFCC({wasmMemory:new WebAssembly.Memory(...)})
my custom memory is being ignored and emscripten somehow creates and uses its own. After a bit of debugging it appears there is no place in generated .js where providedwasmMemory
is actually used.This is a regression as I can see version 3.1.47 nicely accepting provided memory via
createMFCC({wasmMemory...
Full build steps can be find on https://github.com/wide-video/mfcc-wasm/blob/7781b888426e17c18d9a4fe3cc9a00839f4e9692/README.md