Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
- Subject: Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
- From: Doug Wyatt <email@hidden>
- Date: Fri, 6 Nov 2009 10:35:54 -0800
What version of what OS are you running?
What other calls to ExtAudioFile are you making before the first calls
to ExtAudioFileSeek and ExtAudioFileTell?
What are the sample rates of the file and the client format (if any)?
Doug
On Nov 5, 2009, at 23:16 , Abdul.Majeed wrote:
Hi Bill,
Thanks a tone for your quick response.
Please here it is more information
1. for another .mp3 file result i got as
Sint64 theOffset = (primeOffset + 0); //it gives 576
ExtAudioFileSeek(fileRef,theOffset);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 0
//read a sample frame of theNumPackets = 4096
ExtAudioFileRead(filRef,& theNumPackets,&BufferList);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 4672
2. for another .m4a file result i got as
Sint64 theOffset = (primeOffset + 0); //it gives 2112
ExtAudioFileSeek(fileRef,theOffset);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 0
//read a sample frame of theNumPackets = 262144
ExtAudioFileRead(filRef,& theNumPackets,&BufferList);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 264320
3. for another .m4v file result i got as
Sint64 theOffset = (primeOffset + 0); //it gives 2112
ExtAudioFileSeek(fileRef,theOffset);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 0
//read a sample frame of theNumPackets = 262144
ExtAudioFileRead(filRef,& theNumPackets,&BufferList);
ExtAudioFileTell(fileRef,&theOffset); /// theOffset gives 264320
so in conclusion, if there primeOffset value from
kAudioConverterPrimeInfo is greater than 0 then only this issues
coming else it is fine.
Could you please help me by giving your valuable inputs.
Thanks for your time.
abdul
_______________________________________________
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