Open praveen-kd-23 opened 1 year ago
Buffering implementations are a common cause of playback distortion. I'd look there. In particular make sure you understand the data layout the opus_decode
API uses and are advancing the read and write pointers correctly, and that the input and output buffers are big enough to avoid underrun.
You can also try dumping the decoded data and comparing the output against a native build of the same code to check for compatibility problems with the emscripten compiler, and feeding the same data to the Web Audio API decoder to eliminate issues with your data receiver.
did you REALLY got compiled to Webassembly? i´m trying for a lot of time... i need to compile then acces methods from a javascript but i´ve been found some errors.
Hi , We have compiled opus into wasm and trying to decode an audio in browser through wasm and play it . Opus decoder produces distorted/bad audio .
Here are the steps to compile opus into wasm .
Below is the C Wrapper to call opus API's: