• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Resampling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Resampling
      • From: email@hidden
References: 
 >Resampling (From: email@hidden)

  • Prev by Date: Resampling
  • Next by Date: Re: Resampling
  • Previous by thread: Resampling
  • Next by thread: Re: Resampling
  • Index(es):
    • Date
    • Thread