Re: Resampling
Re: Resampling
- Subject: Re: Resampling
- From: Jens Alfke <email@hidden>
- Date: Fri, 13 Mar 2009 11:30:44 -0700
On Mar 13, 2009, at 11:18 AM, email@hidden wrote:
If the device has a 44.1KHz sampling rate, and I want to play 16KHz
audio (a WAVE file), the number of frames from the audio file that I
need to convert for each callback is not an integer (because
44100/16000 is not a whole number). How do I deal with this problem?
You should probably be letting an AudioConverter do the sample-rate
conversion for you. I don't know the details; but I have been told by
those who do, that the interpolation isn't as straightforward as you'd
think.
Even better, use ExtAudioFile, which will do all the I/O, format
decoding, and conversion to any sample rate you want.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden