• 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
iPhone, iOS 4 and decoding mp3 files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone, iOS 4 and decoding mp3 files


  • Subject: iPhone, iOS 4 and decoding mp3 files
  • From: "Roni Music" <email@hidden>
  • Date: Wed, 16 Jun 2010 19:21:46 +0200

Hello,

I'm using AudioQueueOfflineRender() to decode audio and then play it back using
the RemoteOI. Works perfect.


My app also lets a user loop a certain section so when reaching the endpoint I
just change the current "readpacket" to the start point before calling
AudioFileReadPackets() in the AudioQueue callback.


With OS 3 I used to call AudioQueueFlush() when going back to the start point to
avoid "blurps" in the audio. I assumed AudioQueueFlush() would reset the mp3
decoder state but with iOS 4 I instead get a "blurp", if not calling
AudioQueueFlush() it sounds fine.


Maybe it's just a coincidence that this particular loop sounds better without calling AudioQueueFlush()?

So my question:
Which is the correct way to reset the internal mp3 decoder when abruptly
changing the playback point?
AudioQueueReset() sounds as a possible choice but it doesn't seem to be callable from within the
AudioQueueCallback()?


There must be a better way than calling AudioQueueStop() / AudioQueueStart()?

Thanks for any help,
Rolf

_______________________________________________
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: iPhone, iOS 4 and decoding mp3 files
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: RemoteIO Audio File Playback Issues
  • Next by Date: iPhone AU best practices
  • Previous by thread: Re: Respecting Audio MIDI channel setup
  • Next by thread: Re: iPhone, iOS 4 and decoding mp3 files
  • Index(es):
    • Date
    • Thread