• 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: ExtAudioFile how-to question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFile how-to question


  • Subject: Re: ExtAudioFile how-to question
  • From: Doug Wyatt <email@hidden>
  • Date: Wed, 19 Jul 2006 12:19:23 -0700

On Jul 18, 2006, at 21:41 , tahome izwah wrote:

Hi Doug,

thanks for the explanation. I don't think that the copy&paste error is
that apparent: why would you *set* properties of your *input* file? I
don't see the point of this - you're opening it for reading and don't
want to mess with it, don't you?

You can think of ExtAudioFile as an AudioFile with an AudioConverter attached to it.


As such, you need to configure the converter by setting a "client format" -- if you're reading, you'll read samples in this format; if writing, you'll write in this format. The format is specified with the property kExtAudioFileProperty_ClientDataFormat.

(For the curious, it is possible to specify no client format and just read/write whatever the file's native format is, causing there to be no converter, though in many cases you might as well use an AudioFile directly instead.)

Doug

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
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: ExtAudioFile how-to question
      • From: "tahome izwah" <email@hidden>
References: 
 >Re: ExtAudioFile how-to question (From: "tahome izwah" <email@hidden>)

  • Prev by Date: Re: Host Callback Methods and OSStatus
  • Next by Date: Re: ComplexPlayThru - behavior when using iSight
  • Previous by thread: Re: ExtAudioFile how-to question
  • Next by thread: Re: ExtAudioFile how-to question
  • Index(es):
    • Date
    • Thread