• 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: Sample Rate Conversion using AudioConverter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sample Rate Conversion using AudioConverter


  • Subject: Re: Sample Rate Conversion using AudioConverter
  • From: James McCartney <email@hidden>
  • Date: Mon, 9 Jun 2003 19:31:14 -0700

On Monday, June 9, 2003, at 02:35 PM, Tommy Braas wrote:

New problems! I am probably setting something up incorrectly (or so I hope...). When the callback is called, the AudioBufferList.mBuffers[0].mData is NULL!


That's correct. You are supposed to set that to point to your buffer. The input proc is not supposed to copy data, it is supposed to give the converter a pointer to your data. You must maintain that data valid until the next call to your input proc - i.e. don't overwrite it or deallocate it. That includes across calls to AudioConverterFillComplexBuffer.

---
James McCartney email@hidden
Apple CoreAudio
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Sample Rate Conversion using AudioConverter (From: Tommy Braas <email@hidden>)

  • Prev by Date: Re: Core Audio API for Objective-C ?
  • Next by Date: best way to duplicate a MusicSequence?
  • Previous by thread: Re: Sample Rate Conversion using AudioConverter
  • Next by thread: Re: Sample Rate Conversion using AudioConverter
  • Index(es):
    • Date
    • Thread