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?
Speed performance when converting to other sample rates may vary greatly. When comparing performance of this resampler library to another library make sure that the competing library is also tuned to produce a fully linear-phase response, has similar stop-band characteristics and similar sample timing precision.
Smple audio visualization library which is especially useful for developers to visually check audio samples, e.g. by waveform or spectrum. (So far) this library is not capable of doing nice visualizations for end users. ***** WereSoCool !Now In Stereo! ****** Make cool sounds. Impress your friends.
The resampler class of this library was designed as an asynchronous processor: it may produce any number of output samples, depending on the input sample data length and the resampling parameters.
The free Open Source Audio Library Project (OSALP)(LGPL) contains a C++ class based on resample. The Speexspeech coder/decoder (based on CELP) contains a variation of the resamplealgorithm in the file resample.c, is free and open-source, and is released under a BSD-style license (i.e., free for both commercial and noncommercial uses).
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
and sndfile-resample
(from libsamplerate
) (in the Planet CCRMA Distribution).libsoxr
, the SoX resampler libraryssrc
(from Shibatch)ssrc
and sox
libsamplerate
libresample
based on `resample-1.7P
libresample4j
is a Java port of libresample
.
resample
.Here's a code example using FFMpeg (avcodec) directly from C:
http://tdistler.com/2010/07/22/audio-resampling-using-ffmpeg-avcodec
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With