• 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
Issues in ExtAudioFileSeek and ExtAudioFileTell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issues in ExtAudioFileSeek and ExtAudioFileTell


  • Subject: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • From: "Abdul.Majeed" <email@hidden>
  • Date: Thu, 5 Nov 2009 19:19:03 +0530

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

  • Follow-Ups:
    • Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Xcode AU Project template issues on Leopard
  • Next by Date: Built-In devices on single thread
  • Previous by thread: Re: AU hosting: automation, presets and GUI updating
  • Next by thread: Re: Issues in ExtAudioFileSeek and ExtAudioFileTell
  • Index(es):
    • Date
    • Thread