Abdul Qadir
Abdul Qadir

Reputation: 129

Re-sampling audio alters the speed

I need to mix audio files with different sample rates. I'm trying to change the sample rate of all the audio files to say 44100Hz. But when I re-sample the audio files, the speed of the original audio is altered (becomes slow). Is there a way to re-sample the audio without altering the speed? I'm using the following function to re-sample the audio file.

http://code.google.com/p/musicg/source/browse/src/com/musicg/dsp/Resampler.java

Upvotes: 0

Views: 280

Answers (1)

ig343
ig343

Reputation: 277

When you play the resampled audio you should play it with the new sample rate. You may be using the resampled audio at a faster sample rate.

Upvotes: 1

Related Questions