PandaResampler is a fast C++ (SSEified) factor 2 resampler for audio signals. It is easy to integrate into projects since it supports header only mode.
PandaResampler is currently experimental which means that right now there still can be API changes that break backward compatibility. API documentation is available here: https://space.twc.de/~stefan/pandaresampler/api-0.2.1
To use PandaResampler as shared library, build it using
meson setup build # configure the build
meson compile -C build # compile PandaResampler
sudo meson install -C build # install PandaResampler
# you may need to run 'sudo ldconfig' before you can use the library
Then, you can use pkg-config
to get the necessary compiler flags to use
the shared library:
pkg-config --cflags pandaresampler
to get the flags for compilingpkg-config --libs pandaresampler
for linking
If you do not want to link against any library, you can use
pkg-config --cflags pandaresampler
and the define-DPANDA_RESAMPLER_HEADER_ONLY
while compiling your code, this will not require any library to be present to compile or run your compiled program.
If you prefer, you can simply copy everything from the include/
directory of
the pandaresampler to your project to make it fully self-contained and avoid
using pkg-config
.
PandaResampler is released under MPL-2.0, however it also contains code from hiir which is licensed under WTFPL2.