Re: ExtAudioFile how-to question
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