[SDL] Just can't get it done: resample sound

Michel Bardiaux mbardiaux at peaktime.be
Mon Apr 5 02:37:49 PDT 2004


Jay Cornwall wrote:

> Johannes Bauer wrote:
> 
>> The improvement: the channels are okay, the sample speed is just as 
>> expected. Yet, there's a huge amount of noise coming with the sample 
>> (not so much that you couldn't hear the original sample any more, but 
>> yet too much to use for gameplay).
> 
> 
> You might be interested to read this discussion I had on comp.dsp recently:
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=comp.dsp&selm=c3iuso%2430q%241%248302bc10%40news.demon.co.uk&rnum=1 
> 
> 
> And the associated resampling code I wrote to interface with the ibrary:
> http://cvs.evilprojects.net/cgi-bin/viewcvs.cgi/behold/src/rateconverter.cpp?rev=1.1&content-type=text/vnd.viewcvs-markup 
> 
> 
> The quality is far better than I could achieve with linear interpolation 
> or zero order hold.
> 
I dont think it is possible to achieve resampling at acceptable quality 
without some form of filtering. See how it is done in SOX and RATECONV.

-- 
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41





More information about the SDL mailing list