WebUSB and WebAssembly RTL-SDR Example

You need to build LLVM and Clang with the WebAssembly target enabled.
Get our C++ DSP code library from: https://github.com/aicodix/dsp
Then use the Makefile to compile example.cc to example.wasm.
Build WABT and use wasm2wat to get a human readable assembly.
Look at example.hh to find out how functions can be imported or exported and at quirks.hh for dealing with "-nostdlib".
This code is released under the "zero clause" BSD license. See LICENSE for details.
Don't forget to disconnect when leaving this page. Below is the output of this example: