Switch from faust2webaudio to faustwasm - #72
Conversation
|
Open question: what's depending on the assignments to |
|
@Fr0stbyteR may have an idea? |
|
Thank you @ijc8 for the work! For further development you can check this branch of mine https://github.com/Fr0stbyteR/fausteditorweb/tree/migrate-faustwasm that has used faustwasm for a while, or maybe you already know that. |
|
Thanks. After fixing the conflict I could test:
|
|
(Context: @sletz observed some mysterious errors when trying this PR with messages like @sletz Per your observations, I tried opening 10 .dsp files in Firefox and Chrome, switching between them and compiling, refreshing, checking & unchecking "Use AudioWorklet" and "Save DSP Code", enabling/disabling polyphony, etc., and none of this reproduced the issue. However, I was finally able to reproduce by trying to compile This also causes issues (hanging tab) with the updated fausteditor and faustplayground, so I don't think it's an issue with faustide (or this PR) specifically. I believe that it's instead the same issue as grame-cncm/faustwasm#3, and I suspect that it's a memory issue. Both greyhole and jpverb (used in grame-cncm/faustwasm#3) are long reverbs with big delay lines (indeed, the SuperCollider docs for these effects include the note "Please increase server realtime memory for this to work properly"), and this explanation aligns with the error messages you've seen. The fix will likely involve tweaking memory-related flags passed to emscripten (in https://github.com/grame-cncm/faust/blob/df02f97f7d0c4fb67fa7a7949dabcc58b199775f/build/wasmglue/CMakeLists.txt#L56) and updating faustwasm with a new build. |
|
I don't think this is related to the memory consumed by the DSP code itself (that is after being compiled and instantiated), but the Faust => wasm compilation process itself. |
Emscripten default stack size was reduced from 5Mb to 64Kb, causing problems when compiling some programs with faustwasm. See: - emscripten-core/emscripten@157fcd4 - grame-cncm/faustwasm#3 - grame-cncm/faustide#72
Emscripten default stack size was reduced from 5Mb to 64Kb, causing problems when compiling some programs with faustwasm. See: - emscripten-core/emscripten@157fcd4 - grame-cncm/faustwasm#3 - grame-cncm/faustide#72
|
Are conflicts difficult to solve ? |
No description provided.