Questions about AudioFile API
Questions about AudioFile API
- Subject: Questions about AudioFile API
- From: Philippe Wicker <email@hidden>
- Date: Thu, 26 Jun 2003 08:13:36 +0200
Hi everybody,
I'm looking into the AudioFile API (AudioToolbox/AudioFile.h) and feel
perplexed concerning a few points:
1- most of the API includes a inUseCache parameter. Could it be
possible to have some hints about when one should or shouldn't use this
feature. For instance, is it useful to set this flag to true when
"linearly" reading a large audio file (I don't think it is, but who
knows...)? Is it useful to set it to true when looping and loop points
are faraway (in that case, maybe the cached data has been overwritten
by more recent one)? Maybe the correct use in that case should be to
set this flag to true only for chunks including loop locators?
2- Assuming you have enough physical memory, what is the cached data
length of life? Is there some way to parameterize the cache?
3- There are read and write APIs working on "audio packets". I assume
that all packets have the same size for lpcm file. am I right? And that
the size of packets is given by a call to AudioFileGetProperty (...,
kAudioFilePropertyMaximumPacketSize, ...). Am I right again? Can we
assume that a given family of "lpcm" audio file, say, AIF or WAV, will
have the same packet size or is it specific to each individual file?
Thanks for any hint,
Philippe Wicker
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.