opus
opus copied to clipboard
how can i compile into WebAssembly and access methods from javascript?
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