• 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: email@hidden
  • Date: Fri, 13 Mar 2009 12:10:21 -0700 (PDT)

Thanks!

So if I'm going to use AudioConverter, then will the AudioConverter
callback simply request the number of 16KHz frames it needs in order to
satisfy each call to AudioConverterFillComplexBuffer (probably
alternating between 185 and 186 16KHz frames for 512 44.1KHz frames)?


----- Original Message ----
From: Jens Alfke <email@hidden>
To: email@hidden
Cc: email@hidden
Sent: Friday, March 13, 2009 11:30:44 AM
Subject: Re: Resampling


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: Jens Alfke <email@hidden>
References: 
 >Resampling (From: email@hidden)
 >Re: Resampling (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Resampling
  • Next by Date: Re: Record and playback at the same time
  • Previous by thread: Re: Resampling
  • Next by thread: Re: Resampling
  • Index(es):
    • Date
    • Thread