• 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: Brian Willoughby <email@hidden>
  • Date: Fri, 13 Mar 2009 23:55:18 -0700

Sorry, I left out that you'll need some way to signal your file- writing code as to how much data is there in the buffer. You can't blindly read out of the buffer as fast as possible without running it dry, so you'll need some kind of gauge.

Rather than trying to explain everything piece by piece, I think you should look at some of the examples. I'm sure there's something in the CoreAudio SDK that will show how this is done.


On Mar 13, 2009, at 22:27, email@hidden wrote:
I think I'm missing something. If for every input I receive I fill a buffer and ask for less data than what's in the buffer, what do I do with the rest? Keep it around until the next input arrives? But if I always ask for less frames than what I just received, I will gradually accumulate a growing delay, unless at some point I call AudioConverterFillComplexBuffer twice. Or should I keep track of how much left-overs I have, so that I can ask for a different amount each time I call AudioConverterFillComplexBuffer? Alternatively, should I be calling AudioConverterFillComplexBuffer from a different thread, so that I can call it more often than I receive input?


_______________________________________________
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


References: 
 >Resampling (From: email@hidden)
 >Re: Resampling (From: Jens Alfke <email@hidden>)
 >Re: Resampling (From: email@hidden)
 >Re: Resampling (From: Jens Alfke <email@hidden>)
 >Re: Resampling (From: Doug Wyatt <email@hidden>)
 >Re: Resampling (From: email@hidden)
 >Re: Resampling (From: Brian Willoughby <email@hidden>)
 >Re: Resampling (From: email@hidden)

  • Prev by Date: Re: Resampling
  • Next by Date: Re: Confused about data returned from an FFT for a AU
  • Previous by thread: Re: Resampling
  • Next by thread: AVAudioPlayer Question....
  • Index(es):
    • Date
    • Thread