|
From: Steve M. <sm...@so...> - 2003-06-25 01:58:28
|
> Perhaps libsamplerate (http://www.mega-nerd.com/SRC/index.html) might > be something similar to what you mentioned. I just recently heard > about it, so I'm not real familiar with its capabilities. Cheers. thanks, josh. i had come across that quite some time ago (a fairly memorable logo :^) ), but had since lost track of it. browsing the api, it performs the following conversions on float sample data, with conversion ratio represented by a double: enum { SRC_SINC_BEST_QUALITY = 0, SRC_SINC_MEDIUM_QUALITY = 1, SRC_SINC_FASTEST = 2, SRC_ZERO_ORDER_HOLD = 3, SRC_LINEAR = 4 } ; where "SINC" is the "Julius O. Smith" method ( http://www-ccrma.stanford.edu/~jos/resample/ ). it's designed to process data in streams.. so, this library would probably work well for the 'standard' scaling methods. and it's GPL. steve |