C Files to JS conversion via emcc

20 views
Skip to first unread message

Vishal Dhull

unread,
Oct 8, 2021, 7:14:46 AM10/8/21
to emscripten-discuss
I want to convert various C files code to Javascript ( all the files are here : https://github.com/xiph/rnnoise/tree/master/src) and the command i am using is this 

 emcc src/denoise.c src/rnn.c src/rnn_data.c src/pitch.c src/kiss_fft.c src/celt_lpc.c -I src -I include -O3 -o noise.js -s TOTAL_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME="'NoiseModule'" --memory-init-file 0

But i am not getting the output as expected. I  am attaching the expected outcome and the output i am getting. It would be very helpful if any one can help as it is ver urgent.

Files link https://drive.google.com/drive/folders/1_yJ5XxT0aPOOzgzzBhdakIS6ivzt64t2?usp=sharing

Thanks and Regards

Vishal dhull

Reply all
Reply to author
Forward
0 new messages