grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.58k stars 322 forks source link

faust2wasm baseURL #330

Closed lonce closed 5 years ago

lonce commented 5 years ago

Faust version 2.17.13 faust2wasm -worklet foo.dsp

the wasmfile fetched in foo.js:

'''const dspFile = await fetch(wasmfile);

needs to be concatenated with

'''this.baseURL

in order to fetch from the baseURL argument passed to the constructor.

sletz commented 5 years ago

Can you prepare a pull request? Thanks

lonce commented 5 years ago

I see you fixed it already. Thanks.