Re: [linux-audio-dev] Looking for fast integer resampling code

From: Olivier Guilyardi <ml@email-addr-hidden>
Date: Sat Jun 11 2005 - 14:20:16 EEST

Hi Dave,

Dave Chapman wrote:
> So we're looking for pointers to any high quality (but fast!) resampling
> code that could be used.

libsamplerate is pretty famous and reliable, but operates on float values :
http://www.mega-nerd.com/SRC

However, in Jackbeat (http://www.xung.org/jackbeat) I coded a resampler that
performs about 5 times faster than libsamplerate fastest converter (SRC_LINEAR),
according to my own tests. It's _very_ simple (strictly linear), and certainly
not the best quality but it's very cpu-friendly.

You'll find it in jackbeat 0.5.1, in the file src/sequence.c from line 274 to
line 283. That's 10 lines which I consider to be readable, due to variable naming.

It operates on float values, but you can use integer values in your
implementation, it doesn't matter.

Regards

--
   og
Received on Sat Jun 11 16:15:05 2005

This archive was generated by hypermail 2.1.8 : Sat Jun 11 2005 - 16:15:06 EEST