just to clarify, you don't actually want to resample the data. the problem is that the file header has a sample rate of 64kHz (which is a very unusual sample rate for PCM audio), but the actual data is already 44.1 kHz. So you just want to fix the file header, so that it will play at the correct sample rate. This is different from resampling data from one sample rate to another.