I'm trying to upsample 44100 Hz to 96000 Hz and I've tried this.
sum1 = mPastWavBuffer[(int)mOffset];
sum2 = mPastWavBuffer[(int)mOffset+1];
double sum = (sum1 + (sum2-sum1)) * (mOffset-(int)mOffset);
mOffset is a double value and contains the step factor incremented to move through the 44100 Hz sample file and make it 96000 Hz. This linear interpolation was taken from Wiki Linear Interpolation from two known points But this isn't giving me the result I want, it sounds terrible.
Am I using it wrong here or what am I supposed to do with this formula if this isn't the way to use it??
Regards, Morgan