On Tuesday, September 23, 2003, at 04:00 PM, Glenn Maynard wrote:
By the way, if anyone knows of fast (eg. fast enough to run a stream, possibly two, in realtime in a game), acceptable-quality, BSD-licensed or similar[1] implementations of an equalizer or resampler, I'd love to know of it. I don't know enough on the topic to write my own.
...
I've looked at lots of resampling code, but most fall over on 44.1<->48khz. FB2k's does it, but it's also too expensive (also about 8% on my machine). I need arbitrary rate changes, as the game has modes which play music at variable rates (but it doesn't need to be able to change resample rates smoothly).
Have you tried the resampling code in madplay? It supports arbitrary resampling ratios and is relatively fast. It uses a linear interpolation so it doesn't produce the best quality output, but for most uses it may be acceptable.