work in progress
Goal: Provide a stream
from the rtl-sdr that can be piped into an audio graph
using a MediaStreamSourceNode
Use https://github.com/adamgreig/rtlsdr-rs
or eventually fork it to clean the repo structure
- C library: https://github.com/librtlsdr/librtlsdr/tree/master
- Rust C Make: https://docs.rs/cmake/0.1.54/cmake/
Next steps:
- have C lib as submodule
- use build script to build the C lib and link it properly
- have it work without warning
Create a RtlSdrStream that have stream
attribute
@note
- we will somehow need to expose the
NapiMediaStream
from 'node-web-audio-api' to create the JS properly
brew install cmake
brew install libusb libusb-compat # don't know which one...
Issue locating libusb
by CMake
mkdir build && cmake -DLIBUSB_INCLUDE_DIR=/opt/homebrew/include/libusb-1.0/ -DLIBUSB_LIBRARY_DIRS=/opt/homebrew/lib/ -S . -B build && cd build && make