Add resampling function

If sounds are not stored in 32kHZ waves they will not play back at the
correct speed.  This resampling could also allow for changing the
playback speed of sounds.  Right now it uses a quick and dirty linear
interpolation, because the more advanced interpolations require a bunch
of multiplications.