-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMSCRIPTEN - RuntimeError: operation does not support unaligned accesses #884
Comments
"It only happens (was happen) ones the engine initialized a sound" according to the original creator, so seems after one engine plays a sound the others cannot on emscripten but this is not true for WASAPI. |
Is there any additional information to narrow it down a bit? Hard to know exactly what's causing it. How are the sounds and engines being allocated? On an unrelated note, the fact that you have more than one |
It probably will not be needed and the only reason I discovered this is from an example. We have the engine, recorder, and generator as separate objects and in the example we spawn all three. Not pressing at all, will allow the main engine to be passed via constructor for our uses. |
Hey @mackron long time, hope all is well! I'm working on a PR DaniilAlpha/minisound#6 here to add recorder and generator support and on wasm, I see RuntimeError: operation does not support unaligned accesses. This appears to only happen some of the time when trying to play with multiple engines. You can find all the build files in the minisound_ffi/src folder of that PR.
The reproduction in Flutter Web:
The recorder loads a sound the same way, but the engine keeps working without issue.
I can probably work around this with better handling of multiple engines in engine.c but wanted to let you know there might be an alignment issue with wasm, maybe a race condition with device?
Let me know what you think.
The text was updated successfully, but these errors were encountered: