IT lexicon › Programming › libsamplerate

libsamplerate

Programming På svenska → Updated: 2026-10-29

A C library for sample rate conversion, also known as Secret Rabbit Code, that made high-quality resampling free for anyone who wanted it.

Erik de Castro Lopo, also the author of libsndfile, released it in the early 2000s. Its converters use band-limited sinc interpolation at three quality levels, plus two deliberately crude ones — zero-order hold and linear — for when fast matters more than clean. The ratio between input and output rate can also change on the fly, which is what you need when two clocks have to be kept in step.

For years it was GPL-only, which kept it out of commercial software that made do with worse home-grown converters instead. It was relicensed under BSD in 2016 and promptly turned up in everything from sound servers to game engines.

← Back to the lexicon