• 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: "tahome izwah" <email@hidden>
  • Date: Wed, 19 Jul 2006 23:16:20 +0200

Thanks Doug, that makes a lot of sense. Is there some place where this
is explained? I didn't find a comprehensible explanation of the
ExtAudioFile API anywhere within the dev tools... From what I can see
many of the calls are just listed in the documentation without
detailed information on their inner working.

Thanks again,
--th


2006/7/19, Doug Wyatt <email@hidden>:
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


References: 
 >Re: ExtAudioFile how-to question (From: "tahome izwah" <email@hidden>)
 >Re: ExtAudioFile how-to question (From: Doug Wyatt <email@hidden>)

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