[SDL] Re: Linux Wave Conversion Bug?
sherry.gordon at thewb.com
Sat Jun 30 11:19:00 PDT 2001
thanks for the tip. I'll look into a altering my sample rates. It's not that it
sounds bad, it's that it seems unconverted. Maybe that code has been disabled?
(the non-2 factored scale)
Oh well, I guess I'll just go ahead and make everything 22050MHz.
"Ryan C. Gordon" wrote:
> > Considering the complete lack of conversion, I'm guessing it's something I'm
> > doing wrong or it would have come up before now. Any guesses?
> SDL only handles sample rate conversions in multiples of two
> effectively; converting from 11025Hz to 22050Hz works great, but 8000Hz to
> 11025Hz is going to sound crappy.
> The solution is to open the sound device at 8000Hz, and make sure all your
> data is at that sample rate, or convert everything to a new sample rate
> that is more standard on today's hardware, or fix SDL_ConvertAudio().
> I've heard most good sample rate conversion algorithms are patented. If
> anyone has a good pointer for accomplishing this, let me know, 'cause I'm
> interested in taking a stab, but have no idea what to do. :)
More information about the SDL