In an embedded (Windows CE) C++ project, I have to resample an arbitrary sample-rate down (or up) to 44100 Hz.
Is there a free and portable C/C++ library for audio resampling?
In an embedded (Windows CE) C++ project, I have to resample an arbitrary sample-rate down (or up) to 44100 Hz.
Is there a free and portable C/C++ library for audio resampling?
This page lists a bunch of options.
Formatted exert, for the records. Please check out the above link for important details and licence information:
libresample
andsndfile-resample
(fromlibsamplerate
) (in the Planet CCRMA Distribution).libsoxr
, the SoX resampler libraryssrc
(from Shibatch)ssrc
andsox
libsamplerate
libresample
based on `resample-1.7Plibresample4j
is a Java port oflibresample
.resample
.Here's a code example using FFMpeg (avcodec) directly from C:
http://tdistler.com/2010/07/22/audio-resampling-using-ffmpeg-avcodec