This is a wrapper over the Speex resampler, hard-coded to expect and output floating point audio. In addition, a function exists to resample static buffers of audio data.
This library should be self-explanatory via reading it. The build process is the standard CMake build process:
mkdir build cd build cmake .. make
The final command depends on your platform.
Code here is available under the unlicense.
Note that the license applying to the speex resampler still applies to the speex resampler.
It is included here as
license.speex and left intact in any files takenf from that project.