Re: Sample Rate Conversion using AudioConverter
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.