• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
      • From: Doug Wyatt <email@hidden>
References: 
 >Issues in ExtAudioFileSeek and ExtAudioFileTell (From: "Abdul.Majeed" <email@hidden>)
 >Re: Issues in ExtAudioFileSeek and ExtAudioFileTell (From: William Stewart <email@hidden>)
 >Re: Issues in ExtAudioFileSeek and ExtAudioFileTell (From: Abdul.Majeed <email@hidden>)

  • Prev by Date: Aggregate Devices: Setting Channel Names
  • Next by Date: Re: Aggregate Devices: Setting Channel Names
  • Previous by thread: Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • Next by thread: Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • Index(es):
    • Date
    • Thread