ExtAudioFileSeek and Tell
ExtAudioFileSeek and Tell
- Subject: ExtAudioFileSeek and Tell
- From: Dominic Feira <email@hidden>
- Date: Wed, 19 Apr 2006 22:23:48 -0400
Alright, I have been playing around with the ExtAudioFile API today.
Investigating if I should switch to it or not. Anyway, I noticed
something about it that took me a while to figure out and could not
find mention of this in the list or elsewhere.
ExtAudioFileSeek and ExtAudioFileTell values correspond to the file's
format not the extraction format. So, if you want those values to
make sense with what you're extracting be sure to extract in the
file's samplerate.
One other thing that is mentioned elsewhere, and here for
completeness, is that ExtAudioFileSeek should be set relative to the
start of conversion. If you have set a client format, you need to
include the leading frames from the kAudioConverterPrimeInfo when
seeking.
ExtAudioFileSeek(mAudioFileRef, frameOffset + mLeadingFrames);
Please let me know if any of these statements are incorrect.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
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