Audio resampling

Has anyone written an audio resampling that works with SDL_mixer sound
Mix_Chunks? SDL does some simple internal resampling on load, but that
only gives double or halving resamples.

I’m thinking about writing this, but surely it has been done? I don’t
think any special interpolation is needed, but something that handles
8bit and 16bit, stereo and mono would be keen!

Thanks for pointers and/or code.

Has anyone written an audio resampling that works with SDL_mixer sound
Mix_Chunks? SDL does some simple internal resampling on load, but that
only gives double or halving resamples.

I’m thinking about writing this, but surely it has been done? I don’t
think any special interpolation is needed, but something that handles
8bit and 16bit, stereo and mono would be keen!

Thanks for pointers and/or code.

Pete,
You may refer to the pymedia’s Resample object. Or get resample.c from
ffmpeg project. They do have simple linear interpolation. ffmpeg 0.4.8
supports 1,2 <->1,2 channels, 2->5.1. Pymedia supports 5.1/4/5->2 also.
Dmitry/From: pete@shinners.org (Pete Shinners)
Sent: Saturday, June 26, 2004 11:35 PM
Subject: [SDL] audio resampling