Re: ExtAudioFileSeek and Tell
Re: ExtAudioFileSeek and Tell
- Subject: Re: ExtAudioFileSeek and Tell
- From: john <email@hidden>
- Date: Wed, 19 Apr 2006 22:35:54 -0400
Hi Dominic,
I used the ExtAudioFile for a little bit. However, I never set the
additional offset in the ExtAudioFileSeek() call. I didn't had any
problems.
-- John
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