swesterfeld / pandaresampler

Fast factor 2 resampler for audio signals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PandaResampler

Description

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

Using the Shared Library

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 compiling
  • pkg-config --libs pandaresampler for linking

Header only C++ Library

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.

License

PandaResampler is released under MPL-2.0, however it also contains code from hiir which is licensed under WTFPL2.

About

Fast factor 2 resampler for audio signals


Languages

Language:C++ 96.2%Language:Meson 1.8%Language:Shell 1.8%Language:M 0.1%Language:Dockerfile 0.1%