• 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: William Stewart <email@hidden>
  • Date: Thu, 5 Nov 2009 10:27:37 -0800

Abdul

Do you have this issue with other files, or just a particular MP3 file?

Bill

On Nov 5, 2009, at 5:49 AM, Abdul.Majeed wrote:

Hi All,

I would like to get some inputs on the issues that I am facing currently. Please correct me if I am doing something wrong as I am not expertise in this area.
I was trying to read mp3 audio data in chunk by chunk manner, for that I uses ExtAudioFileRead as I want the data in uncompressed format (16 bit, linear PCM).
For a specific .mp3 file (as of my test) i could see that following results for the ExtAudioFileSeek and ExtAudioFileTell apis.




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



Could anybody please tell me ,why first call to ExtAudioFileTell returns 0 and after reading it gives 4672 (i was expecting 4096)?
Also any more info about the behavior of ExtAudioFileSeek and ExtAudioFileTell apis are highly appreciated.












_______________________________________________
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

_______________________________________________ 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: Abdul.Majeed <email@hidden>
References: 
 >Issues in ExtAudioFileSeek and ExtAudioFileTell (From: "Abdul.Majeed" <email@hidden>)

  • Prev by Date: Re: Built-In devices on single thread
  • Next by Date: RE: XCode AU project template issue
  • Previous by thread: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • Next by thread: Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • Index(es):
    • Date
    • Thread