• 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: Examples for AudioFileStream and AudioConverter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Examples for AudioFileStream and AudioConverter?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Examples for AudioFileStream and AudioConverter? (From: Nick Zitzmann <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: james mccartney <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: William Stewart <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: behaviour of MIDIFlushOutput
  • Next by Date: Re: behaviour of MIDIFlushOutput
  • Previous by thread: Re: Examples for AudioFileStream and AudioConverter?
  • Next by thread: Re: Examples for AudioFileStream and AudioConverter?
  • Index(es):
    • Date
    • Thread