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
|