• 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: Slow seeking in MP3 files using ExtAudioFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow seeking in MP3 files using ExtAudioFile


  • Subject: Re: Slow seeking in MP3 files using ExtAudioFile
  • From: Christopher Atlan <email@hidden>
  • Date: Thu, 22 Jan 2009 21:20:40 +0100

Hi Hamish,

 my
approach has been to use an AudioFileStream to read the first few
packets until the bitrate is reasonably stable, then use that to allow
skipping (simply jumping to a byte offset within the data and passing
kAudioFileStreamParseFlag_Discontinuity). This approximation has been
reasonable for my purposes, but presumably would get less accurate if
more metadata e.g. album artwork were present.

I'm trying the same thing, but I use AudioFileStreamGetProperty kAudioFileStreamProperty_FrameToPacket and AudioFileStreamSeek for the offset which works fine.


My problem is that AudioQueue still plays some buffers before it starts playing from the new position.
I try it with this sequence:


AudioQueuePause();
AudioQueueReset();
AudioFileStreamSeek();
AudioQueueStart();

I tried a lot other things, but besides from open a Developer Technical Support request and get the answer from the mothership I have no other idea to get seeking work correct.

Christopher

_______________________________________________
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: Slow seeking in MP3 files using ExtAudioFile
      • From: Hamish Allan <email@hidden>
    • Re: Slow seeking in MP3 files using ExtAudioFile
      • From: Hamish Allan <email@hidden>
References: 
 >Slow seeking in MP3 files using ExtAudioFile (From: Jens Alfke <email@hidden>)
 >Re: Slow seeking in MP3 files using ExtAudioFile (From: Jeff Moore <email@hidden>)
 >Re: Slow seeking in MP3 files using ExtAudioFile (From: Hamish Allan <email@hidden>)

  • Prev by Date: AudioFileCountUserData
  • Next by Date: Re: AudioFileCountUserData
  • Previous by thread: Re: Slow seeking in MP3 files using ExtAudioFile
  • Next by thread: Re: Slow seeking in MP3 files using ExtAudioFile
  • Index(es):
    • Date
    • Thread