IPhoneMultichannelMixerTest and mp3 playback
IPhoneMultichannelMixerTest and mp3 playback
- Subject: IPhoneMultichannelMixerTest and mp3 playback
- From: "Erickson, Mark" <email@hidden>
- Date: Fri, 4 Sep 2009 14:05:11 -0500
- Acceptlanguage: en-US
- Thread-topic: IPhoneMultichannelMixerTest and mp3 playback
Title: IPhoneMultichannelMixerTest and mp3 playback
I’ve modified the iPhoneMultichannelMixerTest example to playback & loop stereo files.
This code uses ExtAudioFileRead to convert audio into LPCM blocks for playback using a RenderCallback.
I’m using long files – so I’m not keeping the entire file in RAM and calling ExtAudioFileSeek + ExtAudioFileRead from the main thread to get about a half second of audio at a time.
My code works with: Aif, Wav, Apple lossless, Aac, & Vbr mp3 files.
However, CBR mp3s are only working during the first pass through the loop.
Audio from CBR mp3s will dropout on the second time, and all subsequent passes, through the file.
This occurs even if the second pass through the file I read exactly the same data, the same way I did during the first pass.
I’ve encoded my test CBR mp3 file using different encoders at several different bit rates with identical results.
This problem occurs regardless of the IOBuffer size I use in my ExtAudioFileRead function.
I’ve linked to the ActivityMonitor tools while debugging and the cpu load never tops 30% in my portable device.
My code does not seem to have any timing problems, yet this is, apparently, a timing issue.
I’m stumped!
Can anyone think of a reason why CBR files would cause problems on a second read attempt, but not the first?
_______________________________________________
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