The entirety of the LuaRadio framework and the LuaJIT interpreter can be
packaged into a single library that exports a simple C API. The API can be used
to create a LuaRadio context, load a LuaRadio script with a top-level flow
graph, and control the top-level flow graph (start, status, wait, stop). This
library, libluaradio
, can then be dynamically or statically linked into an
application to add dedicated or scriptable signal processing engine.
The fm-radio example is a standalone command-line FM broadcast radio receiver. The rds-timesync is a standalone command-line tool that syncs the system time and date with an RDS-enabled FM radio station.
See the Embedding LuaRadio documentation for more information.
Build libluaradio
, unit tests, and examples with:
make
Run unit tests with:
make runtests
- Makefile - C library Makefile
- luaradio.c - C API implementation
- luaradio.h - C API header
- examples/ - C API examples
- tests/ - C API unit tests