iPhone, iOS 4 and decoding mp3 files
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