how can i compile into WebAssembly and access methods from javascript?
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.3k
- Forks
- 808
- PR merge metrics
- No merged PRs in 30d
Description
i´m trying to compile methods to access from javascript after, but some errors come up...
\celt\celt_decoder.c:110:26: error: static declaration of 'opus_custom_decoder_get_size' follows non-static declaration
OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_get_size(const CELTMode *mode, int channels)
i don´t understand wht means...
I´m compiling from Windows using VSProj into win32 folder...
the command followed to compile is:
emcc ..\..\src\opus.c ..\..\src\opus_decoder.c ..\..\src\opus_encoder.c ..\..\src\opus_multistream.c ..\..\src\opus_multistream_encoder.c ..\..\src\opus_multistream_decoder.c ..\..\celt\celt_decoder.c ..\..\celt\celt_decoder.c -o WASM\opus_decoder.wasm -I..\..\include\ -I..\..\src\ -I..\..\celt\ -I..\..\silk\ -s EXPORTED_FUNCTIONS="['_opus_decoder_create','_opus_decoder_destroy','_opus_decode_float']" -DVAR_ARRAYS
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Windows emcc command from the issue and inspect the reported declaration in celt/celt_decoder.c. Check the command's duplicate celt_decoder.c input and the requested JavaScript exports; completion would require a confirmed WebAssembly build with callable exported methods, but the issue does not define a specific target change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, javascript, wasm
- Domain
- audio-video-rtc, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100