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