Re: Examples for AudioFileStream and AudioConverter?
Re: Examples for AudioFileStream and AudioConverter?
- Subject: Re: Examples for AudioFileStream and AudioConverter?
- From: William Stewart <email@hidden>
- Date: Wed, 10 Sep 2008 17:07:57 -0700
Nick
Have a look at the ConvertFile example in the totally inappropriately
named "SimpleSDK" directory - /Developer/Examples/CoreAudio
There is a sample there of using audio file with audio converter -
which is not too different than what you are doing below. I think that
would help you to sort some of the code out below as it is (at a
casual glance) doing more than I think you really need to do
Bill
On Sep 10, 2008, at 11:26 AM, Nick Zitzmann wrote:
Apparently nobody had any sample code, so I'm posting my code in the
hope that someone will tell me what I need to do to get this to
work. Again, I can get the AudioFileStream working just fine, but
I'm doing AudioConverterFillComplexBuffer() completely wrong, and I
need to know how to do this correctly.
The MP3 data I get from the application can be anywhere from less
than a kilobyte to several megabytes in size, and is often in VBR
format. The data is stored inside an internal data structure's
srcBasicDescription, which is an AudioStreamBasicDescription.
SDFillOutASBDForLPCM() is a function that internally calls
FillOutASBDForLPCM() in the CoreAudio headers using the same
arguments. I just did that so I can keep C and C++ code segregated.
What am I doing wrong here and how do I correct it?
_______________________________________________
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